Do not report package installation failures that contain a segmentation fault

Bug #814727 reported by Brian Murray
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Undecided
Unassigned
Natty
Fix Released
High
Brian Murray

Bug Description

The Oneiric version of apport does not report package installation failures that contain a segmentation fault in them as we'd rather have the crash report than the package installation failure. This should be SRU'ed into previous releases of Ubuntu so that we prevent reporting of unnecessary bugs.

TEST CASE:
1) Modify /usr/share/debconf/confmodule to include 'kill -SEGV $$' in line 4
   (we are replicating a segfault in an underlying part of a package installation)
2) Using software-center install checksecurity
3) Observe the installation fail due to a segfault
4) You should receive an apport package install failure dialog offering you to report the crash

cleanup:
1) revert the change in /usr/share/debconf/confmodule
2) remove and purge checksecurity
3) remove the checksecurity crash file in /var/crash

proposed package test case
1) install apport from -proposed
2) modify /usr/share/debconf/confmodule again
3) install checksecurity using software center
4) Observe the installation fail due to a segfault
5) You should NOT receive an apport package install failure dialog offering you to report the crash
   Additionally there should be no file written to /var/crash/

Changed in apport (Ubuntu Natty):
status: New → Triaged
importance: Undecided → High
status: Triaged → In Progress
assignee: nobody → Brian Murray (brian-murray)
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Brian, or anyone else affected,

Accepted apport into natty-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in apport (Ubuntu):
status: New → Fix Released
Changed in apport (Ubuntu Natty):
status: In Progress → Fix Committed
tags: added: verification-needed
description: updated
tags: added: testcase
Revision history for this message
C de-Avillez (hggdh2) wrote :

I tried it -- I started with a command-line system; pre-update tests succeeded; but after upgrading to apport on -proposed, I would get a crash report on man-db (which is updated as part of the installation of checksecurity).

Installed software-center and gdm, rerun the install of checksecurity: a new crash report for man-db was created, and apport kicked in asking if I wanted to report the problem.

I am not sure this is what was intended, so marking verification-failed.

tags: added: verification-failed
removed: testcase verification-needed
Revision history for this message
C de-Avillez (hggdh2) wrote :

Er. It was brought to my attention that I might have left apport enabled. I checked, and indeed it was. Repeating the test, now *really* following the instructions, shows no apport pop-up, and no crash report created.

Re-marking verification-done

tags: added: verification-done
removed: verification-failed
tags: added: testcase
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 1.20.1-0ubuntu5.1

---------------
apport (1.20.1-0ubuntu5.1) natty-proposed; urgency=low

  * Include bug fixes from upstream
    - report.py: Fix bug patterns to correctly match against compressed report
      (LP: #814729)
    - generic hook: Don't report package installation failures due to
      segfaulting maintainer scripts. We want the actual crash report only.
      (LP: #814727)
 -- Brian Murray <email address hidden> Fri, 29 Jul 2011 10:45:59 -0700

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