Message363790
> 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:42 | vstinner | set | recipients:
+ vstinner, ncoghlan, eric.snow, pablogsal, nanjekyejoannah |
2020-03-09 23:30:42 | vstinner | set | messageid: <1583796642.54.0.433879901558.issue39877@roundup.psfhosted.org> |
2020-03-09 23:30:42 | vstinner | link | issue39877 messages |
2020-03-09 23:30:42 | vstinner | create | |
|