Skip to content

Complex-returning functions crash under CPython 3.12 #400

Description

@b-long

Functions returning complex64 or complex128 crash on their first call under CPython 3.12 (x86_64 and arm64). CPython 3.11 is unaffected.

The crash is inside PyComplex_FromDoubles (bind/gen.go), a segfault consistent with a null PyThreadState.

The issue can be observed in Github Actions output, within https://github.com/go-python/gopy/actions/runs/30058888912

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions