apport could look harder for the package
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
Medium
|
Martin Pitt |
Bug Description
Binary package hint: apport
For a long time now, every time I booted my computer apport's bomb icon
appeared in the notification area. When I clicked it it displayed an error message saying something like: "This problem report does not apply to a packaged program."
The first problem with this is that the message doesn't tell to which program it does
apply, so it's hard to find what caused it. It took me some time before I found out that there was a log in /var/crash.
The second problem is that the message was incorrect -- the report did apply to a packaged program. It was caused by a python script in /etc/init.d that belongs to a package. Apparently apport didn't realize it because the script was run through a symlink in /etc/rcS.d that points to the script in /etc/init.d. The symlink itself isn't registered as belonging to the package. So this can be fixed by checking if the ExecutablePath in the problem report is a symlink and if so, checking the link's target instead (or in addition).
Changed in apport: | |
status: | In Progress → Fix Committed |
Thanks for your detailled analysis! I improved the error message to contain the executable name (if present), and will fix the package search for symlinks.