diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-08-07 15:44:19 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-08-07 15:44:19 +0000 |
commit | 3fb7ae0586958a2404db41b8cf6ec4fe88f2f674 (patch) | |
tree | 50b79bb91fd26f4ce23a09cd44065126ab16ec4f /src | |
parent | 161a2ccf7af60acf8d04ba5d92f0116f6be19fba (diff) | |
download | guix-3fb7ae0586958a2404db41b8cf6ec4fe88f2f674.tar.gz |
Respect MINSIGSTKSZ when allocating an alternative stack
http://hydra.nixos.org/build/5663577
Diffstat (limited to 'src')
-rw-r--r-- | src/libmain/stack.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmain/stack.cc b/src/libmain/stack.cc index 0ea80f18e3..64df95547e 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; |