Errors from python interpreter give apport crash dialog!

Bug #81237 reported by Anders Kaseorg
2
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

Binary package hint: apport

I'm running Ubuntu feisty on amd64. If I type a statement into the python interpreter that results in an error, an overly-eager apport interrupts me a few seconds later with a "very helpful" crash dialog box.

This seems to be dependent on the name of the current directory. For example, if I do this in my home directory, nothing happens; from the /usr/lib/mozilla directory, apport reports "Sorry, the program "mozilla" closed unexpectedly"; from the /etc directory, apport reports "This problem report does not apply to a packaged program." Whatever--apport shouldn't be messing with my python interpreter.

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

Heh, that's a nice and funny one. Thanks for the report, will fix in next release.

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

Fixed in bzr head.

Changed in apport:
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

 apport (0.44) feisty; urgency=low
 .
   Some more 'Need for Speed' optimizations:
 .
   * backends/packaging-dpkg.py, _check_files_md5(): Also accept a md5sum
     string in addition to a md5sum file.
   * backends/packaging-dpkg.py, get_modified_files(): Compare package file's
     ctime and mtime against the package list file's mtime and only md5sum the
     files that are newer. This drastically reduces the amount of md5suming
     (usually to zero) and thus speeds up the information collection.
   * backends/packaging-dpkg.py: Use a single hackish 'dpkg-query --show *'
     as a portable variant of 'cat /var/lib/dpkg/status' to pre-fill the status
     cache with all packages instead of calling dpkg -s on every single package
     we query. This changes the time for figuring out dependencies and their
     versions from 'unbearable for many packages' to 'barely noticeable'.
 .
   New feature: per-package apport hooks to collect additional information:
 .
   * apport/report.py: Add method add_hooks_info() which executes a function
     add_info(report) from /usr/share/apport/<package>.py. Also add
     appropriate test cases. This provides per-package hooks for apport.
   * apport/ui.py: Call add_hooks_info() in the information collection thread.
 .
   Bug fixes:
 .
   * apport/report.py: Add some more test cases for _check_interpreted() for
     Python scripts.
   * apport/python_hook.py: Check for a correct ExecutablePath in
     test_general().
   * apport/python_hook.py: Use fileutils.likely_packaged() instead of
     checking for /tmp and home, so that we ignore stuff in /usr/local, too.
     Closes: LP#81244
   * apport/python_hook.py: If we figure out an ExecutablePath which is not
     actually an executable, do not create a report. This particularly affects
     interactive python sessions where sys.argv[0] is empty and thus
     ExecutablePath ends up being the current directory. Add test cases.
     Closes: LP#81237

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.