]> granicus.if.org Git - python/commitdiff
Fixed #18075 - Infinite recursion tests triggering a segfault on Mac OS X
authorŁukasz Langa <lukasz@langa.pl>
Thu, 30 May 2013 18:58:53 +0000 (20:58 +0200)
committerŁukasz Langa <lukasz@langa.pl>
Thu, 30 May 2013 18:58:53 +0000 (20:58 +0200)
Patch by Ronald Oussoren

configure
configure.ac

index 80cce1c7bf665775a3640aaf21a5fa7b4f4ae81c..3d8dd6ad82f46de1ba11a1a7846a1aa06226489b 100755 (executable)
--- a/configure
+++ b/configure
@@ -8614,6 +8614,12 @@ then
        # -u libsys_s pulls in all symbols in libsys
        Darwin/*)
                LINKFORSHARED="$extra_undefs -framework CoreFoundation"
+
+               # Issue #18075: the default maximum stack size (8MBytes) is too
+               # small for the default recursion limit. Increase the stack size
+               # to ensure that tests don't crash
+               LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED"
+
                if test "$enable_framework"
                then
                        LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
index c9f54ddf47e37bd0fbf0d89aa25c29e5c171d696..37e048823453e40d215e2d1102bdfbff5e804479 100644 (file)
@@ -2114,6 +2114,12 @@ then
        # -u libsys_s pulls in all symbols in libsys
        Darwin/*) 
                LINKFORSHARED="$extra_undefs -framework CoreFoundation"
+
+               # Issue #18075: the default maximum stack size (8MBytes) is too
+               # small for the default recursion limit. Increase the stack size
+               # to ensure that tests don't crash
+               LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED"
+
                if test "$enable_framework"
                then
                        LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'