This bug was fixed in the package apport - 2.6.1-0ubuntu10
---------------
apport (2.6.1-0ubuntu10) quantal-proposed; urgency=low
* apport_python_hook.py: Update "ExecutableTimestamp" field when mangling
"ExecutablePath". (LP: #1077253)
-- Brian Murray <[email protected]> Fri, 11 Jan 2013 10:59:53 -0800
** Changed in: apport (Ubuntu Quantal)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1077253
Title:
possible for ExecutableTimestamp to not be for the binary in
ExecutablePath
Status in “apport” package in Ubuntu:
Fix Released
Status in “apport” source package in Quantal:
Fix Released
Bug description:
[Test Case]
One convoluted way to test this the following:
1) on a quantal system run 'do-release-upgrade -d'
2) cancel the upgrade
3) switch to the release upgrader directory '/tmp/ubuntu-release-upgrade-XYZ'
4) edit DistUpgradeController.py create a new line (number 407) after
'if.self.config.getWithDefault...' with the contents 'x = (10 / 0)'. This will
cause the release upgrader to crash the next time it is run.
5) in /tmp/ubuntu-release-upgrader-XYZ run the following:
'sudo /usr/bin/python /tmp/ubuntu-release-upgrader-XYZ/raring --sandbox'
Observe the release upgrader crash. If you inspect the contents of
the crash file, /var/crash/_usr_bin_do-release-upgrade.0.crash you'll
notice that with the current version of apport, additional system
information is not collected - you will not find Dependencies in the
.crash file. With the version of apport from -proposed you will find
this.
----
I was testing bug 1067542 again and ran into a situation where release
upgrade crash was unreportable because the binary had changed.
Digging into the issue DistUpgradeApport.py from update-manager /
ubuntu-release-upgrader sets ExecutablePath = '/usr/bin/do-release-
upgrade', however ProcCmdline = '/usr/bin/python /tmp/update-manager-
xyz/quantal' (from the dist upgrade tarball).
Then when add_proc_info calls _check_interpreted (in apport/report.py)
ExecutablePath is temporarily set to '/tmp/update-manager-xyz/quantal'
and the ExecutableTimestamp is calculated using that ExecutablePath.
Later, on when collect_info (in apport/ui.py) is run we use the "real"
ExecutablePath, '/usr/bin/do-release-upgrade' in this example, which
will have a different ExecutableTimestamp than the one written to the
report during _check_interpreted.
This ultimately, makes reporting crashes in the release upgrader not
reportable.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1077253/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp