[issue10900] bz2 module fails to uncompress large files

Charles-Francois Natali report at bugs.python.org
Tue Mar 1 22:14:15 CET 2011


Charles-Francois Natali <neologix at free.fr> added the comment:

After running this under gdb, it turns out that it's actually bzlib's bzRead that's returning a BZ_STREAM_END after only 900k bytes.
So it confims what I've been suspecting, i.e. that the file is corrupt (I got the error at exactly the same offset as you - it could be a bug in bzlib, but it'd be quite surprising).
Note that google returns quite a few occurrences of corrupted OSM archives, e.g. http://www.mail-archive.com/newbies@openstreetmap.org/msg01854.html

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10900>
_______________________________________


More information about the Python-bugs-list mailing list