[PATCH] D23589: Fix hang caused by memory corruption caused by insufficient alternate stack space for signal handlers.

bryant via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 17 17:29:22 PDT 2016


bryant updated this revision to Diff 68463.
bryant added a comment.

8 MiB => 1 MiB


Repository:
  rL LLVM

https://reviews.llvm.org/D23589

Files:
  lib/Support/Unix/Signals.inc

Index: lib/Support/Unix/Signals.inc
===================================================================
--- lib/Support/Unix/Signals.inc
+++ lib/Support/Unix/Signals.inc
@@ -127,7 +127,7 @@
 static stack_t OldAltStack;
 
 static void CreateSigAltStack() {
-  const size_t AltStackSize = MINSIGSTKSZ + 8192;
+  const size_t AltStackSize = MINSIGSTKSZ + 1024 * 1024;
 
   // If we're executing on the alternate stack, or we already have an alternate
   // signal stack that we're happy with, there's nothing for us to do. Don't


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23589.68463.patch
Type: text/x-patch
Size: 526 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160818/76af8b2c/attachment.bin>


More information about the llvm-commits mailing list