[issue46090] C extensions can't swap out live frames anymore

Pablo Galindo Salgado report at bugs.python.org
Fri Dec 17 19:14:41 EST 2021


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

That is weird, but can happen for example if some pthread of some c extensión for example picks up the Gil, causing a new PyThreadState to be created and linked but has not called into Python yet.

Basically, an external native thread that calls 
PyGILState_Ensure leaves a thread state with these characteristics.

----------

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


More information about the Python-bugs-list mailing list