touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #24461
[Bug 1376374] Re: whoopsie-upload-all will run hooks on a corrupt crash file multiple times
Ah sorry, there were two uploads and the first one didn't make it to
utopic, so LP changelog confusion:
apport (2.14.7-0ubuntu4) utopic; urgency=medium
* data/whoopsie-upload-all: remove crash reports that have a core dump
which is broken and cannot be processed by gdb. (LP: #1376374)
-- Brian Murray <brian@xxxxxxxxxx> Tue, 07 Oct 2014 14:48:28 -0700
** Changed in: apport (Ubuntu)
Status: Triaged => Fix Released
--
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/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