STINNER Victor <vstin...@python.org> added the comment:
> The problem is that Python already freed the memory of all PyThreadState > structures, whereas PyEval_RestoreThread(tstate) dereferences tstate to get > the _PyRuntimeState structure: Funny/not funny, bpo-36818 added a similar bug with commit 396e0a8d9dc65453cb9d53500d0a620602656cfe in June 2019: bpo-37135. I reverted the change to fix the issue. Hopefully, it should now be fixed and the rationale for accessing directly _PyRuntime should now be better documented. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39877> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com