DECREF_INPUTS()
should be escaping
#131688
Labels
3.14
bugs and security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
topic-JIT
type-crash
A hard crash of the interpreter, possibly with a core dump
Uh oh!
There was an error while loading. Please reload this page.
Crash report
The interpreter generator doesn't set the
HAS_ESCAPES_FLAG
on instructions/micro-ops that useDECREF_INPUTS()
. It should, though.I think the issue is that we short-circuit our escape check to omit calls that are all-uppercase, since these are generally non-escaping macros:
cpython/Tools/cases_generator/analyzer.py
Lines 732 to 734 in 7c3692f
I'm not sure if it makes sense to just add a special case for
DECREF_INPUTS
here, or omit this heuristic and manually add things that fit this pattern to the non-escaping allowlist. There may also be other surgery involved to make this work correctly, since we want to avoid extra spills and reloads around this.Linked PRs
The text was updated successfully, but these errors were encountered: