leaves core files behind after calling crashdump-helper

Bug #62972 reported by Martin Pitt
4
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Critical
Martin Pitt
linux-source-2.6.17 (Ubuntu)
Fix Released
High
Ben Collins

Bug Description

Binary package hint: linux-source-2.6.17

The current kernel does not seem to remove core dumps any more when they are only temporarily created for the crashdump-helper.

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

Bumping importance, this clutters up the user's disk.

Changed in linux-source-2.6.17:
importance: Undecided → High
Changed in linux-source-2.6.17:
assignee: nobody → ben-collins
Revision history for this message
Ben Collins (ben-collins) wrote :

Martin, the crash helper is going to need to remove the cores now. It should do it when REMOVE_CORE=1 env exists. Had to do this. The fix that caused this bug was to get around the crash that was occurring in another bug.

I want to avoid this whole problem, and this seems like the easiest way. So...

  * crash-helper: Because of the weirdness of deleting a file in the kernel, I
    think it's best to just ask the helper to do it when it needs to. Now
    passes REMOVE_CORE=1 when it should do that.
    - Malone #62972

Changed in linux-source-2.6.17:
status: Unconfirmed → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

I saw the upload yesterday, closing the kernel task.

Changed in linux-source-2.6.17:
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Will do the apport changes ASAP. Thank you, Ben!

Changed in apport:
assignee: nobody → pitti
importance: Undecided → Critical
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.25) edgy; urgency=low

  * Drop apport-gtk's update-notifier dependency to a Recommends:.
  * apport_utils.py, report_add_gdb_info(): Add register dump and disassembly
    of the last 32 bytes, they might be useful to see what's going on
    sometimes. Thanks to Kees Cook for the idea and the patch.
  * test-apport, check_crash(): Verify that a crash does not leave a core file
    behind. (Test for LP#62972)
  * preloadlib/libapport.c: Do not unlink the core file after calling apport,
    but set REMOVE_CORE=1 environment instead. This matches the current
    kernel behaviour.
  * apport: Register an atexit handler as early as possible for unlinking the
    core dump if REMOVE_CORE environment is set. Closes: LP#62972
  * apport: Set nice level 10 instead of 5. Closes: LP#63099

 -- Martin Pitt <email address hidden> Mon, 2 Oct 2006 14:21:53 +0200

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.