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

Jason Haslam report at bugs.python.org
Fri Dec 3 00:35:05 EST 2021


New submission from Jason Haslam <jason.haslam at gmail.com>:

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.

----------
components: C API
messages: 407566
nosy: jason.haslam
priority: normal
severity: normal
status: open
title: Py_NewInterpreter causes bogus fatal error along the failure path
type: crash
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45970>
_______________________________________


More information about the Python-bugs-list mailing list