llvm-project/compiler-rt/test/msan
Dmitry Vyukov 2721e27c3a sanitizer_common: deduplicate CheckFailed
We have some significant amount of duplication around
CheckFailed functionality. Each sanitizer copy-pasted
a chunk of code. Some got random improvements like
dealing with recursive failures better. These improvements
could benefit all sanitizers, but they don't.

Deduplicate CheckFailed logic across sanitizers and let each
sanitizer only print the current stack trace.
I've tried to dedup stack printing as well,
but this got me into cmake hell. So let's keep this part
duplicated in each sanitizer for now.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D102221
2021-05-12 08:50:53 +02:00
..
Linux [msan] unpoison_file from fclose and fflash 2020-11-20 13:09:01 -08:00
Unit
scandir_test_root
CMakeLists.txt
__strxfrm_l.cpp [compiler-rt] Fix compiler warnings and runtime errors in sanitizer RT strxfrm(_l) test cases. 2020-07-13 22:35:01 +00:00
alloca.cpp
allocator_mapping.cpp
backtrace.cpp [MSan] Enable for SystemZ 2020-04-16 12:15:01 +02:00
c-strdup.c
chained_origin.cpp
chained_origin_empty_stack.cpp
chained_origin_limits.cpp
chained_origin_memcpy.cpp
chained_origin_memmove.cpp [MSan] Move origins for overlapped memory transfer 2021-01-21 02:11:26 +00:00
chained_origin_with_signals.cpp
check-handler.cpp sanitizer_common: deduplicate CheckFailed 2021-05-12 08:50:53 +02:00
check_mem_is_initialized.cpp
coverage-levels.cpp [compiler-rt][NFC]Fix Wdeprecated warnings for fsanitize-coverage 2020-05-27 02:37:30 +00:00
ctermid.cpp
cxa_atexit.cpp
death-callback.cpp [test] Fix unused FileCheck prefixes in compiler-rt 2021-02-01 22:32:13 -08:00
default_ignorelist.cpp [clang] accept -fsanitize-ignorelist= in addition to -fsanitize-blacklist= 2021-05-04 10:24:00 -04:00
dlerror.cpp
dlopen_executable.cpp
dso-origin.cpp
dtls_test.c
dtor-base-access.cpp
dtor-bit-fields.cpp
dtor-derived-class.cpp
dtor-member.cpp
dtor-multiple-inheritance-nontrivial-class-members.cpp
dtor-multiple-inheritance.cpp
dtor-trivial-class-members.cpp
dtor-trivial.cpp
dtor-vtable-multiple-inheritance.cpp
dtor-vtable.cpp
errno.cpp
fgets_fputs.cpp
fork.cpp
fread_fwrite.cpp [compiler-rt] [test] Add missing %run to fread_fwrite MSAN test 2019-12-19 20:28:00 +01:00
fstat.cpp
ftime.cpp
getaddrinfo-positive.cpp
getaddrinfo.cpp
getc_unlocked.c
getline.cpp
getloadavg.cpp
getutent.cpp
heap-origin.cpp
icmp_slt_allones.cpp
iconv.cpp [compiler-rt] [msan] Support POSIX iconv(3) on NetBSD 9.99.17+ 2019-11-04 01:08:53 +01:00
if_indextoname.cpp
ifaddrs.cpp
initgroups.cpp
inline.cpp
insertvalue_origin.cpp
interception_sigaction_test.cpp Fix sigaction interceptor to always correctly populate oldact 2020-08-12 10:11:56 -07:00
ioctl.cpp
ioctl_custom.cpp
libatomic.c [MSAN] Reintroduce libatomic load/store instrumentation 2020-08-14 20:31:10 +00:00
libatomic_load_exceptions.cpp [MSAN] Reintroduce libatomic load/store instrumentation 2020-08-14 20:31:10 +00:00
lit.cfg.py [MSan] Enable for SystemZ 2020-04-16 12:15:01 +02:00
lit.site.cfg.py.in
loop-scope.cpp
memcmp_test.cpp
mktime.cpp
mmap.cpp [MSan] Enable for SystemZ 2020-04-16 12:15:01 +02:00
mmap_below_shadow.cpp [MSan] Enable for SystemZ 2020-04-16 12:15:01 +02:00
msan_check_mem_is_initialized.cpp
msan_copy_shadow.cpp
msan_dump_shadow.cpp
msan_print_shadow.cpp
msan_print_shadow2.cpp
msan_print_shadow3.cpp
mul_by_const.cpp
no_sanitize_memory.cpp
no_sanitize_memory_prop.cpp Mark test function as 'weak' to prevent interprocedural CSE. 2020-03-09 17:01:07 -07:00
origin-store-long.cpp
param_tls_limit.cpp [MSan] Enable for SystemZ 2020-04-16 12:15:01 +02:00
poison_in_free.cpp
pr32842.c
preinit_array.cpp
print_stats.cpp
pthread_getattr_np_deadlock.cpp
pthread_getname_np.cpp
pthread_setcancelstate.cpp
qsort.cpp [msan] Fix underflow in qsort interceptor. 2020-01-06 16:12:52 -08:00
rand_r.cpp
readdir64.cpp
realloc-large-origin.cpp
realloc-origin.cpp
recover-dso.cpp
recover.cpp
report-demangling.cpp
scandir.cpp
scandir_null.cpp
scanf-allocate.cpp [msan] Support %ms in scanf. 2020-08-06 13:54:43 -07:00
scoped-interceptors.cpp
select.cpp
select_float_origin.cpp
select_origin.cpp
sem_getvalue.cpp
sigaction.cpp
sigaltstack.cpp [msan] Fix sigaltstack false positive. 2020-03-23 16:17:31 -07:00
signal_stress_test.cpp
sigwait.cpp test/msan/sigwait: Don't silently ignore assertion failures 2020-06-23 14:10:51 -07:00
sigwaitinfo.cpp
stack-origin.cpp
stack-origin2.cpp
strcmp.c [msan][asan] Add runtime flag intercept_strcmp 2020-09-18 13:45:55 -07:00
strerror_r-non-gnu.c
strlen_of_shadow.cpp [MSan] Enable for SystemZ 2020-04-16 12:15:01 +02:00
strndup.cpp
strxfrm.cpp [msan] Fix strxfrm test 2020-07-17 02:21:18 -07:00
sync_lock_set_and_test.cpp
test.h
textdomain.cpp
times.cpp
tls_reuse.cpp
tsearch.cpp
tzset.cpp
unaligned_read_origin.cpp
unpoison_param.cpp
unpoison_string.cpp
use-after-dtor.cpp Fix MSan test use-after-dtor.cpp under new pass manager 2020-05-08 09:12:41 -07:00
use-after-free.cpp
vararg.cpp
vector_cvt.cpp
vector_div.cpp
vector_select.cpp
wcsncpy.cpp
wcsxfrm.cpp