STINNER Victor added the comment: I created the issue #26563 "PyMem_Malloc(): check that the GIL is hold in debug hooks". ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue26249> _______________________________________