summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/sanitizer_common/TestCases
Commit message (Collapse)AuthorAgeFilesLines
...
* [tsan] Fix signal chainingVitaly Buka2017-11-131-4/+0
| | | | | | | | | | | | Summary: Return saved values only if installed sigaction is our wrapper. Reviewers: eugenis, dvyukov Subscribers: llvm-commits, kubamracek Differential Revision: https://reviews.llvm.org/D39935 llvm-svn: 318082
* [tsan] Deadly signal handler for tsanVitaly Buka2017-11-136-15/+0
| | | | | | | | | | | | Summary: https://github.com/google/sanitizers/issues/637 Reviewers: eugenis Subscribers: kubamracek, llvm-commits Differential Revision: https://reviews.llvm.org/D39929 llvm-svn: 318078
* [sanitizer] Relax stack checkVitaly Buka2017-11-131-1/+1
| | | | | | -NEXT sometimes does not work as LLVMSymbolizer warning can appear there. llvm-svn: 318077
* [sanitizer] Simplify stack check in accert.ccVitaly Buka2017-11-121-2/+2
| | | | | | Somehow on arm bots stack does not include main. llvm-svn: 318002
* [sanitizer] Try to see test output on armv7Vitaly Buka2017-11-121-0/+1
| | | | llvm-svn: 318001
* [msan] Fix signal chainingVitaly Buka2017-11-111-3/+3
| | | | | | Return internally stored handlers only if handlers is set to wrapper llvm-svn: 317970
* [sanitizer] Include stack trace check into signal testsVitaly Buka2017-11-113-3/+12
| | | | llvm-svn: 317963
* [ubsan] Fix ubsan tests broken by linking as C instead of C++Vitaly Buka2017-11-112-6/+5
| | | | llvm-svn: 317958
* [msan] Deadly signal handler for msanVitaly Buka2017-11-106-6/+0
| | | | | | | | | | | | Summary: Part of https://github.com/google/sanitizers/issues/637 Reviewers: eugenis, alekseyshl Subscribers: llvm-commits, kubamracek Differential Revision: https://reviews.llvm.org/D39826 llvm-svn: 317864
* Revert "[asan] Deflake one test by running it 3 times."Evgeniy Stepanov2017-10-171-18/+3
| | | | | | Disable this test on Android/x86 only. llvm-svn: 316023
* [asan] Deflake one test by running it 3 times.Evgeniy Stepanov2017-10-131-3/+18
| | | | | | The test seems to trigger an android platform bug under load. llvm-svn: 315777
* [sanitizer] Workaround a Linux kernel bug in hard_rss_limit_mb_test.Evgeniy Stepanov2017-10-121-7/+6
| | | | llvm-svn: 315632
* [asan] Disable a flaky test on android.Evgeniy Stepanov2017-10-121-0/+3
| | | | llvm-svn: 315602
* [asan] Tweak test output to diagnose buildbot failures.Evgeniy Stepanov2017-10-111-2/+6
| | | | llvm-svn: 315479
* [sanitizer] Re-disable several tests on Android.Evgeniy Stepanov2017-10-116-6/+6
| | | | | | The tests have been enabled by accident in r315389. llvm-svn: 315396
* [mips][compiler-rt] Disable sem_init_glibc.cc for MIPS64.Simon Dardis2017-09-251-1/+1
| | | | | | | | | | | This test can't pass on MIPS64 due to the lack of versioned interceptors for asan and company. The interceptors bind to the earlier version of sem_init rather than the latest version. For MIPS64el this causes an accidental pass while MIPS64 big endian fails due reading back a different 32bit word to what sem_init wrote when the test is corrected to use 64bit atomics. llvm-svn: 314100
* [ubsan] Fix assert.cc test by compiling it as C++Vitaly Buka2017-09-231-2/+1
| | | | llvm-svn: 314057
* [ubsan] Support signal specific options in ubsanVitaly Buka2017-09-234-5/+1
| | | | | | | | | | | | | | | | Summary: Part of https://github.com/google/sanitizers/issues/637 Standalone ubsan needs signal and sigaction handlers and interceptors. Plugin mode should rely on parent tool. Reviewers: eugenis, alekseyshl Subscribers: kubamracek, llvm-commits, mgorny Differential Revision: https://reviews.llvm.org/D37895 llvm-svn: 314052
* [lsan] Deadly signal handler for lsanVitaly Buka2017-09-227-9/+7
| | | | | | | | | | | | Summary: Part of https://github.com/google/sanitizers/issues/637 Reviewers: eugenis, alekseyshl Subscribers: llvm-commits, dberris, kubamracek, krytarowski Differential Revision: https://reviews.llvm.org/D37608 llvm-svn: 314041
* [mips][compiler-rt] UnXFAIL test.Simon Dardis2017-09-191-2/+0
| | | | | | lsan and asan were reporting leaks caused by a glibc configuration issue. llvm-svn: 313645
* [sanitizer] Fix check for i386 Android in lit testsVitaly Buka2017-09-166-6/+6
| | | | llvm-svn: 313452
* [sanitizer] Disable sanitizer test which already fails on Android i386Vitaly Buka2017-09-166-9/+17
| | | | llvm-svn: 313447
* [sanitizer] Support check-asan on AndroidVitaly Buka2017-09-167-4/+18
| | | | | | This patch enabled asan tests from sanitizer_common. llvm-svn: 313444
* [sanitizer] Simplify checks in allow_user_segv.ccVitaly Buka2017-09-151-6/+6
| | | | llvm-svn: 313342
* [lsan] Disable clang-format on few RUN: statementsVitaly Buka2017-09-153-1/+12
| | | | llvm-svn: 313321
* Revert "[mips] Fix sem_init_glibc test for MIPS."Simon Dardis2017-09-141-5/+3
| | | | | | | | | | | The commit did not fix the failing test and instead exposed an inconsistency between lsan and (t|m|a)san. I'm reverting the patch as it causes more failures and the original patch had a '||' instead of '&&', which meant that an N32 build of test would have be incorrect w.r.t. __HAVE_64B_ATOMICS for glibc. This reverts commit r313248. llvm-svn: 313291
* [mips] Fix sem_init_glibc test for MIPS.Simon Dardis2017-09-141-3/+5
| | | | | | | | | | | | | | | glibc changed the implementation of semaphores for glibc 2.21 requiring some target specific changes for this compiler-rt test. Modify the test to cope with MIPS64 and do some future/correctness work by tying the define for MIPS64 to exactly the define of __HAVE_64B_ATOMICS in glibc. Contributions from Nitesh Jain. Reviewers: eugenis Differential Revision: https://reviews.llvm.org/D37829 llvm-svn: 313248
* [sanitizer] Mark allow_user_segv as XFAIL instead of UNSUPPORTEDVitaly Buka2017-09-141-4/+4
| | | | llvm-svn: 313241
* [compiler-rt] Add test for not fully implemented dump_registersVitaly Buka2017-09-131-0/+20
| | | | | | | | | | Reviewers: eugenis, alekseyshl Subscribers: kubamracek, dberris, llvm-commits Differential Revision: https://reviews.llvm.org/D37765 llvm-svn: 313120
* [compiler-rt] Move dump_instruction_bytes and dump_registers into ↵Vitaly Buka2017-09-131-0/+21
| | | | | | | | | | | | | | sanitizer_common Summary: Part of https://github.com/google/sanitizers/issues/637 Reviewers: eugenis, alekseyshl Subscribers: kubamracek, llvm-commits, dberris Differential Revision: https://reviews.llvm.org/D37766 llvm-svn: 313117
* [ubsan] Make ubsan version of __sanitizer_print_stack_trace consistent with ↵Vitaly Buka2017-09-111-1/+0
| | | | | | | | | | | | | | other sanitizers Summary: Other sanitizers include __sanitizer_print_stack_trace into stack trace. Reviewers: eugenis, alekseyshl Subscribers: llvm-commits, kubamracek Differential Revision: https://reviews.llvm.org/D37657 llvm-svn: 312954
* [ubsan] Save binary name before parsing optionsVitaly Buka2017-09-111-1/+0
| | | | | | | | | | | | Summary: To parser "include" we may need to do binary name substitution. Reviewers: eugenis, alekseyshl Subscribers: llvm-commits, kubamracek Differential Revision: https://reviews.llvm.org/D37658 llvm-svn: 312953
* [ubsan] Enable UBsan in sanitizer_common testsVitaly Buka2017-09-0923-12/+28
| | | | | | | | | | | | | | Summary: Failing tests just marked as UNSUPPORTED or XFAIL. Some of them can be easily supported, but I'll do this in separate patches. Reviewers: eugenis, alekseyshl Subscribers: srhines, kubamracek, llvm-commits, mgorny Differential Revision: https://reviews.llvm.org/D37630 llvm-svn: 312860
* [compiler-rt] Move allow_user_segv.cc into sanitizer_commonVitaly Buka2017-09-091-0/+92
| | | | | | | | | | | | Summary: Part of https://github.com/google/sanitizers/issues/637 Reviewers: eugenis Subscribers: kubamracek, dberris, llvm-commits Differential Revision: https://reviews.llvm.org/D37537 llvm-svn: 312859
* [sanitizer-coverage] extend fsanitize-coverage=pc-table with flags for every PCKostya Serebryany2017-08-251-5/+12
| | | | llvm-svn: 311794
* [SanitizerCoverage] Add stack depth tracing instrumentation.Matt Morehouse2017-08-181-0/+32
| | | | | | | | | | | | | | | | | | | | | | Summary: Augment SanitizerCoverage to insert maximum stack depth tracing for use by libFuzzer. The new instrumentation is enabled by the flag -fsanitize-coverage=stack-depth and is compatible with the existing trace-pc-guard coverage. The user must also declare the following global variable in their code: thread_local uintptr_t __sancov_lowest_stack https://bugs.llvm.org/show_bug.cgi?id=33857 Reviewers: vitalybuka, kcc Reviewed By: vitalybuka Subscribers: kubamracek, hiraditya, cfe-commits, llvm-commits Differential Revision: https://reviews.llvm.org/D36839 llvm-svn: 311186
* [sanitizer-coverage] add a run-time test for ↵Kostya Serebryany2017-07-281-2/+15
| | | | | | -fsanitize-coverage=inline-8bit-counters,pc-table llvm-svn: 309351
* Revert "[compiler-rt] Include thread ID into sanitizers logs"Vitaly Buka2017-07-251-23/+0
| | | | | | | | This improvement introduce additional dependencies on sandboxed environments. This reverts commit r308637. llvm-svn: 308984
* Splitting out test for Darwin for print-stack-trace:George Karpenkov2017-07-242-0/+21
| | | | | | | New default symbolizer can not symbolize inlined function which appear under -O3. llvm-svn: 308925
* [compiler-rt] Include thread ID into sanitizers logsVitaly Buka2017-07-201-0/+23
| | | | | | | | | | Reviewers: kcc, alekseyshl Subscribers: kubamracek, llvm-commits, dberris Differential Revision: https://reviews.llvm.org/D35654 llvm-svn: 308637
* [sanitizer-coverage] Stop marking this test as unsupported on DarwinJustin Bogner2017-06-211-1/+1
| | | | | | The bug that was causing this to fail was fixed in r305429. llvm-svn: 305942
* Mark a sancov test as unsupported on x86_64h-darwinVedant Kumar2017-06-101-1/+1
| | | | | | Failing bot: http://lab.llvm.org:8080/green/job/clang-stage1-cmake-RA-expensive/6891 llvm-svn: 305133
* [sanitizer-coverage] one more flavor of coverage: ↵Kostya Serebryany2017-06-081-0/+23
| | | | | | -fsanitize-coverage=inline-8bit-counters. Experimental so far, not documenting yet. Reapplying revisions 304630, 304631, 304632, 304673, see PR33308 llvm-svn: 305026
* Revert r304285, r304297.Evgeniy Stepanov2017-06-051-118/+0
| | | | | | | | | | | r304285 - [sanitizer] Avoid possible deadlock in child process after fork r304297 - [sanitizer] Trying to fix MAC buildbots after r304285 These changes create deadlock when Tcl calls pthread_create from a pthread_atfork child handler. More info in the original review at https://reviews.llvm.org/D33325 llvm-svn: 304735
* Revert "[sanitizer-coverage] test for -fsanitize-coverage=inline-8bit-counters"Renato Golin2017-06-051-23/+0
| | | | | | | | | | | | | Revert "Mark sancov test as unsupported on Darwin" Revert "[LSan] Detect dynamic loader by its base address." This reverts commit r304633. This reverts commit r304673. This reverts commit r304632. Those commit have broken LOTS of ARM/AArch64 bots for two days. llvm-svn: 304699
* Mark sancov test as unsupported on DarwinVedant Kumar2017-06-041-1/+1
| | | | | | | | | | This test has been failing on all Darwin bots since it was introduced: http://lab.llvm.org:8080/green/job/clang-stage1-configure-RA_check/32111 fatal error: error in backend: Global variable '__sancov_gen_' has an invalid section specifier '__DATA,__sancov_counters': mach-o section specifier requires a section whose length is between 1 and 16 characters. Target: x86_64-apple-darwin15.6.0 llvm-svn: 304673
* [sanitizer-coverage] test for -fsanitize-coverage=inline-8bit-countersKostya Serebryany2017-06-031-0/+23
| | | | llvm-svn: 304632
* [sanitizer-coverage] remove stale code (old coverage); compiler-rt part Kostya Serebryany2017-05-313-5/+5
| | | | llvm-svn: 304318
* [sanitizer] Avoid possible deadlock in child process after forkMaxim Ostapenko2017-05-311-0/+118
| | | | | | | | | | | | | | This patch addresses https://github.com/google/sanitizers/issues/774. When we fork a multi-threaded process it's possible to deadlock if some thread acquired StackDepot or allocator internal lock just before fork. In this case the lock will never be released in child process causing deadlock on following memory alloc/dealloc routine. While calling alloc/dealloc routines after multi-threaded fork is not allowed, most of modern allocators (Glibc, tcmalloc, jemalloc) are actually fork safe. Let's do the same for sanitizers except TSan that has complex locking rules. Differential Revision: https://reviews.llvm.org/D33325 llvm-svn: 304285
* [compiler-rt] Replace allow_user_segv_handler=0 with kHandleSignalExclusiveVitaly Buka2017-05-251-1/+1
| | | | | | | | | | | | | | Summary: allow_user_segv_handler had confusing name did not allow to control behavior for signals separately. Reviewers: eugenis, alekseyshl, kcc Subscribers: llvm-commits, dberris, kubamracek Differential Revision: https://reviews.llvm.org/D33371 llvm-svn: 303941
OpenPOWER on IntegriCloud