Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

no_redundant_jumps: Assertion `0' failed #120367

Assignees
iritkatriel
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
@15r10nk

Description

@15r10nk

Bug report

Bug description:

The following code causes a crash on cpython 3.13 branch (f5289c4) and the current main.

importastcode="""try:    if name_4:        pass    else:        passexcept* name_0:    passelse:    name_4"""tree=ast.parse(code)fornodeinast.walk(tree):ifhasattr(node,"lineno"):delnode.linenodelnode.end_linenodelnode.col_offsetdelnode.end_col_offsetcompile(ast.fix_missing_locations(tree),"<file>","exec")

output (Python 3.13.0a3+):

python:Python/flowgraph.c:511:no_redundant_jumps:Assertion `0'failed.

I bisected the problem down to2091fb2.
@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


    [8]ページ先頭

    ©2009-2025 Movatter.jp