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 eryksun
Recipients eryksun, itaibn, ncoghlan
Date 2015-11-16.16:32:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The interpreter isn't initialized, so calling PyErr_Format in a release build segfaults when it tries to dereference a NULL PyThreadState. OTOH, a debug build should call PyThreadState_Get, which in this case calls Py_FatalError and aborts the process. Unfortunately 3.5.0+ debug builds don't call PyThreadState_Get due to the fix for issue 25150.

> the possibility of other exceptions being raised early in the 
> initialization sequence remains a potential problem.

PEP 432 proposes a pre-initialization phase that sets a valid Python thread state.
Date User Action Args
2015-11-16 16:32:54eryksunsetrecipients: + eryksun, ncoghlan, itaibn
2015-11-16 16:32:54eryksunsetmessageid: <>
2015-11-16 16:32:54eryksunlinkissue25631 messages
2015-11-16 16:32:53eryksuncreate