This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients cantor, nadeem.vawda, pitrou
Date 2013-10-25.20:22:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1382732527.36.0.645367500057.issue19395@psf.upfronthosting.co.za>
In-reply-to
Content
The problem is that using an unpickled LZMACompressor crashes:

$ ./python -c "import lzma, pickle; c = pickle.loads(pickle.dumps(lzma.LZMACompressor())); c.compress(b'')"
Erreur de segmentation

Here is the gdb backtrace:

#0  0x00007ffff7bcafc0 in sem_trywait () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x0000000000436c15 in PyThread_acquire_lock_timed (lock=0x0, microseconds=0, intr_flag=0) at Python/thread_pthread.h:350
#2  0x0000000000436db8 in PyThread_acquire_lock (lock=0x0, waitflag=0) at Python/thread_pthread.h:556
#3  0x00007ffff64a6538 in Compressor_compress (self=0x7ffff7e129a0, args=0x7ffff7f17468) at /home/antoine/cpython/default/Modules/_lzmamodule.c:533
History
Date User Action Args
2013-10-25 20:22:07pitrousetrecipients: + pitrou, nadeem.vawda, cantor
2013-10-25 20:22:07pitrousetmessageid: <1382732527.36.0.645367500057.issue19395@psf.upfronthosting.co.za>
2013-10-25 20:22:07pitroulinkissue19395 messages
2013-10-25 20:22:06pitroucreate