PyGILStateEnsure() (Probably) Crashes If Called After Finalization #124619
Labels
3.12
only security fixes
3.13
bugs and security fixes
3.14
bugs and security fixes
topic-C-API
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
I'm pretty sure
PyGILState_Ensure()
will crash if called after finalization, particularly in the case where the thread doesn't already have a thread state active. I noticed this while looking at the function for something else.CC @gpshead
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
The text was updated successfully, but these errors were encountered: