Title: pystate.c:_PyCrossInterpreterData_Release() does not clear py exception on error
Type: behavior Stage:
Components: Interpreter Core Versions: Python 3.8
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Tomasz Pytel, eric.snow, vstinner
Priority: normal Keywords:

Created on 2020-07-25 15:27 by Tomasz Pytel, last changed 2021-11-23 17:28 by iritkatriel.

Messages (1)
msg374270 - (view) Author: Tomasz Pytel (Tomasz Pytel) Date: 2020-07-25 15:27
The call to _PyInterpreterState_LookUpID() may generate a Python exception but it is not explicitly cleared on error and no indicator is returned to signal failure. This can lead to a "a function returned a result with an error set" fatal error, and does in fact do so in a case I encountered in Modules/_xxsubinterpreters.c:channel_destroy().
Date User Action Args
2021-11-23 17:28:26iritkatrielsetnosy: + vstinner, eric.snow
2020-07-25 15:27:05Tomasz Pytelcreate