Apport crashes when processing dump if environment variable contains utf-8 characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
High
|
Martin Pitt |
Bug Description
When doing a simple:
sh -c 'kill -SEGV $$'
Apport would crash and give me:
ERROR: apport (pid 5416) Thu Apr 25 11:27:48 2013: called for pid 5415, signal 11, core limit 0
ERROR: apport (pid 5416) Thu Apr 25 11:27:48 2013: Unhandled exception:
Traceback (most recent call last):
File "/usr/share/
info.
File "/usr/lib/
self.
File "/usr/lib/
env = _read_file('/proc/' + pid + '/environ'
File "/usr/lib/
return fd.read().strip()
File "/usr/lib/
return codecs.
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 387: ordinal not in range(128)
ERROR: apport (pid 5416) Thu Apr 25 11:27:48 2013: pid: 5416, uid: 0, gid: 0, euid: 0, egid: 0
ERROR: apport (pid 5416) Thu Apr 25 11:27:48 2013: environment: environ({})
This was tracked down to it not liking UTF-8 in the environment as Martin then reproduced with:
sh -c 'export LANG=ü; kill -SEGV $$'
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: apport 2.9.2-0ubuntu8
ProcVersionSign
Uname: Linux 3.8.0-19-generic x86_64
ApportVersion: 2.9.2-0ubuntu8
Architecture: amd64
Date: Thu Apr 25 11:30:12 2013
InstallationDate: Installed on 2013-04-21 (4 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130420)
MarkForUpload: True
PackageArchitec
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: apport
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
Changed in apport (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Martin Pitt (pitti) |
importance: | Undecided → High |
Fixed in trunk r2626.