Message201287
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 |
|
Date |
User |
Action |
Args |
2013-10-25 20:22:07 | pitrou | set | recipients:
+ pitrou, nadeem.vawda, cantor |
2013-10-25 20:22:07 | pitrou | set | messageid: <1382732527.36.0.645367500057.issue19395@psf.upfronthosting.co.za> |
2013-10-25 20:22:07 | pitrou | link | issue19395 messages |
2013-10-25 20:22:06 | pitrou | create | |
|