AssertionError: cannot parse ProcMaps line: Error: [Errno 3] No such process: 'maps'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Apport |
Fix Released
|
High
|
Unassigned | ||
apport (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Jammy |
New
|
Undecided
|
Unassigned | ||
Noble |
New
|
Undecided
|
Unassigned |
Bug Description
[ Original report ]
```
Traceback (most recent call last):
File "/usr/share/
main()
File "/usr/share/
stamps = collect_info()
File "/usr/share/
res = process_report(r)
File "/usr/share/
r.add_
File "/usr/lib/
addr_signature = self.crash_
File "/usr/lib/
offset = self._address_
File "/usr/lib/
self.
File "/usr/lib/
assert m, "cannot parse ProcMaps line: " + line
^
AssertionError: cannot parse ProcMaps line: Error: [Errno 3] No such process: 'maps'
```
The Ubuntu Error Tracker has been receiving reports about a problem regarding apport. This problem was most recently seen with package version 2.32.0-0ubuntu5.1, the problem page at https:/
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://
[ Impact ]
* This error report is the equivalent for this bug in Noble: https:/
* AssertionError: cannot parse ProcMaps line: Error: [Errno 3] No such process: 'maps'
```
Traceback (most recent call last):
File "/usr/share/
main()
File "/usr/share/
stamps = collect_info()
File "/usr/share/
res = process_report(r)
File "/usr/share/
r.add_
File "/usr/lib/
addr_signature = self.crash_
File "/usr/lib/
offset = self._address_
File "/usr/lib/
self.
File "/usr/lib/
assert m, "cannot parse ProcMaps line: " + line
^
AssertionError: cannot parse ProcMaps line: Error: [Errno 3] No such process: 'maps'
```
* The upload fixes the bug as https:/
[ Test Plan ]
* This crash can be reproduced by having apport try to process a crash dump for a process that has already exited:
```
FAKE_PID_
FAKE_PID=99999
mkdir -p "$FAKE_PID_DIR/fd"
mount --bind '$FAKE_PID_DIR' /proc/$FAKE_PID 2>/dev/null || true
apport -p $FAKE_PID 2>&1 || true
```
* https:/
[ Where problems could occur ]
* We are adding an error case to the error handler so a syntax error might lead to incorrect error message or failure to build.
* Since apport is primarily for crash reports, user experience is unlikely to be affected much.
description: | updated |
description: | updated |
description: | updated |
Changed in apport: | |
status: | Fix Committed → Fix Released |
Proposed fix: https:/ /github. com/canonical/ apport/ pull/540