IOError on broken gzip attachments
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Won't Fix
|
Low
|
Unassigned |
Bug Description
Binary package hint: apport
I was testing the following bug pattern and the test-local script returned "IOError: CRC check failed 0x32353035 != 0x0L". I suspect it's because we're unable to successfully gunzip the file.
ogasawara@
=== modified file 'linux.xml'
--- linux.xml 2009-05-28 16:33:22 +0000
+++ linux.xml 2009-07-08 19:37:29 +0000
@@ -8,4 +8,10 @@
<re key="ProcCmdLin
<re key="ErrorMessa
</pattern>
+ <pattern url="https:/
+ <re key="DpkgTermin
+ </pattern>
+ <pattern url="https:/
+ <re key="VarLogDist
+ </pattern>
</patterns>
ogasawara@
Traceback (most recent call last):
File "./test-local", line 14, in <module>
report = db.download(
File "/usr/lib/
report[key] = gzip.GzipFile(
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
hex(self.crc)))
IOError: CRC check failed 0x32353035 != 0x0L
ogasawara@
gzip: VarLogDistupgra
ProblemType: Bug
Architecture: i386
Date: Wed Jul 8 12:40:39 2009
DistroRelease: Ubuntu 9.10
Package: apport 1.5-0ubuntu2
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: apport
Uname: Linux 2.6.31-2-generic i686
The attached patch works around the issue by adding a handler for the IOError, it is useful if you are testing a pattern with a list of bug reports.