Message388371
When using multiprocessing.Pool.apply[_async] a crash in the subprocess that is assigned the work item results in a deadlock in the parent process.
The parent process remains blissfully unaware of the crash in the subprocess and waits for a result forever. The parent process treats this as normal since the thread running _maintain_pool handles dead processes and repopulates the pool with a replacement subprocess.
See the test-case attached. Its not clear how this case should be handled but it can be very hard to trace issues in an application where this condition arises since all information about the crashing subprocess is lost (even with debug logging for the multiprocessing module enabled). |
|
Date |
User |
Action |
Args |
2021-03-09 18:15:25 | jkp | set | recipients:
+ jkp |
2021-03-09 18:15:25 | jkp | set | messageid: <1615313725.52.0.420809061492.issue43449@roundup.psfhosted.org> |
2021-03-09 18:15:25 | jkp | link | issue43449 messages |
2021-03-09 18:15:25 | jkp | create | |
|