[issue10332] Multiprocessing maxtasksperchild results in hang

2011-10-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3465a9b2d25c by Charles-François Natali in branch '2.7': Issue #10332: multiprocessing: fix a race condition when a Pool is closed http://hg.python.org/cpython/rev/3465a9b2d25c New changeset 52c98a729a71 by

[issue10332] Multiprocessing maxtasksperchild results in hang

2011-10-24 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: James, thanks for the report! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10332] Multiprocessing maxtasksperchild results in hang

2011-10-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch looks good to me, thanks. -- versions: +Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10332 ___

[issue10332] Multiprocessing maxtasksperchild results in hang

2011-10-21 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Here's an updated patch. I'll open a separate issue for the thread-safety. -- keywords: +needs review nosy: +pitrou stage: - patch review Added file: http://bugs.python.org/file23489/pool_lifetime_close-1.diff

[issue10332] Multiprocessing maxtasksperchild results in hang

2011-10-21 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: Removed file: http://bugs.python.org/file21644/pool_lifetime_close.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10332 ___

[issue10332] Multiprocessing maxtasksperchild results in hang

2011-04-13 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: This problem arises because the pool's close method is called before all the tasks have completed. Putting a sleep(1) before pool.close() won't exhibit this lockup. The root cause is that close makes the workers handler thread exit:

[issue10332] Multiprocessing maxtasksperchild results in hang

2011-04-13 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Note: I noticed that there are some thread-unsafe operations (the cache that can be modified from different threads, and thread states are modified also from different threads). While this isn't an issue with the current cPython

[issue10332] Multiprocessing maxtasksperchild results in hang

2011-04-04 Thread Jesse Keating
Jesse Keating jkeat...@redhat.com added the comment: I can duplicate this using python-2.7-8.fc14.1 on Fedora 14, and using map_async with the pool. -- nosy: +jkeating ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10332

[issue10332] Multiprocessing maxtasksperchild results in hang

2010-11-05 Thread James Hutchison
New submission from James Hutchison jamesghutchi...@gmail.com: v.3.2a3 If the maxtasksperchild argument is used, the program will just hang after whatever that value is rather than working as expected. Tested in Windows XP 32-bit test code: import multiprocessing def f(x): return 0;

[issue10332] Multiprocessing maxtasksperchild results in hang

2010-11-05 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +asksol, jnoller type: - behavior versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10332 ___