[compiler-rt] 02711a7 - [ASan][test] XFAIL Linux/preinstalled_signal.cpp on Linux/sparc64 (#109623)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 23 01:11:42 PDT 2024
Author: Rainer Orth
Date: 2024-09-23T10:11:39+02:00
New Revision: 02711a77c0bf8b7921f48aaa601564449888e458
URL: https://github.com/llvm/llvm-project/commit/02711a77c0bf8b7921f48aaa601564449888e458
DIFF: https://github.com/llvm/llvm-project/commit/02711a77c0bf8b7921f48aaa601564449888e458.diff
LOG: [ASan][test] XFAIL Linux/preinstalled_signal.cpp on Linux/sparc64 (#109623)
With ASan testing enabled on SPARC as per PR #107405, the
```
AddressSanitizer-sparc-linux-dynamic :: TestCases/Linux/preinstalled_signal.cpp
```
test `FAIL`s on Linux/sparc64. See Issue #109573 for all the details,
but the core is that `syscall(__NR_rt_sigaction)` cannot be used because
it takes an additional argument that isn't accessible outside of `libc`,
while switching to `sigaction` instead changes the order of
`AsanInitInternal` and `Init`, breaking the test.
Therefore this patch `XFAIL`s the test.
Tested on `sparc64-unknown-linux-gnu` and `x86_64-pc-linux-gnu`.
Added:
Modified:
compiler-rt/test/asan/TestCases/Linux/preinstalled_signal.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/asan/TestCases/Linux/preinstalled_signal.cpp b/compiler-rt/test/asan/TestCases/Linux/preinstalled_signal.cpp
index 71929fdd9b37fe..dd31693bc57083 100644
--- a/compiler-rt/test/asan/TestCases/Linux/preinstalled_signal.cpp
+++ b/compiler-rt/test/asan/TestCases/Linux/preinstalled_signal.cpp
@@ -17,6 +17,9 @@
// This way of setting LD_PRELOAD does not work with Android test runner.
// REQUIRES: !android
+// Issue #109573: Cannot use syscall(__NR_rt_sigaction) on Linux/sparc64.
+// XFAIL: target={{sparc.*-.*-linux.*}}
+
#include <assert.h>
#include <signal.h>
#include <stdio.h>
More information about the llvm-commits
mailing list