Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
vstinner merged 1 commit intopython:mainfromvstinner:builtin_frame_address
May 1, 2025

Conversation

vstinner
Copy link
Member

@vstinnervstinner commentedMay 1, 2025
edited by bedevere-appbot
Loading

GCC 9 and older don't have __has_builtin(), but have __builtin_frame_address() function.

GCC 9 and older don't have __has_builtin(), but have__builtin_frame_address() function.
@vstinner
Copy link
MemberAuthor

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./python -m test test_frame -F and interrupted the test after 54 successful iterations.

ambv reacted with thumbs up emoji

@ambv
Copy link
Contributor

ambv commentedMay 1, 2025
edited
Loading

Unsurprisingly, on Windows 11 with a different compiler and this PR applied, running-m test test_frame -F is still crashing with a stack overflow. That will need a different fix.

@vstinnervstinner merged commitd10bd81 intopython:mainMay 1, 2025
45 checks passed
@vstinnervstinner deleted the builtin_frame_address branchMay 1, 2025 17:13
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ericsnowcurrentlyericsnowcurrentlyAwaiting requested review from ericsnowcurrentlyericsnowcurrently is a code owner

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@vstinner@ambv

[8]ページ先頭

©2009-2025 Movatter.jp