Antoine Pitrou added the comment:

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

----------
nosy: +pitrou
stage:  -> needs patch
title: lzma hangs for a very long time when run in parallel using python's 
muptiprocessing module? -> unpickled LZMACompressor is crashy
type: behavior -> crash
versions: +Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19395>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to