Apport crashes when writing to stderr: UnicodeEncodeError: 'ascii' codec can't encode character '\xc1' in position 130: ordinal not in range(128)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Apport is invoked by the kernel via /proc/sys/
ERROR: ERROR: apport (pid 23175) Fri Sep 12 22:51:58 2014: Unhandled exception:
Traceback (most recent call last):
File "/usr/share/
(info[
File "/usr/share/
apport.
File "/usr/lib/
sys.
UnicodeEncodeError: 'ascii' codec can't encode character '\xc1' in position 130: ordinal not in range(128)
ERROR: apport (pid 23175) Fri Sep 12 22:51:58 2014: pid: 23175, uid: 1000, gid: 1000, euid: 0, egid: 0
ERROR: apport (pid 23175) Fri Sep 12 22:51:58 2014: environment: environ({})
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: apport 2.14.1-0ubuntu3.4
ProcVersionSign
Uname: Linux 3.13.0-35-generic x86_64
NonfreeKernelMo
ApportVersion: 2.14.1-0ubuntu3.4
Architecture: amd64
CurrentDesktop: KDE
Date: Fri Sep 12 22:57:13 2014
InstallationDate: Installed on 2014-05-20 (115 days ago)
InstallationMedia: Kubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.1)
PackageArchitec
SourcePackage: apport
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | added: xenial |
Changed in apport (Ubuntu): | |
importance: | Undecided → Medium |
status: | Confirmed → Triaged |
Quick fix: apport/ apport. orig 2014-09-12 23:11:15.067594994 +0400 apport/ apport 2014-09-12 23:10:12.631595210 +0400
--- /usr/share/
+++ /usr/share/
@@ -96,7 +96,7 @@
def error_log(msg):
'''Output something to the error log.'''
- apport. error(' apport (pid %s) %s: %s', os.getpid(), time.asctime(), msg) error(' apport (pid %s) %s: %s', os.getpid(), time.asctime(), msg.encode( "utf-8" ))
+ apport.
def _log_signal_ handler( sgn, frame):
But a better place to fix this would probably be apport.error().