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

Barry A. Warsaw report at bugs.python.org
Wed Nov 14 22:22:35 EST 2018


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

I have a reliable way to call *something* in the pthread_atfork prepare handler, but I honestly don't know what to call to prevent the crash.

In the Ruby thread, it seemed to say that you could just dlopen /System/Library/Frameworks/Foundation.framework/Foundation but that does not work for me.  Neither does also loading the CoreFoundation and SystemConfiguration frameworks.

If anybody has something that will reliably initialize the runtime, I can post my approach (there are a few subtleties).  Short of that, I think there's nothing that can be done except ensure that exec is called right after fork.

----------

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


More information about the Python-bugs-list mailing list