[Bug 1762438] Re: traceback when gathering dmi information
Launchpad Bug Tracker
1762438 at bugs.launchpad.net
Mon Apr 16 17:44:43 UTC 2018
This bug was fixed in the package apport - 2.20.9-0ubuntu5
---------------
apport (2.20.9-0ubuntu5) bionic; urgency=medium
* apport/hookutils.py: When gathering dmi information use read_file() which
handles UTF-8. (LP: #1762438)
-- Brian Murray <brian at ubuntu.com> Fri, 13 Apr 2018 11:19:31 -0700
** Changed in: apport (Ubuntu)
Status: In Progress => Fix Released
--
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/1762438
Title:
traceback when gathering dmi information
Status in apport package in Ubuntu:
Fix Released
Bug description:
# ubuntu-bug systemd
*** Collecting problem information
The collected information can be sent to the developers to improve the
application. This might take a few minutes.
.........ERROR: hook /usr/share/apport/package-hooks/systemd.py crashed:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport/report.py", line 198, in _run_hook
symb['add_info'](report, ui)
TypeError: add_info() takes 1 positional argument but 2 were given
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport/report.py", line 203, in _run_hook
symb['add_info'](report)
File "/usr/share/apport/package-hooks/systemd.py", line 11, in add_info
apport.hookutils.attach_hardware(report)
File "/usr/lib/python3/dist-packages/apport/hookutils.py", line 265, in attach_hardware
attach_dmi(report)
File "/usr/lib/python3/dist-packages/apport/hookutils.py", line 221, in attach_dmi
value = fd.read().strip()
File "/usr/lib/python3.6/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
..
*** Send problem report to the developers?
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: python3-apport 2.20.9-0ubuntu2
ProcVersionSignature: Ubuntu 4.15.0-13.14-generic 4.15.10
Uname: Linux 4.15.0-13-generic x86_64
ApportVersion: 2.20.9-0ubuntu2
Architecture: amd64
Date: Mon Apr 9 14:32:17 2018
PackageArchitecture: all
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
LANG=C.UTF-8
SourcePackage: apport
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1762438/+subscriptions
More information about the foundations-bugs
mailing list