From 3d5c1a81738147104a2146e2457dc2f4cc8f3e05 Mon Sep 17 00:00:00 2001 From: David Spickett Date: Mon, 19 Jul 2021 10:43:21 +0000 Subject: [PATCH] [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 --- compiler-rt/lib/gwp_asan/tests/backtrace.cpp | 5 +++++ compiler-rt/test/gwp_asan/backtrace.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/compiler-rt/lib/gwp_asan/tests/backtrace.cpp b/compiler-rt/lib/gwp_asan/tests/backtrace.cpp index 4f6364891bfc..7a3427ed85d2 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 9d9fc7db096b..f4be7305bfb7 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 __attribute__((noinline)) void *allocate_mem() { return malloc(1); }