apport could look harder for the package

Bug #85529 reported by Amnon Aaronsohn
2
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).

Revision history for this message
Martin Pitt (pitti) wrote :

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.

Changed in apport:
assignee: nobody → pitti
importance: Undecided → Medium
status: Unconfirmed → In Progress
Martin Pitt (pitti)
Changed in apport:
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

 apport (0.57) feisty; urgency=low
 .
   * apport/ui.py: Intercept ENOMEM and fail gracefully; there is little else
     we can do at that point, and there is no point in presenting a crash
     report for this. (LP: #85155)
   * apport/ui.py: Ignore KeyError when deleting the CoreDump field on sending
     a reduced report. This Should Not Happen™, but nevertheless did.
     (LP: #86083)
   * gtk/apport-gtk, qt4/apport-qt: Intercept ImportError for the non-builtin
     Python modules. This usually happens for crashes when there is a
     dist-upgrade active and some Python packages have not been configured yet.
     (LP: #86007)
   * apport/ui.py: If the problem report does not apply to a packaged program,
     and we have an ExecutablePath, mention it in the error message for easier
     debugging.
   * apport/python_hook.py: Resolve symbolic links in ExecutablePath.
     (LP: #85529)

Changed in apport:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.