apport-collect crash when sending log file and using a non-English locale ("TypeError: 'unicode' does not have the buffer interface")
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
In the process of updating #1030151 I was hit by a bug in apport-collect. When doing
apport-collect 1030151
in a root console the apport-collect would crash with following trace back :
Traceback (most recent call last):
File "/usr/share/
app.run_argv()
File "/usr/lib/
return self.run_
File "/usr/lib/
attachment_
File "/usr/lib/
report.
File "/usr/lib/
attach_value = CompressedValue(v, k).gzipvalue
File "/usr/lib/
self.
File "/usr/lib/
gzip.
File "/usr/lib/
self.
File "/usr/lib/
self.
TypeError: 'unicode' does not have the buffer interface
Calling apport-collect with LC_ALL=C or LANG=C as suggest by Edward Donovan didn't solve the issue.
I used this workaround : in /usr/lib/
gzip.GzipFile(
by :
gzip.GzipFile(
It's a quick and dirty hack but maybe it will help the developpers to trully solve the issue.
Cheers !
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: apport 2.4-0ubuntu6
ProcVersionSign
Uname: Linux 3.5.0-6-generic x86_64
ApportLog:
ApportVersion: 2.4-0ubuntu6
Architecture: amd64
CrashReports:
644:0:
600:105:
640:0:
Date: Sun Jul 29 12:53:17 2012
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120627)
PackageArchitec
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=fr_FR.UTF-8
SHELL=/bin/bash
SourcePackage: apport
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in apport (Ubuntu): | |
assignee: | nobody → Bruce Pieterse (octoquad) |
summary: |
apport-collect crash when sending log file and using a non-English - locale + locale ("TypeError: 'unicode' does not have the buffer interface") |
Status changed to 'Confirmed' because the bug affects multiple users.