selftest fails in Ubuntu 12.10 with test_apport_report
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
Unassigned | ||
bzr (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Running bzr selftest in Ubuntu 12.10, the following test seems to fail on every machine I have tried it on, always with the following error:
=======
FAIL: bzrlib.
-------
_StringException: Empty attachments:
log
Traceback (most recent call last):
File "/usr/lib/
stderr)
File "/usr/lib/
crash_filename = _write_
File "/usr/lib/
pr['Locale'] = os.environ.
File "/usr/lib/
and (hasattr(v[0], 'isalnum') or hasattr(v[0], 'read'))))
AssertionError
-------
Ran 27987 tests in 293.810s
FAILED (failures=1, known_failure_
2763 tests skipped
I created an lxc container (sudo lxc-create -t ubuntu -n bzr-test) and ran bzr selftest in there. It skips test_crash, due to the missing dependencies, but every test that is run passes happily. After installing apport and python-apport, test_crash runs, and fails. The included error report is from bzr selftest run inside that lxc container.
Quickest way to reproduce this is the following:
bzr selftest --one -s bzrlib.
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: bzr 2.6.0~beta2-
ProcVersionSign
Uname: Linux 3.5.0-22-generic x86_64
ApportVersion: 2.6.1-0ubuntu9
Architecture: amd64
Date: Sun Jan 27 19:40:27 2013
InstallationDate: Installed on 2012-11-02 (86 days ago)
InstallationMedia: Ubuntu GNOME Remix 12.10 "Quantal Quetzal" - Release amd64(20121023)
MarkForUpload: True
PackageArchitec
SourcePackage: bzr
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- John A Meinel: Approve
-
Diff: 21 lines (+2/-2)1 file modifiedbzrlib/crash.py (+2/-2)
Changed in bzr: | |
importance: | Undecided → High |
status: | New → Fix Released |
Oh, actually I'm seeing two issues here. Apport wants a file opened in binary mode for pr.write, but it was also failing in my lxc container for a _second_ reason: get('LANG' )
pr['Locale'] = os.environ.
That causes a crash in a minimal environment, with the LANG variable unset, because apparently python-apport's Report class doesn't like when we set an empty value.
There are a 4 other failing tests, with the qbzr and builddeb plugins, but at least those ones aren't in core bzr :)