[New-bugs-announce] [issue40048] _PyEval_EvalFrameDefault() doesn't reset tstate->frame if _PyCode_InitOpcache() fails

STINNER Victor report at bugs.python.org
Mon Mar 23 10:36:53 EDT 2020


New submission from STINNER Victor <vstinner at python.org>:

tstate->frame is a borrowed references to the current frame object. It's set tp the frame at _PyEval_EvalFrameDefault() and resets to frame->f_back at _PyEval_EvalFrameDefault() exit.

Problem: when _PyCode_InitOpcache() fails, tstate->frame is not reset to frame->f_back.

----------
components: Interpreter Core
messages: 364850
nosy: vstinner
priority: normal
severity: normal
status: open
title: _PyEval_EvalFrameDefault() doesn't reset tstate->frame if _PyCode_InitOpcache() fails
versions: Python 3.8, Python 3.9

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


More information about the New-bugs-announce mailing list