[issue6380] Deadlock during the "import" in the fork()'ed child process if fork() happened while import_lock was held

2009-06-29 Thread Dmitriy Khramtsov
New submission from Dmitriy Khramtsov : Greetings, The 2.4 and 2.5 versions of python contains a deadlock caused by possibility to hold import_lock while doing fork() and not resetting it in the child (on the linux platform). The prove of concept code is: --BEGIN (import_lock.py)-- #!/usr

[issue6380] Deadlock during the "import" in the fork()'ed child process if fork() happened while import_lock was held

2009-06-29 Thread Dmitriy Khramtsov
Dmitriy Khramtsov added the comment: > Does the problem also exist in Python 2.6? We will definitely not fix it > anymore for 2.4 and 2.5. Yep. Exactly same problem in Python 2.6. This problem does probably exist in all newer versions as well but I didn't explicitly te