Antoine Pitrou <pit...@free.fr> added the comment:

As the multiprocessing doc says 
(https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods):
"""Note that safely forking a multithreaded process is problematic."""

The reproducer is trivially fixed by adding a call to 
`multiprocessing.set_start_method("forkserver")` (you can also replace 
"forkserver" with "spawn")

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue45021>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to