llvm-project/compiler-rt/lib/msan
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
..
tests [compiler-rt] Don't include libc++ headers from the source tree in MSAN 2020-10-30 02:36:02 -07:00
.clang-format [sanitizer] Remove unneeded blank lines 2018-05-09 00:44:26 +00:00
CMakeLists.txt [msan] Blacklist __gxx_personality_v0. 2019-10-31 10:22:52 -07:00
msan.cpp [msan] Do not use 77 as exit code, instead use 1 2020-12-10 14:23:12 -08:00
msan.h [MSan] Enable for SystemZ 2020-04-16 12:15:01 +02:00
msan.syms.extra
msan_allocator.cpp [MSan] Enable for SystemZ 2020-04-16 12:15:01 +02:00
msan_allocator.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
msan_blacklist.txt [msan] Blacklist __gxx_personality_v0. 2019-10-31 10:22:52 -07:00
msan_chained_origin_depot.cpp compiler-rt: Rename .cc file in lib/msan to .cpp 2019-08-01 14:08:18 +00:00
msan_chained_origin_depot.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
msan_flags.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
msan_flags.inc Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
msan_interceptors.cpp [sanitizer] Fix typo in log messages 2020-11-18 03:42:38 -08:00
msan_interface_internal.h [sanitizers] Remove unneeded MaybeCall*DefaultOptions() and nullptr checks 2020-09-08 10:12:05 -07:00
msan_linux.cpp [msan] Respect no_huge_pages_for_shadow. 2020-08-01 16:59:51 -07:00
msan_new_delete.cpp Remove NOLINTs from compiler-rt 2019-09-11 23:19:48 +00:00
msan_origin.h [msan] Fix comment of __msan::Origin::isHeapOrigin 2020-06-14 23:58:49 -07:00
msan_poisoning.cpp compiler-rt: Rename .cc file in lib/msan to .cpp 2019-08-01 14:08:18 +00:00
msan_poisoning.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
msan_report.cpp compiler-rt: Rename .cc file in lib/msan to .cpp 2019-08-01 14:08:18 +00:00
msan_report.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
msan_thread.cpp [NFC] Extract ForEachDVT 2020-12-01 16:15:32 -08:00
msan_thread.h [MSAN] Add fiber switching APIs 2020-08-27 19:30:40 -07:00