Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-133261: Use __builtin_frame_address() on GCC 9 and older#133269
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
GCC 9 and older don't have __has_builtin(), but have__builtin_frame_address() function.
Without this change, test_frame crash randomly (ex: at the 3rd attempt). With this change, test_frame no longer crash. I ran the test in a loop using |
ambv commentedMay 1, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Unsurprisingly, on Windows 11 with a different compiler and this PR applied, running |
d10bd81
intopython:mainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
GCC 9 and older don't have __has_builtin(), but have __builtin_frame_address() function.