-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
GH-133261: Make sure trashcan pointers look mortal -- 32 bit #133450
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
markshannon
commented
May 5, 2025
•
edited by bedevere-app
bot
Loading
edited by bedevere-app
bot
- Issue: test_frame does crash randomly on Linux (x86-64, ppc64le, s390x) #133261
!buildbot "x86 Debian" |
The regex '"x86 Debian"' did not match any buildbot builder. Is the requested builder in the list of stable builders? |
!buildbot x86 Debian |
🤖 New build scheduled with the buildbot fleet by @markshannon for commit 2ef7ee5 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F133450%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
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
if (refcnt & 1) { | ||
refcnt += _Py_IMMORTAL_MINIMUM_REFCNT - 1; | ||
} | ||
return (void *)(refcnt - 2); | ||
#else | ||
return (void *)((refcnt -1) << 2); |
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.
return (void *)((refcnt -1) << 2); | |
return (void *)((refcnt - 1) << 2); |
Nice, the fix works as expected, tests passed on two buildbot workers. |
I built Python using I built Python in a x86 (32-bit) container, but I failed to reproduce the issue. But this change looks correct, it should fix the issue, and the buildbots confirmed that the fix works. |