apport crashes with FileNotFoundError in is_same_ns

Bug #1737867 reported by errors.ubuntu.com bug bridge
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Apport
New
Undecided
Unassigned
apport (Ubuntu)
New
High
Unassigned

Bug Description

The Ubuntu Error Tracker has been receiving reports about a problem regarding apport. This problem was most recently seen with package version 2.20.8-0ubuntu3, the problem page at https://errors.ubuntu.com/problem/b6b178fe6ed572189dbfe2627876ed9e9d59ace2 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

This is the top apport crasher by more than an order of magnitude. Over 34000 crashes in the past month alone.

summary: - /usr/share/apport/apport:FileNotFoundError:/usr/share/apport/apport@380:is_same_ns
+ apport crashes with FileNotFoundError in is_same_ns
Changed in apport (Ubuntu):
importance: Undecided → High
Revision history for this message
Brian Murray (brian-murray) wrote :

Here's the full traceback:

Traceback (most recent call last):
  File "/usr/share/apport/apport", line 380, in <module>
    if not is_same_ns(host_pid, "pid") and not is_same_ns(host_pid, "mnt"):
  File "/usr/share/apport/apport", line 305, in is_same_ns
    if os.readlink('/proc/%s/ns/%s' % (pid, ns)) == os.readlink('/proc/self/ns/%s' % ns):
FileNotFoundError: [Errno 2] No such file or directory: '/proc/3558/ns/pid'

I've already committed this fix upstream and I linked the fix to another bug so will mark this as a duplicate of that one.

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.