← Back to team overview

touch-packages team mailing list archive

[Bug 1360417] Re: thread_collect_info can leave out information in .crash files

 

I've tracked this down to the following in apport/ui.py:

    try:
        report.add_package_info(package)
    except ValueError:
        # this happens if we are collecting information on an uninstalled
        # package
        if not ignore_uninstalled:
            raise
    except SystemError as e:
        report['UnreportableReason'] = excstr(e)
        return

We are returning from thread_collect_info() before we've written the
collected information to the report. Removing the return works but then
'UnreportableReason' was changed to 'This package does not seem to be
installed correctly'. I think that any information gathered by apport
should be written to the report and we shouldn't return so early from
collecting info.

With the Error Tracker we've made a design decision to send reports that
are "unreportable" to Launchpad and it seems like this, the case of
/etc/apt/source.list being unreadable, is one of the crashes we'd want
reported.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1360417

Title:
  thread_collect_info can leave out information in .crash files

Status in “apport” package in Ubuntu:
  New

Bug description:
  I noticed there were some crash reports in the Ubuntu Error Tracker
  with incomplete information in them (bug 1355546) and ended up
  creating a test case that recreates one way the problem can occur.

  1) in a terminal run 'sudo chmod 600 /etc/apt/sources.list'
  2) run 'update-manager'
  3) observe a crash and click "Leave Closed" on the crash notification dialog
  4) confirm that there is in /var/crash/ a .upload and .uploaded file for the update-manager crash

  If you inspect the update-manager crash file you'll notice it is
  missing Dependencies and DistroRelease so the additional apport data
  collection was never done.  Additionally, some information from "Show
  Details" of apport dialog does not appear in the report.

  UnreportableReason: E: Opening /etc/apt/sources.list...
  DistroRelease: Ubuntu 14.04

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


References