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 kyle.smith
Recipients kyle.smith, steven.daprano
Date 2022-02-27.14:07:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1645970837.53.0.401624466723.issue46871@roundup.psfhosted.org>
In-reply-to
Content
Since you were able to help me scope that this is probably an MacOS specific issue, I was able to find this report:
https://github.com/pytest-dev/pytest-flask/issues/104

Setting `multiprocessing.set_start_method("fork")` _BEFORE_ the code is called resolves this.

I don't understand enough of MP to understand why this is a problem, and why I need to do this, but alas, at least I have a path forward. 


Since this behavior changed, and it _doesn't_ work cleanly anymore with MacOS, I would say this is a bug (from my casual understanding of python), because it's mentioned in the documentation that using "fork" can be problematic and lead to crashes outlined in bpo-33725.
> Changed in version 3.8: On macOS, the spawn start method is now the default.
> The fork start method should be considered unsafe as it can lead to crashes 
> of the subprocess. See bpo-33725.
History
Date User Action Args
2022-02-27 14:07:17kyle.smithsetrecipients: + kyle.smith, steven.daprano
2022-02-27 14:07:17kyle.smithsetmessageid: <1645970837.53.0.401624466723.issue46871@roundup.psfhosted.org>
2022-02-27 14:07:17kyle.smithlinkissue46871 messages
2022-02-27 14:07:17kyle.smithcreate