[compiler-rt][GWP-ASAN] Disable 2 tests on Armv7 Linux
authorDavid Spickett <david.spickett@linaro.org>
Mon, 19 Jul 2021 10:43:21 +0000 (10:43 +0000)
committerDavid Spickett <david.spickett@linaro.org>
Mon, 19 Jul 2021 10:45:11 +0000 (10:45 +0000)
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

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

index 4f63648..7a3427e 100644 (file)
@@ -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);
 
index 9d9fc7d..f4be730 100644 (file)
@@ -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); }