Skip to content

bpo-38965: Fix stuck in test_stack_overflow tests. #17462

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
After update to GCC10, the testcase is stuck and
a pragma needs to be added.
5 changes: 5 additions & 0 deletions Modules/faulthandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -1169,6 +1169,11 @@ faulthandler_fatal_error_py(PyObject *self, PyObject *args)
#endif
static
uintptr_t
#ifdef __GNUC__
/* For the very same reason, the GCC compiler can turn the tail
* call into a loop. */
__attribute__((optimize("-O0")))
#endif
stack_overflow(uintptr_t min_sp, uintptr_t max_sp, size_t *depth)
{
/* allocate 4096 bytes on the stack at each call */
Expand Down