← Back to team overview

touch-packages team mailing list archive

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

 

ApportVersion is always included in apport reports from the linked bug:

ProblemType: Package
DistroRelease: Ubuntu 15.10
Package: dovecot-core 1:2.2.18-2ubuntu2
ProcVersionSignature: Ubuntu 3.19.0-33.38-lowlatency 3.19.8-ckt7
Uname: Linux 3.19.0-33-lowlatency x86_64
ApportVersion: 2.19.1-0ubuntu5

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

** Changed in: apport (Ubuntu)
   Importance: Undecided => Medium

** Changed in: apport (Ubuntu)
     Assignee: (unassigned) => Brian Murray (brian-murray)

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

Title:
  trim_dpkg_log raises exception on unexpected DpkgTerminalLog

Status in apport package in Ubuntu:
  In Progress

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