Activity log for bug #1766337

Date Who What changed Old value New value Message
2018-04-23 20:07:51 Laurent Bonnaud bug added bug
2018-05-02 12:38:25 Francis Ginther tags amd64 apport-bug bionic amd64 apport-bug bionic id-5ae35ea55ac10e9203cade8d
2018-05-09 23:36:09 Brian Murray apport (Ubuntu): status New In Progress
2018-05-09 23:36:11 Brian Murray apport (Ubuntu): importance Undecided High
2018-05-09 23:36:14 Brian Murray apport (Ubuntu): assignee Brian Murray (brian-murray)
2018-05-09 23:43:49 Launchpad Janitor branch linked lp:~ubuntu-core-dev/ubuntu/cosmic/apport/ubuntu
2018-05-10 19:28:08 Launchpad Janitor apport (Ubuntu): status In Progress Fix Released
2018-05-11 16:45:49 Brian Murray nominated for series Ubuntu Bionic
2018-05-11 16:45:49 Brian Murray bug task added apport (Ubuntu Bionic)
2018-05-23 20:23:39 Brian Murray apport (Ubuntu Bionic): status New In Progress
2018-05-23 20:23:43 Brian Murray apport (Ubuntu Bionic): importance Undecided High
2018-05-23 20:23:54 Brian Murray apport (Ubuntu Bionic): assignee Brian Murray (brian-murray)
2018-05-23 23:37:25 Brian Murray apport (Ubuntu Bionic): status In Progress Triaged
2018-05-23 23:37:28 Brian Murray apport (Ubuntu Bionic): assignee Brian Murray (brian-murray)
2019-02-06 19:04:02 Brian Murray apport (Ubuntu Bionic): assignee Brian Murray (brian-murray)
2019-02-06 19:04:04 Brian Murray apport (Ubuntu Bionic): status Triaged In Progress
2019-02-06 20:29:44 Brian Murray description Hi, here is a python exception I got while reporting a bug: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apport/report.py", line 198, in _run_hook symb['add_info'](report, ui) File "/usr/share/apport/general-hooks/ubuntu.py", line 89, in add_info check_attachment_for_errors(report, attachment) File "/usr/share/apport/general-hooks/ubuntu.py", line 208, in check_attachment_for_errors trim_dpkg_log(report) File "/usr/share/apport/general-hooks/ubuntu.py", line 508, in trim_dpkg_log report['DpkgTerminalLog'] = '\n'.join([str(line.decode('utf-8')) for line in lines]) File "/usr/share/apport/general-hooks/ubuntu.py", line 508, in <listcomp> report['DpkgTerminalLog'] = '\n'.join([str(line.decode('utf-8')) for line in lines]) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 3070: invalid continuation byte It can also be seen here: https://launchpadlibrarian.net/367002573/HookError_ubuntu.txt ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: apport 2.20.9-0ubuntu6 Uname: Linux 4.16.3-041603-generic x86_64 ApportLog: ApportVersion: 2.20.9-0ubuntu6 Architecture: amd64 CurrentDesktop: MATE Date: Mon Apr 23 20:13:24 2018 PackageArchitecture: all ProcEnviron: TERM=xterm PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: apport UpgradeStatus: No upgrade log present (probably fresh install) [Impact] Ubuntu crash reports and package installation failures may not include DpkgTerminalLog.txt if there is a UnicodeDecodeError trying to read the dpkg log file. [Test Case] Because the fix is simple and its complicated to have a dpkg log file with unicode in it we'll just test that truncating of a dpkg log file still works. 1) Install 2vcard (so we have a recent dpkg log entry) 2) Run update-manager 3) Kill it with signal 11 e.g. kill -11 $PID of update-manager 4) Run ubuntu-bug /var/crash/_usr_bin_update-manager.1000.crash 5) Observe DpkgTerminalLog.txt only contains a log entry regarding the installation of 2vcard and matches the content in /var/log/apt/term.log. [Regression Potential] Its possible that the code to replace the DpkgTerminalLog contents of the report is wrong but the test case above ensures that it isn't. [Original Description] Hi, here is a python exception I got while reporting a bug: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport/report.py", line 198, in _run_hook     symb['add_info'](report, ui)   File "/usr/share/apport/general-hooks/ubuntu.py", line 89, in add_info     check_attachment_for_errors(report, attachment)   File "/usr/share/apport/general-hooks/ubuntu.py", line 208, in check_attachment_for_errors     trim_dpkg_log(report)   File "/usr/share/apport/general-hooks/ubuntu.py", line 508, in trim_dpkg_log     report['DpkgTerminalLog'] = '\n'.join([str(line.decode('utf-8')) for line in lines])   File "/usr/share/apport/general-hooks/ubuntu.py", line 508, in <listcomp>     report['DpkgTerminalLog'] = '\n'.join([str(line.decode('utf-8')) for line in lines]) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 3070: invalid continuation byte It can also be seen here:   https://launchpadlibrarian.net/367002573/HookError_ubuntu.txt ProblemType: BugDistroRelease: Ubuntu 18.04 Package: apport 2.20.9-0ubuntu6 Uname: Linux 4.16.3-041603-generic x86_64 ApportLog: ApportVersion: 2.20.9-0ubuntu6 Architecture: amd64 CurrentDesktop: MATE Date: Mon Apr 23 20:13:24 2018 PackageArchitecture: all ProcEnviron:  TERM=xterm  PATH=(custom, no user)  XDG_RUNTIME_DIR=<set>  LANG=en_US.UTF-8  SHELL=/bin/bashSourcePackage: apport UpgradeStatus: No upgrade log present (probably fresh install)
2019-02-18 13:11:27 Łukasz Zemczak apport (Ubuntu Bionic): status In Progress Fix Committed
2019-02-18 13:11:30 Łukasz Zemczak bug added subscriber Ubuntu Stable Release Updates Team
2019-02-18 13:11:31 Łukasz Zemczak bug added subscriber SRU Verification
2019-02-18 13:11:34 Łukasz Zemczak tags amd64 apport-bug bionic id-5ae35ea55ac10e9203cade8d amd64 apport-bug bionic id-5ae35ea55ac10e9203cade8d verification-needed verification-needed-bionic
2019-03-05 17:08:44 Brian Murray tags amd64 apport-bug bionic id-5ae35ea55ac10e9203cade8d verification-needed verification-needed-bionic amd64 apport-bug bionic id-5ae35ea55ac10e9203cade8d verification-done verification-done-bionic
2019-03-14 09:41:06 Łukasz Zemczak removed subscriber Ubuntu Stable Release Updates Team
2019-03-14 09:41:05 Launchpad Janitor apport (Ubuntu Bionic): status Fix Committed Fix Released