llvm-project/compiler-rt/lib
Florian Schmaus b1dd1a0997 [msan] Do not use 77 as exit code, instead use 1
MSan uses 77 as exit code since it appeared with c5033786ba ("[msan]
MemorySanitizer runtime."). However, Test runners like the one from
Meson use the GNU standard approach where a exit code of 77 signals
that the test should be skipped [1]. As a result Meson's test runner
reports tests as skipped if MSan is enabled and finds issues:

build $ meson test
ninja: Entering directory `/home/user/code/project/build'
ninja: no work to do.
1/1 PROJECT:all / SimpleTest    SKIP           0.09s

I could not find any rationale why 77 was initially chosen, and I
found no other clang sanitizer that uses this value as exit
code. Hence I believe it is safe to change this to a safe
default. You can restore the old behavior by setting the environment
variable MSAN_OPTIONS to "exitcode=77", e.g.

export MSAN_OPTIONS="exitcode=77"

1: https://mesonbuild.com/Unit-tests.html#skipped-tests-and-hard-errors

Reviewed By: #sanitizers, eugenis

Differential Revision: https://reviews.llvm.org/D92490
2020-12-10 14:23:12 -08:00
..
BlocksRuntime
asan [sanitizer] Fix typo in log messages 2020-11-18 03:42:38 -08:00
builtins [compiler-rt] [builtins] Support conversion between fp16 and fp128 2020-12-08 11:51:55 -03:00
cfi [sanitizers] Remove unneeded MaybeCall*DefaultOptions() and nullptr checks 2020-09-08 10:12:05 -07:00
crt [RISCV][crt] support building without init_array 2020-12-01 17:17:50 +03:00
dfsan [DFSan] Add custom wrapper for pthread_join. 2020-12-10 13:41:24 -08:00
fuzzer [fuzzer] Add Windows Visual C++ exception intercept 2020-11-12 13:11:14 -08:00
gwp_asan [GWP-ASan] IWYU & clang-format 2020-12-10 12:42:01 -08:00
hwasan [hwasan] Implement error report callback. 2020-11-20 16:48:19 -08:00
interception [sanitizer] Remove -Wno-non-virtual-dtor 2020-11-04 00:51:33 -08:00
lsan [lsan] Use final on Fuchsia ThreadContext declaration 2020-12-02 11:58:03 -08:00
memprof [compiler-rt santizer] Use clock_gettime instead of timespec_get 2020-12-08 10:10:17 -08:00
msan [msan] Do not use 77 as exit code, instead use 1 2020-12-10 14:23:12 -08:00
profile [compiler-rt] [profile] Silence a warning about an unused function on mingw targets 2020-11-21 22:14:35 +02:00
safestack compiler-rt: Rename .cc file in lib/{interception/tests,safestack} to .cpp 2019-08-01 13:56:52 +00:00
sanitizer_common [compiler-rt sanitizer] Use our own PTRACE_GETREGSET if it does not exist. 2020-12-09 01:08:14 -08:00
scudo [scudo] [standalone] [NFC] clang-format code. 2020-12-10 12:25:42 -08:00
stats compiler-rt: Rename .cc file in lib/{dfsan,stats,ubsan_minimal} to .cpp 2019-08-01 12:41:23 +00:00
tsan [tsan] Add pthread_cond_clockwait interceptor 2020-11-18 14:39:19 -08:00
ubsan [compiler-rt] [ubsan] Use the itanium type info lookup for mingw targets 2020-11-03 09:59:08 +02:00
ubsan_minimal [compiler-rt] Suppress -Wunused-result due to ::write when _FORTIFY_SOURCE>0 in glibc 2020-10-12 09:57:12 -07:00
xray [CMake] Avoid accidental C++ standard library dependency in sanitizers 2020-10-31 02:37:38 -07:00
CMakeLists.txt [MemProf] Decouple memprof build from COMPILER_RT_BUILD_SANITIZERS 2020-10-26 13:52:50 -07:00