Workaround for modified sys.argv is incomplete
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
Undecided
|
Martin Pitt |
Bug Description
Binary package hint: apport
apport has some workaround for manipulated sys.argv in apport_excepthook.
This workaround is incomplete as can be seen in the following stacktrace generated by the incompatible hal 0.5.11~rc2-1ubuntu1 release.
The stacktrace is attached at the end.
I would recommend splitting the access to sys.argv and saving the
programs name in a row of its own and catching any Exception caused
by this single line.
The Exceptions of the os module should not be catched at all.
Traceback (most recent call last):
File "/usr/share/
mainWindow = PowermanagerApp
File "/usr/share/
self.pmwidget = PowerManager(
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
self.canSuspend = properties[
KeyError: 'power_
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
binary = os.path.
IndexError: list index out of range
Original exception was:
Traceback (most recent call last):
File "/usr/share/
mainWindow = PowermanagerApp
File "/usr/share/
self.pmwidget = PowerManager(
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
self.canSuspend = properties[
KeyError: 'power_
Thanks, fixed in bzr head.