[Bug 443024] Re: Crashes if invoked on a process whose executable has been deleted: AssertionError at assert os.path.exists(self['ExecutablePath'])
Marcus Tomlinson
marcus.tomlinson at canonical.com
Thu Mar 5 12:52:07 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/443024
Title:
Crashes if invoked on a process whose executable has been deleted:
AssertionError at assert os.path.exists(self['ExecutablePath'])
Status in apport package in Ubuntu:
Incomplete
Bug description:
Binary package hint: apport
Test case:
perseus:[~] cp /bin/sleep /tmp
perseus:[~] /tmp/sleep 60 &
[1] 18356
perseus:[~] rm /tmp/sleep
perseus:[~] kill -SEGV 18356
perseus:[~]
[1] + segmentation fault (core dumped) /tmp/sleep 60
perseus:[~] cat /var/log/apport.log
apport (pid 18404) Mon Oct 5 12:21:38 2009: called for pid 18356, signal 11
apport (pid 18404) Mon Oct 5 12:21:38 2009: Unhandled exception:
Traceback (most recent call last):
File "/usr/share/apport/apport", line 244, in <module>
info.add_proc_info(pid)
File "/usr/lib/python2.6/dist-packages/apport/report.py", line 346, in add_proc_info
assert os.path.exists(self['ExecutablePath'])
AssertionError
pid: 18404, uid: 1000, gid: 1000, euid: 0, egid: 0
environment: {}
There is some further discussion about this at
https://lists.ubuntu.com/archives/ubuntu-
devel/2009-August/thread.html#28752 with a focus on how we might be
able to handle this case better. This bug report is simply about the
fact that this (fairly common) situation triggers a crash via
AssertionError in apport. It should probably detect this case and log
a more meaningful error instead.
ProblemType: Bug
ApportLog:
Architecture: amd64
Date: Mon Oct 5 12:20:10 2009
DistroRelease: Ubuntu 9.10
Package: apport 1.9.2-0ubuntu1
PackageArchitecture: all
ProcEnviron:
LC_COLLATE=C
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/zsh
ProcVersionSignature: Ubuntu 2.6.31-11.36-generic
SourcePackage: apport
Uname: Linux 2.6.31-11-generic x86_64
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/443024/+subscriptions
More information about the foundations-bugs
mailing list