Skip to content

Commit 335ab5b

Browse files
committed
Fixed #18075 - Infinite recursion tests triggering a segfault on Mac OS X
Patch by Ronald Oussoren
1 parent ad0e6b1 commit 335ab5b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

configure

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8614,6 +8614,12 @@ then
86148614
# -u libsys_s pulls in all symbols in libsys
86158615
Darwin/*)
86168616
LINKFORSHARED="$extra_undefs -framework CoreFoundation"
8617+
8618+
# Issue #18075: the default maximum stack size (8MBytes) is too
8619+
# small for the default recursion limit. Increase the stack size
8620+
# to ensure that tests don't crash
8621+
LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED"
8622+
86178623
if test "$enable_framework"
86188624
then
86198625
LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'

configure.ac

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,6 +2114,12 @@ then
21142114
# -u libsys_s pulls in all symbols in libsys
21152115
Darwin/*)
21162116
LINKFORSHARED="$extra_undefs -framework CoreFoundation"
2117+
2118+
# Issue #18075: the default maximum stack size (8MBytes) is too
2119+
# small for the default recursion limit. Increase the stack size
2120+
# to ensure that tests don't crash
2121+
LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED"
2122+
21172123
if test "$enable_framework"
21182124
then
21192125
LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'

0 commit comments

Comments
 (0)