Open GoogleCodeExporter opened 9 years ago
After some more debugging I've concluded that this is caused by a deadlock in
python when fork is used in a threaded program, as reported in
http://bugs.python.org/issue13817. A fix for this is integrated in 2.7.3.
So, please close this issue.
Original comment by bjorn.an...@sonymobile.com
on 29 Nov 2012 at 3:21
For the record:
The problem is that thread local storage is emulated in some versions of python
and every access is guarded by a global mutex, the thread local storage is
re-initialized right after a fork() syscall, which is done with the mutex held.
So if any other thread holds the global mutex over the fork() call a deadlock
will occur.
This is fixed by cleaning up the order that things are re-initialized after the
fork() call.
So any python application calling fork while having other threads running is
likely to hit this issue sooner or later.
For the python 2.7 series, that my machine runs, the issue is corrected in
2.7.3.
Original comment by bjorn.an...@sonymobile.com
on 30 Nov 2012 at 1:38
Original issue reported on code.google.com by
bjorn.an...@sonymobile.com
on 25 Nov 2012 at 10:01