[issue41396] pystate.c:_PyCrossInterpreterData_Release() does not clear py exception on error

Tomasz Pytel report at bugs.python.org
Sat Jul 25 11:27:05 EDT 2020


New submission from Tomasz Pytel <tompytel at gmail.com>:

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().

----------
components: Interpreter Core
messages: 374270
nosy: Tomasz Pytel
priority: normal
severity: normal
status: open
title: pystate.c:_PyCrossInterpreterData_Release() does not clear py exception on error
type: behavior
versions: Python 3.8

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


More information about the Python-bugs-list mailing list