-
-
Notifications
You must be signed in to change notification settings - Fork 34.1k
Closed
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
Description
Crash report
What happened?
Found by the cpython3 fuzzer, see https://oss-fuzz.com/testcase-detail/5164455094976512.
>>> try:a
... finally:
... class h[l:{7for*()in 0}]:2
python: Python/compile.c:1163: _PyCompile_LeaveConditionalBlock: Assertion `c->u->u_in_conditional_block > 0' failed.
Aborted (core dumped)
I think I know how to fix it, I will open a PR.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
No response
Linked PRs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump