Message363790
| 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 |
<1583796642.54.0.433879901558.issue39877@roundup.psfhosted.org> |
| In-reply-to |
| Content |
> 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. |
|