touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #122388
[Bug 1522849] Re: trim_dpkg_log raises exception on unexpected DpkgTerminalLog
That example was on 15.10. It would be useful for hook error handling to
report the apport package version.
--
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:
New
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