[Bug 1647635] Re: apport-retrace doesn't comment on bugs when add_gdb_info raises an IOError

Brian Murray brian at ubuntu.com
Fri Apr 28 22:19:03 UTC 2017


** Tags removed: rls-z-incoming
** Tags added: rls-aa-incoming

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

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

Status in Apport:
  Fix Released
Status in apport package in Ubuntu:
  Triaged

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().

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



More information about the foundations-bugs mailing list