Test bzrlib.tests.test_tuned_gzip.TestToGzip.test_enormous_chunk fails - potential regression in python2.7 2.7.3-15ubuntu1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Bazaar |
High
|
Vincent Ladeuil | ||
| Python |
New
|
Unknown
|
||
| bzr (Ubuntu) |
High
|
Unassigned | ||
| python2.7 (Ubuntu) |
High
|
Unassigned | ||
| Raring |
High
|
Unassigned |
Bug Description
The following test bzrlib.
=======
FAIL: bzrlib.
-------
_StringException: Empty attachments:
log
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.
AssertionError: not equal:
a = 'a large string\na large string\na large string\na larg
[...]
This is reproducible with:
$ bzr selftest -s bzrlib.
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: bzr 2.6.0~bzr6571-
ProcVersionSign
Uname: Linux 3.8.0-2-generic x86_64
ApportVersion: 2.8-0ubuntu4
Architecture: amd64
Date: Tue Feb 5 10:17:58 2013
MarkForUpload: True
PackageArchitec
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: bzr
UpgradeStatus: Upgraded to raring on 2012-01-31 (370 days ago)
Related branches
- John A Meinel: Approve on 2013-07-09
- Robert Collins (community): Approve on 2013-07-09
-
Diff: 268 lines (+122/-100)3 files modifiedbzrlib/tests/test_tuned_gzip.py (+6/-3)
bzrlib/tuned_gzip.py (+111/-97)
doc/en/release-notes/bzr-2.6.txt (+5/-0)
Jean-Baptiste Lallement (jibel) wrote : | #1 |
Vincent Ladeuil (vila) wrote : | #3 |
s/starts succeed/succeed with values up to 34 (instead of 256).
Jean-Baptiste Lallement (jibel) wrote : | #4 |
Actually the decoded string is much shorter (511630 characters) than the original string (3932160 characters)
Jean-Baptiste Lallement (jibel) wrote : | #5 |
After further analysis and downgrading python2.7 this issue is not reproducible with python2.7 2.7.3-14ubuntu1 (it started with python2.7 2.7.3-15ubuntu1) , so it's potentially a regression introduced in python2.7 2.7.3-15ubuntu1
summary: |
- Test bzrlib.tests.test_tuned_gzip.TestToGzip.test_enormous_chunk fails + Test bzrlib.tests.test_tuned_gzip.TestToGzip.test_enormous_chunk fails - + potential regression in python2.7 2.7.3-15ubuntu1 |
Jean-Baptiste Lallement (jibel) wrote : | #6 |
The regression in the testsuite could have been introduced by this change
- Issue #1159051: GzipFile now raises EOFError when reading a corrupted file with truncated header or footer. (http://
Changed in bzr (Ubuntu): | |
importance: | Undecided → High |
Changed in python2.7 (Ubuntu): | |
importance: | Undecided → High |
status: | New → Confirmed |
tags: | added: rls-r-incoming |
tags: | removed: rls-r-incoming |
Changed in python: | |
status: | Unknown → New |
Matthias Klose (doko) wrote : | #7 |
from the python tracker:
tuned_gzip does dangerous things, it overloads private methods of GzipFile.
From Bazaar 2.3 Release Notes:
* Stop using ``bzrlib.
python-2.7 and was only used for Knit format repositories, which haven't
been recommended since 2007. The file itself will be removed in the next
release. (John Arbash Meinel)
Current version is 2.6b2. bzrlib.
Launchpad Janitor (janitor) wrote : | #8 |
This bug was fixed in the package python2.7 - 2.7.3-16ubuntu2
---------------
python2.7 (2.7.3-16ubuntu2) raring; urgency=low
* Update to 20130315, taken from the 2.7 branch.
- Issue #1285086: Get rid of the refcounting hack and speed
up urllib.unquote().
- Issue #17368: Fix an off-by-one error in the Python JSON decoder
that caused a failure while decoding empty object literals when
object_
- Issue #17299: Add test coverage for cPickle with file objects and general
IO objects.
- Issue #11963: Remove human verification from test_parser and
test_
- Issue #16004: Add `make touch`.
- Issue #17412: Update 2.7 Doc/make.bat to also use sphinx-1.0.7.
- Issue #17047: Remove doubled words in docs and docstrings.
* Revert the patch for Issue #1159051, handling corrupted gzip files
with unexpected EOF. LP: #1116079.
-- Matthias Klose <email address hidden> Fri, 15 Mar 2013 12:20:10 -0700
Changed in python2.7 (Ubuntu Raring): | |
status: | Confirmed → Fix Released |
Robert Collins (lifeless) wrote : | #9 |
Agreed, this is most likely a bzr bug in obsolete code. I'd want to see a reproduction on the base gzip class before assessing this as a Python upstream issue. We'd see rather massive issues if it was an upstream issue.
Dimitri John Ledkov (xnox) wrote : | #10 |
Remove explicit target raring from bzr task, thus to remove it from the rls-r-tracking bugs report. Python got uploaded thus this issue is not a priority for raring release at the moment.
no longer affects: | bzr (Ubuntu Raring) |
Matthias Klose (doko) wrote : | #11 |
reverted:
* Revert the patch for Issue #1159051, handling corrupted gzip files
with unexpected EOF. LP: #1116079.
so bzr needs the fix for raring.
Changed in bzr (Ubuntu): | |
milestone: | none → ubuntu-13.04-beta-1 |
Matthias Klose (doko) wrote : | #12 |
bzr issue now tracked in #1160572 for raring
Changed in bzr: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Vincent Ladeuil (vila) |
Changed in bzr: | |
milestone: | none → 2.6b3 |
status: | In Progress → Fix Released |
Changed in bzr: | |
milestone: | 2.6b3 → 2.6.0 |
As discussed on IRC, the test starts succeed with:
self. assertToGzip( ['a large string\n'*1024*34])
and starts failing with:
self. assertToGzip( ['a large string\n'*1024*35])