Skip to content

Commit c2fd3b7

Browse files
authored
[ASan][test] XFAIL stack overflow tests on Linux/sparc64 (#109773)
When enabling ASan SPARC testing as per PR #107405, 3 stack overflow tests `FAIL` on Linux/sparc64: ``` AddressSanitizer-sparc-linux :: TestCases/Linux/stack-overflow-recovery-mode.cpp AddressSanitizer-sparc-linux :: TestCases/Linux/stack-overflow-sigbus.cpp AddressSanitizer-sparc-linux :: TestCases/Posix/stack-overflow.cpp AddressSanitizer-sparc-linux-dynamic :: TestCases/Linux/stack-overflow-recovery-mode.cpp AddressSanitizer-sparc-linux-dynamic :: TestCases/Linux/stack-overflow-sigbus.cpp AddressSanitizer-sparc-linux-dynamic :: TestCases/Posix/stack-overflow.cpp ``` However, as detailed in Issue #109771, even a Linux equivalent of the Solaris/sparcv9 fix (PR #109101) doesn't improve the situation. Therefore this patch `XFAIL`s the tests until the root cause can be figured out. Tested on `sparc64-unknown-linux-gnu`, `sparcv9-sun-solaris2.11`, and `x86_64-pc-linux-gnu`.
1 parent 416f101 commit c2fd3b7

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

compiler-rt/test/asan/TestCases/Linux/stack-overflow-recovery-mode.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
// RUN: %clang_asan -O0 -fsanitize-recover=address %s -o %t
44
// RUN: %env_asan_opts=halt_on_error=false not %run %t 2>&1 | FileCheck %s
55

6+
// Issue #109771
7+
// XFAIL: target={{sparc.*-.*-linux.*}}
8+
69
#include <assert.h>
710
#include <unistd.h>
811
#include <sys/mman.h>

compiler-rt/test/asan/TestCases/Linux/stack-overflow-sigbus.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
// RUN: %clangxx_asan -O0 %s -o %t && %env_asan_opts=use_sigaltstack=1 not %run %t 2>&1 | FileCheck %s
44

5+
// Issue #109771
6+
// XFAIL: target={{sparc.*-.*-linux.*}}
7+
58
#include <assert.h>
69
#include <stdio.h>
710
#include <stdlib.h>

compiler-rt/test/asan/TestCases/Posix/stack-overflow.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
// RUN: not %run %t 2>&1 | FileCheck %s
1717
// REQUIRES: stable-runtime
1818

19+
// Issue #109771
20+
// XFAIL: target={{sparc.*-.*-linux.*}}
21+
1922
// UNSUPPORTED: ios
2023

2124
#include <assert.h>

0 commit comments

Comments
 (0)