[Bug 797847] Re: aptdaemon doesn't check if apport is enabled

Tuomas Heino iheino+ub at cc.hut.fi
Wed Sep 7 06:00:58 UTC 2011


Minor note related to the test case & implementation:

AFAIK apport.packaging.enabled() checks /etc/default/apport file contents for '^\s*enabled\s*=\s*0\s*$' regexp.
Meanwhile default contents of that file (on natty) are as follows:

# set this to 0 to disable apport, or to 1 to enable it
# you can temporarily override this with
# sudo service apport start force_start=1
enabled=0


Should that "temporarily override" part be removed altogether or changed to mention limits of such?
Or does that comment mean apport.packaging.enabled() should check such overrides as well?

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to aptdaemon in Ubuntu.
https://bugs.launchpad.net/bugs/797847

Title:
  aptdaemon doesn't check if apport is enabled

Status in “aptdaemon” package in Ubuntu:
  Fix Released
Status in “aptdaemon” source package in Natty:
  Fix Released

Bug description:
  Binary package hint: aptdaemon

  aptdaemon has its own crash handler and it does not check to see if
  apport is enabled before writing a crash report.  Subsequently, we are
  receiving lots of crash reports regarding aptdaemon on natty which are
  duplicates and wasteful.  Instead aptdaemon should check to see if
  apport is enabled before writing a crash report.

  TEST CASE:
  1) Verify that apport is disabled: 
     enabled=0 in /etc/default/apport
  2) Make aptdaemon crash with an uncaught exception [*]
  3) Observe an apport crash reporting dialog

  After installing the package from -proposed
  1) Make aptdaemon crash with an uncaught exception [*]
  2) Observer there is not an apport crash reporting dialog

  [*] How to make aptdaemon crash
  1. Copy an uninstalled .deb file to your local folder
  2. Run the following command in a terminal (remember to revert to +x after the test)
    $ sudo chmod -x /usr/bin/lintian
  3. Open a file browser and double-click on the deb file to open it in software-center
  4. Click on install
  => aptdaemon will crash with a "permission denied" error (which is a bug BTW)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/797847/+subscriptions




More information about the foundations-bugs mailing list