Creating Module With pymodule
Cause Segmentation Fault In Free-Threaded Python 3.13 On Mac
#4310
Labels
pymodule
Cause Segmentation Fault In Free-Threaded Python 3.13 On Mac
#4310
Bug Description
The following code,
when built and run in the free-threaded version of Python 3.13, will cause segmentation fault.
I'm not entirely sure if it's because of PyO3's or CPython.
Steps to Reproduce
maturin develop --target aarch64-apple-darwin
python3.13 -c "import test_lib"
Backtrace
Your operating system and version
macOS 15.0 24A5279h arm64
Your Python version (
python --version
)Python 3.13.0b3
Your Rust version (
rustc --version
)rustc 1.79.0 (129f3b996 2024-06-10)
Your PyO3 version
0.22.0
How did you install python? Did you use a virtualenv?
To install:
pyenv install 3.13.0b3t
To create virtualenv:
python -m venv ./venv
Then activate with
source ./venv/bin/activate
and then runmaturin develop
Additional Info
The non-free-threaded version of 3.13.0b3, installed with
pyenv install 3.13.0b3
works fine.The text was updated successfully, but these errors were encountered: