[issue40379] multiprocessing's default start method of fork()-without-exec() is broken

Andrew Duncan report at bugs.python.org
Thu Apr 29 19:10:59 EDT 2021


Andrew Duncan <mountaindrew.duncan at gmail.com> added the comment:

I just ran into and fixed (thanks to itamarst's blog post) a problem likely related to this.

Multiprocessing workers performing work and sending a logging message back with success/fail info. I had a few intermittent deadlocks that became a recurring problem when I sped up the process that skipped tasks which had previously completed (I think this shortened the time between forking and attempting to send messages causing the third process to deadlock). After changing that it deadlocked *every time*.

Switching to "spawn" at the top of the main function has fixed it.

----------
nosy: +aduncan

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40379>
_______________________________________


More information about the Python-bugs-list mailing list