CRC-checksum failed in gzip

andrea crotti andrea.crotti.0 at gmail.com
Wed Aug 1 13:17:56 EDT 2012


2012/8/1 Laszlo Nagy <gandalf at shopzeus.com>:
>
>> Thanks a lot, that makes a lot of sense..  I haven't given this detail
>> before because I didn't write this code, and I forgot that there were
>> threads involved completely, I'm just trying to help to fix this bug.
>>
>> Your explanation makes a lot of sense, but it's still surprising that
>> even just reading files without ever writing them can cause troubles
>> using threads :/
>
> Make sure that file objects are not shared between threads. If that is
> possible. It will probably solve the problem (if that is related to
> threads).


Well I just have to create a lock I guess right?
with lock:
    # open file
    # read content



More information about the Python-list mailing list