Skip to content

flowgraph.c: push_cold_blocks_to_end: Assertion `prev_instr' failed #120225

Closed
@15r10nk

Description

@15r10nk

Bug report

Bug description:

The following code causes a crash with cpython 3.13 (56a7e04) and with the current main branch (d68a22e)

async def name_4():
    match b'':
        case True:
            pass
        case name_5 if f'e':
            {name_3: name_4 async for name_2 in name_5}
        case []:
            pass
    [[]]

output (Python 3.13.0b2+):

python: Python/flowgraph.c:2282: push_cold_blocks_to_end: Assertion `prev_instr' failed.

I bisected the problem down to this commit 2091fb2.
@iritkatriel can you take a look at it?

CPython versions tested on:

3.13, CPython main branch

Operating systems tested on:

No response

Linked PRs

Metadata

Metadata

Assignees

Labels

3.13bugs and security fixes3.14bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-crashA hard crash of the interpreter, possibly with a core dump

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions