apport-retrace doesn't comment on bugs when add_gdb_info raises an IOError

Bug #1647635 reported by Brian Murray
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Apport
Fix Released
Medium
Unassigned
apport (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Looking at the retracer's activity on bug 1639215, we can see that the retracer did something because it removed the need-amd64-retrace tag but we don't know what. It'd be helpful to know what happened during the retracing process rather than leaving people reading the bug in the dark.

Looking at the retracing log files we see the following:

ERROR: Invalid core dump: BFD: Warning: /tmp/apport_core_RVHov3 is truncated: expected core file size >= 2306977792, found: 2147479552.

Looking at add_gdb_info we see the following:

        if 'is truncated: expected core file size' in out:
        ...
           raise IOError(reason)

And apport-retrace does the following:

    try:
        report.add_gdb_info(sandbox)
    except IOError as e:
        apport.fatal(str(e))

Instead of just exiting, apport-retrace should comment on the bug about the core dump being corrupt and call crashdb.mark_retrace_failed().

Changed in apport:
importance: Undecided → Medium
status: New → Triaged
Changed in apport (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
tags: added: rls-z-incoming
summary: - apport-retrace doesn't comment on bugs when add_gdb_info raises and
+ apport-retrace doesn't comment on bugs when add_gdb_info raises an
IOError
Changed in apport (Ubuntu):
milestone: none → ubuntu-17.01
assignee: nobody → Brian Murray (brian-murray)
Revision history for this message
Brian Murray (brian-murray) wrote :

Fixed in r3113.

Changed in apport:
status: Triaged → Fix Released
Changed in apport (Ubuntu):
assignee: Brian Murray (brian-murray) → nobody
importance: Medium → Low
milestone: ubuntu-17.01 → none
tags: added: rls-aa-incoming
removed: rls-z-incoming
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 2.20.5-0ubuntu3

---------------
apport (2.20.5-0ubuntu3) artful; urgency=medium

  * Revert change to test/test_crash_digger.py to use the source's
    crash-digger.

 -- Brian Murray <email address hidden> Mon, 15 May 2017 16:00:06 -0700

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