[Bug 1251357] Re: package_hook will gzip a file a second time
Marcus Tomlinson
marcus.tomlinson at canonical.com
Thu Mar 5 12:53:11 UTC 2020
This release of Ubuntu is no longer receiving maintenance updates. If
this is still an issue on a maintained version of Ubuntu please let us
know.
** Changed in: apport (Ubuntu)
Status: Triaged => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1251357
Title:
package_hook will gzip a file a second time
Status in apport package in Ubuntu:
Incomplete
Bug description:
ubuntu-release-upgrade contains code (DistUpgradeApport.py) that calls
/usr/share/apport/package_hook with the argument -l for adding log
files from /var/log/dist-upgrade to bug reports. One of the log files
added is apt-clone_system_state.tar.gz which is already a gzip'ed
file. This is then added to the crash file as -
VarLogDistupgradeAptclonesystemstatetargz: base64 - which then gets
gzip'ed again during the upload process. Bug 1249583 contains an
example of this attachment.
One can recreate this by running the following code:
#!/usr/bin/python
import subprocess
p = subprocess.Popen(["/usr/share/apport/package_hook", "-p", "slrn",
"--tags", "dist-upgrade", "-l",
"/var/log/dist-upgrade/apt-clone_system_state.tar.gz"],
stdin=subprocess.PIPE)
p.stdin.write("ErrorMessage: Test Failure")
p.stdin.close()
And inspecting the resulting crash file in /var/crash. It'd be
helpful if these were not gzip'ed a second time. For what it i worth,
some time ago I dealt with the same issue in the update-manager
package hook by using attach_file instead of
attach_root_command_outputs.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1251357/+subscriptions
More information about the foundations-bugs
mailing list