This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients eric.snow, nanjekyejoannah, ncoghlan, pablogsal, vstinner
Date 2020-03-09.23:30:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> 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.
Date User Action Args
2020-03-09 23:30:42vstinnersetrecipients: + vstinner, ncoghlan, eric.snow, pablogsal, nanjekyejoannah
2020-03-09 23:30:42vstinnersetmessageid: <>
2020-03-09 23:30:42vstinnerlinkissue39877 messages
2020-03-09 23:30:42vstinnercreate