[issue45970] Py_NewInterpreter causes bogus fatal error along the failure path

2021-12-02 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +28124 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29900 ___ Python tracker _

[issue45970] Py_NewInterpreter causes bogus fatal error along the failure path

2021-12-02 Thread Jason Haslam
New submission from Jason Haslam : The failure cleanup of `Py_NewInterpreter` causes a bogus fatal error on the call to `PyThreadState_Delete`. The error is about deleting the current thread state. The saved thread state should be swapped back in *before* deleting the new thread state. -