Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Nov 30, 2017

When PyGILState_Ensure() is called in a non-Python thread before
PyEval_InitThreads(), only call PyEval_InitThreads() after calling
PyThreadState_New() to fix a crash.

(cherry picked from commit b4d1e1f)

https://bugs.python.org/issue20891

When PyGILState_Ensure() is called in a non-Python thread before
PyEval_InitThreads(), only call PyEval_InitThreads() after calling
PyThreadState_New() to fix a crash.

(cherry picked from commit b4d1e1f)
@vstinner vstinner merged commit be6b74c into python:2.7 Nov 30, 2017
@vstinner vstinner deleted the pygilstate_ensure27 branch November 30, 2017 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants