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.

Author jkp
Recipients jkp
Date 2021-03-09.18:15:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1615313725.52.0.420809061492.issue43449@roundup.psfhosted.org>
In-reply-to
Content
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).
History
Date User Action Args
2021-03-09 18:15:25jkpsetrecipients: + jkp
2021-03-09 18:15:25jkpsetmessageid: <1615313725.52.0.420809061492.issue43449@roundup.psfhosted.org>
2021-03-09 18:15:25jkplinkissue43449 messages
2021-03-09 18:15:25jkpcreate