[compiler-rt] r279674 - [lsan] give a test a bit more stack -- it started failing after r279664 on the debian bot, hopefully this is a fix.

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 24 15:10:35 PDT 2016


Author: kcc
Date: Wed Aug 24 17:10:35 2016
New Revision: 279674

URL: http://llvm.org/viewvc/llvm-project?rev=279674&view=rev
Log:
[lsan] give a test a bit more stack -- it started failing after r279664 on the debian bot, hopefully this is a fix.

Modified:
    compiler-rt/trunk/test/lsan/TestCases/guard-page.c

Modified: compiler-rt/trunk/test/lsan/TestCases/guard-page.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/lsan/TestCases/guard-page.c?rev=279674&r1=279673&r2=279674&view=diff
==============================================================================
--- compiler-rt/trunk/test/lsan/TestCases/guard-page.c (original)
+++ compiler-rt/trunk/test/lsan/TestCases/guard-page.c Wed Aug 24 17:10:35 2016
@@ -22,6 +22,7 @@ static void die(const char* msg, int err
 static void ctxfunc() {
   pthread_mutex_lock(&mutex);
   ctxfunc_started = 1;
+  printf("ctxfunc\n");
   pthread_cond_signal(&cond);
   pthread_mutex_unlock(&mutex);
   // Leave this context alive when the program exits.
@@ -35,11 +36,11 @@ static void* thread(void* arg) {
 
   if (getcontext(&ctx) < 0)
     die("getcontext", 0);
-  stack = malloc(1 << 10);
+  stack = malloc(1 << 12);
   if (stack == NULL)
     die("malloc", 0);
   ctx.uc_stack.ss_sp = stack;
-  ctx.uc_stack.ss_size = 1 << 10;
+  ctx.uc_stack.ss_size = 1 << 12;
   makecontext(&ctx, ctxfunc, 0);
   setcontext(&ctx);
   die("setcontext", 0);




More information about the llvm-commits mailing list