about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libmain/stack.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmain/stack.cc b/src/libmain/stack.cc
index 0ea80f18e3b0..64df95547e0b 100644
--- a/src/libmain/stack.cc
+++ b/src/libmain/stack.cc
@@ -53,7 +53,7 @@ void detectStackOverflow()
        requires an alternative stack, otherwise the signal cannot be
        delivered when we're out of stack space. */
     stack_t stack;
-    stack.ss_size = 4096 * 4;
+    stack.ss_size = 4096 * 4 + MINSIGSTKSZ;
     stack.ss_sp = new char[stack.ss_size];
     if (!stack.ss_sp) throw Error("cannot allocate alternative stack");
     stack.ss_flags = 0;