Skip to content

GH-127705: Check for immortality in refcount accounting #131072

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

Merged
merged 1 commit into from
Mar 11, 2025

Conversation

markshannon
Copy link
Member

@markshannon markshannon commented Mar 11, 2025

Should fix the failing refleak buildbots.

There is no actual leak, but the refcount accounting was off for interned strings and, possibly other objects, that are made immortal when a _PyStackRef to them already exists.

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @markshannon for commit a2ac8e7 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F131072%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Mar 11, 2025
@markshannon
Copy link
Member Author

This fixes the refleaks introduced by #127875. The buildbots are failing due to another leak #117500 (comment)

@markshannon markshannon merged commit 6e5b9f3 into python:main Mar 11, 2025
53 of 63 checks passed
@markshannon markshannon deleted the fix-refcnt-immortal-mortal branch March 11, 2025 11:53
seehwan pushed a commit to seehwan/cpython that referenced this pull request Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants