[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
Touch seeded packages, 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
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp