Fixed #18075 - Infinite recursion tests triggering a segfault on Mac … · python/cpython@335ab5b

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)'