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
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
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
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
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
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
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
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