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

anext(A(), default) crashes whenStopAsyncIteration is raised by a synchronous__anext__ #131670

Closed
Assignees
sobolevn
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)type-crashA hard crash of the interpreter, possibly with a core dump
@picnixz

Description

@picnixz

Crash report

What happened?

Python3.14.0a6+ (heads/main:0e53038ea82,Mar242025,14:56:34) [GCC7.5.0]onlinuxType"help","copyright","credits"or"license"formoreinformation.>>>classA:...def__anext__(self):...raiseStopAsyncIteration...>>>anext(A(),"a")Segmentationfault (coredumped)

There is no crash withanext(A()) or when directly calling__anext__(). Or when__anext__ is declared withasync def, it's fine. Or when__anext__() doesn't raise, it's also fine.

NB: I haven't bisected the change but itmight be related to what I wrote in76ffaef.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Output from running 'python -VV' on the command line:

No response

Linked PRs

Metadata

Metadata

Assignees

Labels

interpreter-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