gzipped file cannot be read with zlib

Bug #1267930 reported by Barry Haddow on 2014-01-10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zlib (Ubuntu)

Bug Description


I gzip a file (dropbox link below), but when trying to read it with zlib I get:

zlib.error: Error -3 while decompressing: invalid distances set

This seems to be a zlib problem -- using the latest zlib release (1.2.8) is fine.

For reading in the file, I am using C++ to call the zlib api, but I can reproduce the problem in a simple python program:

import gzip

fd = gzip.GzipFile("extract.2.gz", "rb")
count = 1
for line in fd:
  count +=1
print count

Ubuntu 12.04
  Installed: 1:
  Candidate: 1:
  Version table:
 *** 1: 0

Problem file:

cheers - Barry

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers