[issue23051] multiprocessing.pool methods imap() and imap_unordered() cause deadlock

2014-12-14 Thread Alon Diamant
New submission from Alon Diamant: When imap() or imap_unordered() are called with the iterable parameter set as a generator function, and when that generator function raises an exception, then the _task_handler thread (running the method _handle_tasks) dies immediately, without causing

[issue23051] multiprocessing.pool methods imap() and imap_unordered() cause deadlock

2014-12-14 Thread Alon Diamant
Changes by Alon Diamant diamant.a...@gmail.com: Added file: http://bugs.python.org/file37449/Issue_23051_reproducer_v2_7.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23051

[issue23051] multiprocessing.pool methods imap() and imap_unordered() cause deadlock

2014-12-14 Thread Alon Diamant
Changes by Alon Diamant diamant.a...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file37450/Issue_23051_fix_v2_7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23051

[issue23051] multiprocessing.pool methods imap() and imap_unordered() cause deadlock

2014-12-14 Thread Alon Diamant
Changes by Alon Diamant diamant.a...@gmail.com: Added file: http://bugs.python.org/file37451/Issue_23051_reproducer_v3_4.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23051

[issue23051] multiprocessing.pool methods imap() and imap_unordered() cause deadlock

2014-12-14 Thread Alon Diamant
Changes by Alon Diamant diamant.a...@gmail.com: Added file: http://bugs.python.org/file37452/Issue_23051_fix_v3_4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23051

[issue23051] multiprocessing.pool methods imap() and imap_unordered() cause deadlock

2014-12-14 Thread Alon Diamant
Changes by Alon Diamant diamant.a...@gmail.com: Removed file: http://bugs.python.org/file37452/Issue_23051_fix_v3_4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23051

[issue23051] multiprocessing.pool methods imap() and imap_unordered() cause deadlock

2014-12-14 Thread Alon Diamant
Changes by Alon Diamant diamant.a...@gmail.com: Added file: http://bugs.python.org/file37453/Issue_23051_fix_v3_4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23051

[issue23051] multiprocessing.pool methods imap() and imap_unordered() cause deadlock

2014-12-14 Thread Alon Diamant
Alon Diamant added the comment: The patches I attached do 2 things: 1. A deadlock is prevented, wherein the main thread waits forever for the Pool thread/s to finish their execution, while they wait for instructions to terminate from the _task_handler thread which has died. Instead