Skip to content

Commit 4309e43

Browse files
authored
Enlarge stack overflow handling stack (#114956)
This is an attempt to fix rare failures in the stack overflow tests that I was unable to repro locally. The logs I've added so far seems to indicate that the thread handling the exception crashes with another stack overflow at the point when it waits for a secondary thread to finish dumping stack trace.
1 parent f8ff1ea commit 4309e43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/pal/src/exception/signal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ BOOL SEHInitializeSignals(CorUnix::CPalThread *pthrCurrent, DWORD flags)
206206
}
207207

208208
// Allocate the minimal stack necessary for handling stack overflow
209-
int stackOverflowStackSize = ALIGN_UP(sizeof(SignalHandlerWorkerReturnPoint), 16) + 8 * 4096;
209+
int stackOverflowStackSize = ALIGN_UP(sizeof(SignalHandlerWorkerReturnPoint), 16) + 9 * 4096;
210210
// Align the size to virtual page size and add one virtual page as a stack guard
211211
stackOverflowStackSize = ALIGN_UP(stackOverflowStackSize, GetVirtualPageSize()) + GetVirtualPageSize();
212212
int flags = MAP_ANONYMOUS | MAP_PRIVATE;

0 commit comments

Comments
 (0)