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

Created on 2020-07-25 15:27 by Tomasz Pytel, last changed 2020-07-25 15:27 by Tomasz Pytel.

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().
History
Date User Action Args
2020-07-25 15:27:05Tomasz Pytelcreate