[issue33725] Python crashes on macOS after fork with no exec

Barry A. Warsaw report at bugs.python.org
Mon May 13 21:39:45 EDT 2019


Barry A. Warsaw <barry at python.org> added the comment:

On May 10, 2019, at 04:07, Josh Rosenberg <report at bugs.python.org> wrote:
> 
> I've seen far too many cases where Python code targeting Linux intentionally uses the COW benefits of fork for multiprocessing to think it would be a good idea to change the default start method there without *some* sort of deprecation period.

We need to resolve this for 3.8, and given that I think we have clear consensus to change the default on macOS to spawn to avoid the crashes, let’s do that.  We’ll need to update the documentation.

Then if we don’t have consensus to change the default on Linux, let’s issue a DeprecationWarning for the default ‘fork’ method in 3.8 and change it to ‘spawn' in 3.9.

Do we want to issue a warning on set_start_method(‘fork’) on macOS, given that it’s unlikely to be safe?

----------

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


More information about the Python-bugs-list mailing list