llvm-project/compiler-rt/test
Alex Shlyapnikov c75d47b52d [TSan] Report proper error on allocator failures instead of CHECK(0)-ing
Summary:
Following up on and complementing D44404 and other sanitizer allocators.

Currently many allocator specific errors (OOM, for example) are reported as
a text message and CHECK(0) termination, no stack, no details, not too
helpful nor informative. To improve the situation, detailed and structured
common errors were defined and reported under the appropriate conditions.

Common tests were generalized a bit to cover a slightly different TSan
stack reporting format, extended to verify errno value and returned
pointer value check is now explicit to facilitate debugging.

Reviewers: dvyukov

Subscribers: srhines, kubamracek, delcypher, #sanitizers, llvm-commits

Differential Revision: https://reviews.llvm.org/D48087

llvm-svn: 334975
2018-06-18 20:03:31 +00:00
..
BlocksRuntime
asan [asan] Enable fgets_fputs test on Android 2018-06-16 04:01:08 +00:00
builtins [builtins][macos] bump up the the macOS version min in os_version_check tests 2018-05-17 18:41:38 +00:00
cfi cfi: Disable simple-pass.cpp on Darwin. 2018-03-09 20:41:56 +00:00
dfsan Add weak definitions of trace-cmp hooks to dfsan 2018-06-01 21:59:25 +00:00
esan [tsan] Update unittest for logging changes of r308637 2017-07-20 20:06:00 +00:00
fuzzer [libFuzzer] Avoid -fuse-ld=lld on gc-sections. 2018-06-15 21:01:56 +00:00
hwasan [HWASan] Disable allocator_returns_null.cc test on Android. 2018-06-08 00:56:49 +00:00
interception Revert "[interception] Check for export table's size before referring to its elements." 2017-01-22 03:30:14 +00:00
lsan [Sanitizers] Move allocator_returns_null.cc test to common. 2018-06-11 19:45:59 +00:00
msan [sanitizer] Add fgets, fputs and puts into sanitizer_common 2018-06-11 22:58:04 +00:00
profile [profile] Move newly added test to the supported platform 2018-04-02 21:24:07 +00:00
safestack Factor out "stable-runtime" feature and enable it on all android. 2017-10-10 23:37:26 +00:00
sanitizer_common [TSan] Report proper error on allocator failures instead of CHECK(0)-ing 2018-06-18 20:03:31 +00:00
scudo [scudo] Add verbose failures in place of CHECK(0) 2018-06-15 16:45:19 +00:00
shadowcallstack shadowcallstack: Make runtime tests compatible with aarch64. 2018-04-09 20:18:10 +00:00
tsan [TSan] Report proper error on allocator failures instead of CHECK(0)-ing 2018-06-18 20:03:31 +00:00
ubsan [Sanitizers, test] Fix sanitizer tests on Solaris (PR 33274) 2018-01-17 12:26:04 +00:00
ubsan_minimal [Sanitizers, test] Fix sanitizer tests on Solaris (PR 33274) 2018-01-17 12:26:04 +00:00
xray [XRay][profiler] Part 5: Profiler File Writing 2018-06-12 04:06:25 +00:00
CMakeLists.txt libFuzzer, OpenBSD support 2018-04-09 22:38:26 +00:00
lit.common.cfg [NFC] Generalize flags for linking in shared objects in compiler-rt tests to support using multiple shared objects at once 2018-06-14 20:29:47 +00:00
lit.common.configured.in [ubsan] Re-commit: lit changes for lld testing, future lto testing. 2017-12-01 19:36:29 +00:00