-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
gh-140222: Increase stack margin on debug build #142452
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
Increase _PyOS_MIN_STACK_SIZE if Python is built in debug mode.
|
cc @encukou @markshannon @hroncok On Fedora, we are building Python in debug mode with I don't think that it's common to build Python in release mode without optimization, so checking for Py_DEBUG macro should be enough to fix the issue #140222. |
|
"Tests / All required checks pass" job failed with: I'm not sure why :-( |
markshannon
left a comment
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.
This looks good to me. Thanks.
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
Increase _PyOS_MIN_STACK_SIZE if Python is built in debug mode. (cherry picked from commit 49207a5) Co-authored-by: Victor Stinner <vstinner@python.org>
|
GH-142471 is a backport of this pull request to the 3.14 branch. |
Increase _PyOS_MIN_STACK_SIZE if Python is built in debug mode.
test_call'stest_margin_is_sufficient(stack protection size check) fails on GCC with -O0 #140222