-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-124538: Fix crash when using gc.get_referents
on an untracked capsule object
#124559
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Lib/test/test_gc.py
Outdated
@@ -1048,6 +1048,24 @@ class Z: | |||
callback.assert_not_called() | |||
gc.enable() | |||
|
|||
@cpython_only | |||
def test_get_referents_on_capsule(self): | |||
# See GH-124538 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind to elaborate?
Co-authored-by: Victor Stinner <[email protected]>
Thanks @ZeroIntensity for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
…ked capsule object (pythonGH-124559) (cherry picked from commit f923605) Co-authored-by: Peter Bierma <[email protected]>
GH-124588 is a backport of this pull request to the 3.13 branch. |
Merged, thanks. |
Uh oh!
There was an error while loading. Please reload this page.