Standard title for Python crashes could be more specific

Bug #681574 reported by Matt Zimmerman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Apport
Fix Released
Wishlist
Unassigned
apport (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

If a Python crash occurs at top level, the generated bug title is a bit cryptic, something like "foo crashed with ImportError in <module>()". This doesn't say in which module the crash occurred, and makes all such bugs look alike.

If the crash occurs at the top level in the main program, it should simply be "foo crashed with ImportError"

If the crash occurs at the top level in a module, it should say "foo crashed with ImportError in /usr/share/foo/plugin.py"

It would also be nice to include the exception text in the report, e.g. "foo crashed with ImportError: No module named nonexistent"

Matt Zimmerman (mdz)
Changed in apport:
importance: Undecided → Wishlist
Revision history for this message
Martin Pitt (pitti) wrote :

Thank you Matt, nice improvement! I merged this into trunk.

Changed in apport:
status: New → Fix Released
Changed in apport (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 1.17-0ubuntu1

---------------
apport (1.17-0ubuntu1) natty; urgency=low

  * New upstream release:
    - Better standard bug titles for Python crashes. Thanks Matt Zimmerman!
      (LP: #681574)
    - Add handler for uncaught Java exceptions. There is no integration for
      automatically intercepting all Java crashes yet, see java/README.
      Thanks Matt Zimmerman! (LP: #548877)
    - GTK frontend: Require GTK 3.0.
    - launchpad.py: Default to "production" instance, not "edge", since edge
      is obsolete now.
    - hookutils.py, attach_alsa(): Fix crash if /proc/asound/cards does not
      exist. (LP: #626215)
    - ui.py, format_filesize(): Fix to work with stricter locale.format() in
      Python 2.7. (LP: #688535). While we are at it, also change it to use
      base-10 units.
    - hookutils.py, package_versions(): Always include all requested package
      names even if they're unknown to us. Thanks Matt Zimmerman!
      (LP: #695188)
    - launchpad.py: When updating a bug, also add new tags. Thanks Brian
      Murray!
  * debian/apport.install: Install Java crash handler in
    /usr/share/apport/apport.jar.
  * debian/control: Add Java build dependency so that the Java crash handler
    will be built.
 -- Martin Pitt <email address hidden> Fri, 31 Dec 2010 16:15:06 +0100

Changed in apport (Ubuntu):
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.