Skip to content

Segfault with 3.14.2t and trio #142421

@A5rocks

Description

@A5rocks

Crash report

What happened?

import trio

async def main() -> None:
    task = trio.lowlevel.current_task()
    task._schedule_points = "hello!"  # type: ignore
    await trio.lowlevel.checkpoint()

trio.run(main)

I reproduced using trio from source, but the version from PyPI (tested with v0.32.0) will work as well.

Note that using non-free-threading builds does not cause segfaults. This same reproducer used to segfault in #133932 but this new version doesn't even need GC to do so.

CPython versions tested on:

3.14

Operating systems tested on:

macOS

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

Python 3.14.2 free-threading build (main, Dec 5 2025, 21:11:07) [Clang 21.1.4 ]

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions