-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
v3.13.0rc2 Segmentation Fault in gc.get_referents. PyCapsule->traverse_func is NULL #124538
Comments
I'll take a look at this soon. At a glance, we just need to have |
This is a 3.13 regression! Looks like the bad commit was #108339. It's a pretty simple fix though. |
Sorry about that! That will be fixed by GH-124560. |
…ked capsule object (pythonGH-124559) (cherry picked from commit f923605) Co-authored-by: Peter Bierma <[email protected]>
Thank you for the report, @justinjhendrick! |
Crash report
What happened?
Hello! Thank you for all your work on CPython. Hopefully this crash report is helpful.
While working on matplotlib/matplotlib#28861, we noticed that our tests were segfaulting, and only on python3.13. Here is a minimal reproduction of that crash. I've also run it with python3.13-dbg and
-X dev
to hopefully provide more details.Error Message
Minimal Reproducible Example:
test.py
with python3.13 on Ubuntu 22.04.4
with python3.13-dbg on Ubuntu 22.04.4:
It does not crash with python3.12 on Ubuntu 22.04.4
Side-note:
I tested this on both python3.12 and 3.13, but not the main branch. The Github Issue dropdown doesn't have a 3.13rc2 option for me to check.
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
Python 3.13.0rc2 (main, Sep 9 2024, 22:55:42) [GCC 11.4.0]
Linked PRs
gc.get_referents
on an untracked capsule object #124559gc.get_referents
on an untracked capsule object (GH-124559) #124588The text was updated successfully, but these errors were encountered: