-
Notifications
You must be signed in to change notification settings - Fork 745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating Module With pymodule
Cause Segmentation Fault In Free-Threaded Python 3.13 On Mac
#4310
Labels
Comments
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). |
#4265 is a tracking issue for free-threading |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: