This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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, eric.snow, vstinner
Priority: normal Keywords:

Created on 2020-07-25 15:27 by Tomasz Pytel, last changed 2022-04-11 14:59 by admin.

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
2022-04-11 14:59:34adminsetgithub: 85568
2021-11-23 17:28:26iritkatrielsetnosy: + vstinner, eric.snow
2020-07-25 15:27:05Tomasz Pytelcreate