diff -Nru apport-2.20.7/data/apport apport-2.20.7/data/apport --- apport-2.20.7/data/apport 2017-11-17 15:58:31.000000000 +0000 +++ apport-2.20.7/data/apport 2017-12-13 18:49:58.000000000 +0000 @@ -15,6 +15,7 @@ import sys, os, os.path, subprocess, time, traceback, pwd, io import signal, inspect, grp, fcntl, socket, atexit, array, struct +import errno import apport, apport.fileutils @@ -298,13 +299,19 @@ def is_same_ns(pid, ns): - if not os.path.exists('/proc/self/ns/%s' % ns): + if not os.path.exists('/proc/self/ns/%s' % ns) or \ + not os.path.exists('/proc/%s/ns/%s' % (pid, ns)): # If the namespace doesn't exist, then it's obviously shared return True - - if os.readlink('/proc/%s/ns/%s' % (pid, ns)) == os.readlink('/proc/self/ns/%s' % ns): - # Check that the inode for both namespaces is the same - return True + try: + if os.readlink('/proc/%s/ns/%s' % (pid, ns)) == os.readlink('/proc/self/ns/%s' % ns): + # Check that the inode for both namespaces is the same + return True + except OSError as e: + if e.errno == errno.ENOENT: + return True + else: + raise return False diff -Nru apport-2.20.7/debian/changelog apport-2.20.7/debian/changelog --- apport-2.20.7/debian/changelog 2017-11-27 23:22:40.000000000 +0000 +++ apport-2.20.7/debian/changelog 2017-12-13 18:49:58.000000000 +0000 @@ -1,3 +1,13 @@ +apport (2.20.7-0ubuntu3.7) artful-security; urgency=medium + + * REGRESSION UPDATE: Fix regression that caused a Traceback in the + container support (LP: #1733366) + - data/apport: add a second os.path.exists check to ensure we do not + receive a Traceback in is_container_id() and add an exception handler in + case either name space can not be found. + + -- Brian Murray Wed, 13 Dec 2017 10:49:58 -0800 + apport (2.20.7-0ubuntu3.6) artful; urgency=medium * bin/apport-cli: read until instead of a single character when # of