← Back to team overview

desktop-packages team mailing list archive

[Bug 1376374] Re: whoopsie-upload-all will run hooks on a corrupt crash file multiple times

 

This bug was fixed in the package apport - 2.14.7-0ubuntu5

---------------
apport (2.14.7-0ubuntu5) utopic; urgency=medium

  [ Evan Dandrea]
  * data/recoverable_problem: Handle the parent process going away while
    we're attempting to read from proc. (LP: #1345569)
 -- Brian Murray <brian@xxxxxxxxxx>   Tue, 07 Oct 2014 15:26:30 -0700

** Changed in: apport (Ubuntu)
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1376374

Title:
  whoopsie-upload-all will run hooks on a corrupt crash file multiple
  times

Status in “apport” package in Ubuntu:
  Fix Released

Bug description:
  whoopsie-upload-all in it's process_report() function will try to
  collect information for a crash with a truncated core dump every time
  it is called thereby wasting resources on a device.

  I'm looking at the following code:

      if 'Dependencies' in r:
          print('%s already has info collected' % report)
      else:
          print('Collecting info for %s...' % report)
          r.add_os_info()
          # add minimal hook information here; whoopsie only considers
          # ApportVersion, NonfreeKernelModules, SystemImageInfo
          try:
              r.add_hooks_info(None)
          except Exception as e:
              sys.stderr.write('WARNING: hook failed for processing %s: %s\n' % (report, str(e)))

          try:
              r.add_gdb_info()
          except (IOError, EOFError) as e:
              sys.stderr.write('ERROR: processing %s: %s\n' % (report, str(e)))
              return None

  Because the report is never written Dependencies is never added to the
  report, so every time whoopsie-upload-all is called it will run
  add_hooks_info() and add_gdb_info() for the same report.

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


References