[Bug 1251357] Re: package_hook will gzip a file a second time
Launchpad Bug Tracker
1251357 at bugs.launchpad.net
Tue May 5 06:03:12 UTC 2020
[Expired for apport (Ubuntu) because there has been no activity for 60
days.]
** Changed in: apport (Ubuntu)
Status: Incomplete => Expired
--
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:
Expired
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