[Python-bugs-list] [Bug #133200] cPickle does not use Py_BEGIN_ALLOW_THREADS.
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 20 Feb 2001 11:54:14 -0800
Bug #133200, was updated on 2001-Feb-20 00:12
Here is a current snapshot of the bug.
Project: Python
Category: Threads
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Submitted by: ianbanks
Assigned to : dcjim
Summary: cPickle does not use Py_BEGIN_ALLOW_THREADS.
Details: This bug refers to:
python/dist/src/Modules/cPickle.c
Revision 2.54 (In SourceForge)
The use of fread (line 506) and fwrite (line 410) are not wrapped by
Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS.
This causes certain uses of cPickle in threaded programs to deadlock, where
pickle does not.
Follow-Ups:
Date: 2001-Feb-20 11:54
By: fdrake
Comment:
Can you provide an example that actually deadlocks? Please provide
platform information as well.
cPckle certainly could be more thread-friendly in the way that you suggest,
but it should not actually deadlock either.
-------------------------------------------------------
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=133200&group_id=5470