touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #24414
[Bug 1345569] Re: recoverable_problem crashed with ValueError in add_proc_info(): invalid process
This is fixed in trunk but hasn't landed in Utopic yet.
$ bzr log -r2858.1.1 -p
------------------------------------------------------------
revno: 2858.1.1
committer: Evan Dandrea <evan.dandrea@xxxxxxxxxxxxx>
branch nick: handle-disappearing-processes
timestamp: Mon 2014-09-22 15:45:54 +0100
message:
Handle the parent process going away while we're attempting to read from proc.
diff:
=== modified file 'data/recoverable_problem'
--- data/recoverable_problem 2014-05-14 20:58:42 +0000
+++ data/recoverable_problem 2014-09-22 14:45:54 +0000
@@ -37,7 +37,13 @@
report.pid = os.getppid()
# Grab PID info right away, as we don't know how long it'll stick around
- report.add_proc_info(report.pid)
+ try:
+ report.add_proc_info(report.pid)
+ except ValueError as e:
+ # The process may have gone away before we could get to it.
+ if e.message == 'invalid process':
+ return
+
# Get the info on the bug
items = sys.stdin.read().split('\0')
** Changed in: apport (Ubuntu)
Assignee: Martin Pitt (pitti) => Brian Murray (brian-murray)
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1345569
Title:
recoverable_problem crashed with ValueError in add_proc_info():
invalid process
Status in “apport” package in Ubuntu:
Confirmed
Bug description:
Well, I'm not a system engineer and I haven't knowlegde why that
trouble happen here.
ProblemType: Crash
DistroRelease: Ubuntu 14.10
Package: apport 2.14.4-0ubuntu2
Uname: Linux 3.16.0-031600rc4-generic x86_64
ApportVersion: 2.14.4-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Sun Jul 20 13:54:54 2014
ExecutablePath: /usr/share/apport/recoverable_problem
InstallationDate: Installed on 2014-07-05 (15 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Alpha amd64 (20140520)
InterpreterPath: /usr/bin/python3.4
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/share/apport/recoverable_problem -p 14110
ProcEnviron:
PATH=(custom, no user)
LANGUAGE=pl
XDG_RUNTIME_DIR=<set>
LANG=pl_PL.UTF-8
SHELL=/bin/bash
PythonArgs: ['/usr/share/apport/recoverable_problem', '-p', '14110']
SourcePackage: apport
Title: recoverable_problem crashed with ValueError in add_proc_info(): invalid process
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1345569/+subscriptions