[PATCH] D71461: [LSAN] Increase stack space for guard-page.c test
Alexander Richardson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 13 04:27:03 PST 2019
arichardson created this revision.
arichardson added reviewers: samsonov, kcc.
Herald added projects: Sanitizers, LLVM.
Herald added subscribers: llvm-commits, Sanitizers.
When running the tests on a Ubuntu 18.04 machine this test is crashing for
me inside the runtime linker. My guess is that it is trying to save more
registers (possibly large vector ones) and the current stack space is not
sufficient.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D71461
Files:
compiler-rt/test/lsan/TestCases/Linux/guard-page.c
Index: compiler-rt/test/lsan/TestCases/Linux/guard-page.c
===================================================================
--- compiler-rt/test/lsan/TestCases/Linux/guard-page.c
+++ compiler-rt/test/lsan/TestCases/Linux/guard-page.c
@@ -36,11 +36,11 @@
if (getcontext(&ctx) < 0)
die("getcontext", 0);
- stack = malloc(1 << 11);
+ stack = malloc(1 << 12);
if (stack == NULL)
die("malloc", 0);
ctx.uc_stack.ss_sp = stack;
- ctx.uc_stack.ss_size = 1 << 11;
+ ctx.uc_stack.ss_size = 1 << 12;
makecontext(&ctx, ctxfunc, 0);
setcontext(&ctx);
die("setcontext", 0);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71461.233774.patch
Type: text/x-patch
Size: 596 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191213/27d6b53a/attachment.bin>
More information about the llvm-commits
mailing list