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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions