apport: FileNotFoundError in _add_executable_timestamp on ExecutablePath
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/
sys.
File "/usr/share/
return process_
File "/usr/share/
report = apport.
File "/usr/lib/
report.
~~~
File "/usr/lib/
self[
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/.
```
The Ubuntu Error Tracker has been receiving reports about a problem regarding apport. This problem was most recently seen with package version 2.31.0-0ubuntu4, 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 is bug #4 for noble: https:/
* apport: FileNotFoundError in _add_executable
```
Traceback (most recent call last):
File "/usr/share/
sys.
File "/usr/share/
return process_
File "/usr/share/
report = apport.
File "/usr/lib/
report.
~~~
File "/usr/lib/
self[
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/.
```
* The upload fixes the bug as https:/
[ Test Plan ]
* This crash can be reproduced with systemd-coredump installed:
```
cp /usr/bin/sleep /tmp/sleep
/tmp/sleep 3600
killall -11 sleep
```
This is caused by /usr/lib/
```
PrivateTmp=yes
```
* https:/
[ Where problems could occur ]
* We are modifying the conditions for checking if a binary has changed since the crash so a syntax error or a logical error in the condition can lead to buggy behavior.
* Since apport is primarily for crash reports, user experience is unlikely to be affected much.
tags: | added: questing |
tags: | added: 24.04.1 oracular |
summary: |
- /usr/share/apport/apport:FileNotFoundError:/usr/share/apport/apport@1253:main:process_crash_from_systemd_coredump:from_systemd_coredump:_add_executable_timestamp + apport: FileNotFoundError in _add_executable_timestamp on ExecutablePath |
description: | updated |
Changed in apport: | |
status: | Fix Committed → Fix Released |
We should probably stat /proc/<pid>/exe because that even works on deleted executables.