apport crashed with FileNotFoundError in is_container_pid(): [Errno 2] No such file or directory: '/proc/11102/ns/pid'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Apport |
Fix Released
|
Undecided
|
Unassigned | ||
apport (Ubuntu) |
Fix Released
|
Medium
|
Brian Murray | ||
Trusty |
Fix Released
|
Undecided
|
Steve Beattie | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Zesty |
Fix Released
|
Undecided
|
Unassigned | ||
Artful |
Fix Released
|
Undecided
|
Brian Murray | ||
Bionic |
Fix Released
|
Medium
|
Brian Murray |
Bug Description
https:/
---
It appears that after login this was the first action performed by the system which resulted in the generation of the crash report.
ProblemType: Crash
DistroRelease: Ubuntu 18.04
Package: apport 2.20.8-0ubuntu1
ProcVersionSign
Uname: Linux 4.13.0-16-generic x86_64
ApportVersion: 2.20.8-0ubuntu1
Architecture: amd64
CrashReports: 640:0:119:
Date: Mon Nov 20 01:59:46 2017
ExecutablePath: /usr/share/
InstallationDate: Installed on 2017-11-19 (1 days ago)
InstallationMedia: Ubuntu 18.04.0 2017.11.11 amd64 "Unity 7 Desktop Experience Bionic Beaver"
InterpreterPath: /usr/bin/python3.6
PackageArchitec
ProcCmdline: /usr/bin/python3 /usr/share/
ProcEnviron:
Python3Details: /usr/bin/python3.6, Python 3.6.3, python3-minimal, 3.6.3-0ubuntu2
PythonArgs: ['/usr/
PythonDetails: /root/Error: command ['which', 'python'] failed with exit code 1:, Error: [Errno 2] No such file or directory: "/root/Error: command ['which', 'python'] failed with exit code 1:": "/root/Error: command ['which', 'python'] failed with exit code 1:", unpackaged
SourcePackage: apport
Title: apport crashed with FileNotFoundError in is_container_pid(): [Errno 2] No such file or directory: '/proc/
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
tags: | removed: need-duplicate-check |
Changed in apport (Ubuntu): | |
importance: | Undecided → Medium |
tags: | added: rls-bb-incoming |
tags: | removed: rls-bb-incoming |
Changed in apport (Ubuntu Bionic): | |
status: | New → Triaged |
information type: | Private → Public |
tags: | added: patch |
Changed in apport (Ubuntu Artful): | |
assignee: | Canonical Security Team (canonical-security) → nobody |
description: | updated |
tags: | added: id-5a317b0ea645498eaf5dcb39 |
Changed in apport (Ubuntu Trusty): | |
assignee: | Brian Murray (brian-murray) → Steve Beattie (sbeattie) |
Changed in apport: | |
status: | New → Fix Released |
I see the same thing on Ubuntu 16.04 / apport 2.20.1-0ubuntu2.14 - same apport command line (except a different PID number), same error number and everything.
Looks like 'is_same_ns' is blindly doing an os.readlink on a path that it assumes must exist (because it does no defensive check) but the path clearly is missing sometimes