[apport] apport-gtk crashed with OSError in _execute_child()

Bug #85155 reported by Tomasz Dominikowski
40
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

Binary package hint: apport

it just started crashing repeatedly, I had to tick the thing about not reporting it anymore.

ProblemType: Crash
Date: Wed Feb 14 18:44:28 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/share/apport/apport-gtk
InterpreterPath: /usr/bin/python2.5
Package: apport-gtk 0.54
ProcCmdline: /usr/bin/python /usr/share/apport/apport-gtk
ProcCwd: /home/tom
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=pl_PL.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/share/apport/apport-gtk']
SourcePackage: apport
Uname: Linux srebrny 2.6.20-8-generic #2 SMP Tue Feb 13 05:18:42 UTC 2007 i686 GNU/Linux

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

Whoops:

    self.pid = os.fork()
OSError: [Errno 12] Cannot allocate memory

Pretty hard to fix that properly. We could just circumvent it by terminating apport UI if we run out of memory.

Changed in apport:
status: Unconfirmed → Confirmed
Revision history for this message
Martin Pitt (pitti) wrote :

Fixed in bzr head, will upload soon.

Changed in apport:
assignee: nobody → pitti
importance: Undecided → Medium
status: Confirmed → 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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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