[issue45970] Py_NewInterpreter causes bogus fatal error along the failure path
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. -- 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 <https://bugs.python.org/issue45970> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35103] format_exception() doesn't work with PyErr_Fetch
Jason Haslam added the comment: FWIW, I believe that you have to call `PyErr_NormalizeException` on the values returned from `PyErr_Fetch`. It looks like this is working as expected. -- nosy: +jason.haslam ___ Python tracker <https://bugs.python.org/issue35103> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com