Skip to content

SIGSEV with method descriptors called without a second argument #132747

Closed
@Changaco

Description

@Changaco

Crash report

What happened?

Since Python 3.12, the following code triggers a segmentation fault:

import _io, sys; _io._TextIOBase.detach.__get__(sys.stderr)

CPython versions tested on:

3.9, 3.11, 3.12, 3.13, 3.14

Operating systems tested on:

Linux

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

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