This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2010年01月15日 16:35 by kripken, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| test.py | kripken, 2010年01月15日 16:35 | test cases | ||
| multiprocessing-issue7707.patch | asksol, 2010年09月22日 19:19 | |||
| Messages (5) | |||
|---|---|---|---|
| msg97820 - (view) | Author: Alon Zakai (kripken) | Date: 2010年01月15日 16:35 | |
Creating a multiprocessing.Queue and operating on it while being imported can lead to a deadlock. The attached file will work if run directly (python test.py) but will hang if imported from the interpreter (import test). Additional comments are in the file. |
|||
| msg97846 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2010年01月15日 21:10 | |
Without looking at the multiprocessing code I am willing to guess that some code in that run() function is launching some code that runs in a thread that is performing an import, deadlocking on the import lock. Jesse, is that what could be happening? If so we should probably add a note to the multiprocessing docs to not do this sort of stuff, ala http://docs.python.org/library/threading.html#importing-in-threaded-code . |
|||
| msg117151 - (view) | Author: Ask Solem (asksol) (Python committer) | Date: 2010年09月22日 19:19 | |
I created a small doc patch for this (attached). |
|||
| msg120504 - (view) | Author: Jesse Noller (jnoller) * (Python committer) | Date: 2010年11月05日 14:53 | |
Fine w/ committing this Ask. |
|||
| msg159549 - (view) | Author: Hynek Schlawack (hynek) * (Python committer) | Date: 2012年04月28日 23:23 | |
The proposed patch has been committed as c4dcbe51c2e3 – any reasons why this issues is still open? |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:56 | admin | set | github: 51956 |
| 2012年04月28日 23:29:12 | pitrou | set | status: open -> closed resolution: fixed components: + Documentation, - Library (Lib) stage: resolved |
| 2012年04月28日 23:23:44 | hynek | set | nosy:
+ hynek messages: + msg159549 |
| 2010年11月05日 14:53:20 | jnoller | set | messages: + msg120504 |
| 2010年09月22日 19:19:58 | asksol | set | files:
+ multiprocessing-issue7707.patch versions: + Python 3.1, - Python 2.6 nosy: + asksol messages: + msg117151 keywords: + needs review, patch |
| 2010年01月15日 21:10:43 | brett.cannon | set | assignee: jnoller messages: + msg97846 |
| 2010年01月15日 17:26:15 | r.david.murray | set | nosy:
+ brett.cannon, jnoller |
| 2010年01月15日 16:35:13 | kripken | create | |