[compiler-rt] 3d5c1a8 - [compiler-rt][GWP-ASAN] Disable 2 tests on Armv7 Linux

David Spickett via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 19 03:45:24 PDT 2021


Author: David Spickett
Date: 2021-07-19T10:45:11Z
New Revision: 3d5c1a81738147104a2146e2457dc2f4cc8f3e05

URL: https://github.com/llvm/llvm-project/commit/3d5c1a81738147104a2146e2457dc2f4cc8f3e05
DIFF: https://github.com/llvm/llvm-project/commit/3d5c1a81738147104a2146e2457dc2f4cc8f3e05.diff

LOG: [compiler-rt][GWP-ASAN] Disable 2 tests on Armv7 Linux

These have been failing on our bots for a while due to
incomplete backtraces. (you don't get the names of the
functions that did the access, just the reporter frames)

See:
https://lab.llvm.org/buildbot/#/builders/170/builds/180

Added: 
    

Modified: 
    compiler-rt/lib/gwp_asan/tests/backtrace.cpp
    compiler-rt/test/gwp_asan/backtrace.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/gwp_asan/tests/backtrace.cpp b/compiler-rt/lib/gwp_asan/tests/backtrace.cpp
index 4f6364891bfcc..7a3427ed85d23 100644
--- a/compiler-rt/lib/gwp_asan/tests/backtrace.cpp
+++ b/compiler-rt/lib/gwp_asan/tests/backtrace.cpp
@@ -46,6 +46,11 @@ TEST_F(BacktraceGuardedPoolAllocatorDeathTest, DoubleFree) {
 }
 
 TEST_F(BacktraceGuardedPoolAllocatorDeathTest, UseAfterFree) {
+#ifdef __linux__ && __ARM_ARCH == 7
+  // Incomplete backtrace on Armv7 Linux
+  GTEST_SKIP();
+#endif
+
   void *Ptr = AllocateMemory(GPA);
   DeallocateMemory(GPA, Ptr);
 

diff  --git a/compiler-rt/test/gwp_asan/backtrace.c b/compiler-rt/test/gwp_asan/backtrace.c
index 9d9fc7db096be..f4be7305bfb7e 100644
--- a/compiler-rt/test/gwp_asan/backtrace.c
+++ b/compiler-rt/test/gwp_asan/backtrace.c
@@ -7,6 +7,9 @@
 // RUN: %clang_gwp_asan -fomit-frame-pointer -momit-leaf-frame-pointer %s -g -o %t
 // RUN: %expect_crash %t
 
+// Incomplete backtrace on Armv7
+// UNSUPPORTED: armhf-linux
+
 #include <stdlib.h>
 
 __attribute__((noinline)) void *allocate_mem() { return malloc(1); }


        


More information about the llvm-commits mailing list