← Back to team overview

desktop-packages team mailing list archive

[Bug 1522849] Re: trim_dpkg_log raises exception on unexpected DpkgTerminalLog

 

This bug was fixed in the package apport - 2.19.2-0ubuntu9

---------------
apport (2.19.2-0ubuntu9) xenial; urgency=medium

  * If trimming the DpkgTerminalLog file fails, keep the whole log file in the
    report. (LP: #1522849)

 -- Brian Murray <brian@xxxxxxxxxx>  Mon, 07 Dec 2015 09:19:37 -0800

** 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/1522849

Title:
  trim_dpkg_log raises exception on unexpected DpkgTerminalLog

Status in apport package in Ubuntu:
  Fix Released

Bug description:
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/apport/report.py", line 197, in _run_hook
      symb['add_info'](report, ui)
    File "/usr/share/apport/general-hooks/ubuntu.py", line 66, in add_info
      check_attachment_for_errors(report, attachment)
    File "/usr/share/apport/general-hooks/ubuntu.py", line 155, in check_attachment_for_errors
      trim_dpkg_log(report)
    File "/usr/share/apport/general-hooks/ubuntu.py", line 444, in trim_dpkg_log
      if isinstance(lines[0], str):
  IndexError: list index out of range

  See bug 1518522 for an example.

  In this sort of case, I'd at least like to know the reason that
  DpkgTerminalLog is problematic, for example if it is empty, or
  corrupt, or what. Perhaps even include the whole thing, or the last
  128K or something?

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


References