[issue38680] PyGILState_Release does not release gil correctly, resulting in deadlock

Damien LEFEVRE report at bugs.python.org
Tue Nov 5 05:47:25 EST 2019


Damien LEFEVRE <lefevre.da at gmail.com> added the comment:

@ronaldoussoren

The issue here is that the behavior between Python 3.6 and 3.7 has changed.

Our code runs perfectly fine with 3.6. We release the lock each time our functions get out of scope and so we know for sure there is no lock left behind.

Starting with 3.7 GIL is acquired when we start the application, but not by us, maybe internally?, and never gets released; thus the deadlock.

----------

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


More information about the Python-bugs-list mailing list