Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 335ab5b

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

2 files changed

+12Lines changed: 12 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎configure‎

Copy file name to clipboardExpand all lines: configure
+6Lines 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)'
Collapse file

‎configure.ac‎

Copy file name to clipboardExpand all lines: configure.ac
+6Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.