Open FlickerSoul opened 6 days ago
This is not a huge surprise, we need to make PyO3 compatible with the free-threaded builds yet. It's probably my highest priority thing to look at now. The failure mode could be better (e.g. we could at least give you an error on build).
https://github.com/PyO3/pyo3/issues/4265 is a tracking issue for free-threading
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 withsource ./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.