[PATCH] D30267: Increase stack size for stack-use-after-return test

Francis Ricci via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 22 12:34:33 PST 2017


fjricci created this revision.

The current size is flaky, as revealed by checking
the stack size attr after setting it.


https://reviews.llvm.org/D30267

Files:
  test/asan/TestCases/Posix/stack-use-after-return.cc


Index: test/asan/TestCases/Posix/stack-use-after-return.cc
===================================================================
--- test/asan/TestCases/Posix/stack-use-after-return.cc
+++ test/asan/TestCases/Posix/stack-use-after-return.cc
@@ -4,7 +4,7 @@
 // RUN: %clangxx_asan  -O3 %s -pthread -o %t && %env_asan_opts=detect_stack_use_after_return=1 not %run %t 2>&1 | FileCheck %s
 // RUN: %env_asan_opts=detect_stack_use_after_return=0 %run %t
 // Regression test for a CHECK failure with small stack size and large frame.
-// RUN: %clangxx_asan  -O3 %s -pthread -o %t -DkSize=10000 -DUseThread -DkStackSize=65536 && %env_asan_opts=detect_stack_use_after_return=1 not %run %t 2>&1 | FileCheck --check-prefix=THREAD %s
+// RUN: %clangxx_asan  -O3 %s -pthread -o %t -DkSize=10000 -DUseThread -DkStackSize=131072 && %env_asan_opts=detect_stack_use_after_return=1 not %run %t 2>&1 | FileCheck --check-prefix=THREAD %s
 //
 // Test that we can find UAR in a thread other than main:
 // RUN: %clangxx_asan  -DUseThread -O2 %s -pthread -o %t && %env_asan_opts=detect_stack_use_after_return=1 not %run %t 2>&1 | FileCheck --check-prefix=THREAD %s


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30267.89406.patch
Type: text/x-patch
Size: 1142 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170222/6b4df2a0/attachment.bin>


More information about the llvm-commits mailing list