Skip to content

[3.14] Parser stack overflow on musllinux x86_64 #137231

@neutrinoceros

Description

@neutrinoceros

Bug report

Bug description:

When trying to build and test wheels for yt on 3.14.0rc1, we encounter a single error, only on the musllinux image from cibuildwheel, which crashes on import with

MemoryError: Parser stack overflowed - Python source too complex to parse

example logs:
https://github.com/yt-project/yt/actions/runs/16576917774/job/46883376625?pr=5185

To make things worse, this seems to only happen in the context of a pytest session: python -c "import yt" completes without raising.

A minimal reproducer would necessarily still include a significant amount of complexity, so before I try to reduce it, I'd like to ask:
is it expected that the threshold for triggering this exception may depend on the platform and/or the exact Python version ? is it expected that the threshold may be lower in Python 3.14 than it was in 3.13 ?

CPython versions tested on:

3.14

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Todo

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions