Crashes if invoked on a process whose executable has been deleted: AssertionError at assert os.path.exists(self['ExecutablePath'])

Bug #443024 reported by Matt Zimmerman
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Expired
Low
Unassigned

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

Revision history for this message
Matt Zimmerman (mdz) wrote :
Changed in apport (Ubuntu):
status: New → Confirmed
Martin Pitt (pitti)
Changed in apport (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Low
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

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
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for apport (Ubuntu) because there has been no activity for 60 days.]

Changed in apport (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.