summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/tsan/lit_tests
Commit message (Collapse)AuthorAgeFilesLines
* tsan: deflake more testsDmitry Vyukov2013-11-282-0/+3
| | | | llvm-svn: 195916
* tsan: deflake more testsDmitry Vyukov2013-11-282-0/+4
| | | | llvm-svn: 195913
* tsan: better diagnostics if thread finishes with ignores enabledDmitry Vyukov2013-11-273-4/+34
| | | | | | | print thread creation stack and stacks where ignores were enabled. llvm-svn: 195836
* tsan: deflake testsDmitry Vyukov2013-11-212-0/+3
| | | | | | | | the tests produce episodic flakes the hypothesis is that it's due to our "racy" race detection algorithm sleeps should remove the flakes llvm-svn: 195351
* tsan: add -lm to output test build scriptDmitry Vyukov2013-11-211-1/+1
| | | | | | as common sanitizer interceptors now require it llvm-svn: 195346
* [tsan] use FileCheck in race_on_speculative_load.ccKostya Serebryany2013-11-211-1/+4
| | | | llvm-svn: 195331
* [tsan] add a run-time-side regression test for ↵Kostya Serebryany2013-11-211-0/+24
| | | | | | https://code.google.com/p/thread-sanitizer/issues/detail?id=40 (tsan-hostile load speculation) llvm-svn: 195325
* tsan: add support for robust mutexesDmitry Vyukov2013-11-152-0/+77
| | | | llvm-svn: 194823
* tsan/asan: support pthread_setname_np to set thread namesDmitry Vyukov2013-10-291-0/+32
| | | | llvm-svn: 193602
* tsan: merge 2 similar tests into 1Dmitry Vyukov2013-10-173-40/+8
| | | | llvm-svn: 192874
* tsan: add a test for __tsan_default_options()Dmitry Vyukov2013-10-171-0/+32
| | | | llvm-svn: 192873
* tsan: revert variable name change in testDmitry Vyukov2013-10-161-5/+5
| | | | | | It works as is with new llvm-symbolizer. llvm-svn: 192798
* tsan: move shadow stack from thread descriptors to fixed addressesDmitry Vyukov2013-10-163-5/+81
| | | | | | | | This allows to increase max shadow stack size to 64K, and reliably catch shadow stack overflows instead of silently corrupting memory. llvm-svn: 192797
* [TSan] Extend test for reporting globals with races on themAlexey Samsonov2013-10-161-3/+20
| | | | llvm-svn: 192782
* tsan: add annotations to ignore synchronization operationsDmitry Vyukov2013-10-101-0/+30
| | | | | | | | The annotations are AnnotateIgnoreSyncBegin/End, may be useful to ignore some infrastructure synchronization that introduces lots of false negatives. llvm-svn: 192355
* [TSan] Automatically pick up llvm-symbolizer from PATH, as we do in another ↵Alexey Samsonov2013-10-042-10/+0
| | | | | | sanitizers llvm-svn: 191954
* tsan: ignore interceptors coming from specified librariesDmitry Vyukov2013-10-0311-2/+171
| | | | | | | | | | | | | LibIgnore allows to ignore all interceptors called from a particular set of dynamic libraries. LibIgnore remembers all "called_from_lib" suppressions from the provided SuppressionContext; finds code ranges for the libraries; and checks whether the provided PC value belongs to the code ranges. Also make malloc and friends interceptors use SCOPED_INTERCEPTOR_RAW instead of SCOPED_TSAN_INTERCEPTOR, because if they are called from an ignored lib, then must call our internal allocator instead of libc malloc. llvm-svn: 191897
* tsan: support allocator_may_return_null flagDmitry Vyukov2013-09-271-2/+0
| | | | | | Fixes https://code.google.com/p/thread-sanitizer/issues/detail?id=29 llvm-svn: 191482
* tsan: ignore all interceptors coming directly from JVMDmitry Vyukov2013-09-213-0/+3
| | | | llvm-svn: 191152
* tsan: allow to ignore memory accesses in malloc and freeDmitry Vyukov2013-09-202-0/+73
| | | | llvm-svn: 191072
* [TSan] Use --whole-archive around TSan runtime in old TSan makefiles. Fix a ↵Alexey Samsonov2013-09-111-1/+1
| | | | | | Go build llvm-svn: 190513
* [tsan] make calloc crash instead of returning 0 on overflow (controlled by ↵Kostya Serebryany2013-09-062-1/+68
| | | | | | the allocator_may_return_null flag) llvm-svn: 190135
* tsan: catch races on condition variablesDmitry Vyukov2013-09-032-0/+89
| | | | llvm-svn: 189816
* tsan: properly intercept pthread_cond functionsDmitry Vyukov2013-09-022-1/+45
| | | | llvm-svn: 189767
* tsan/msan: add halt_on_error flagDmitry Vyukov2013-08-131-0/+25
| | | | | | If halt_on_error==true, program terminates after reporting first error. llvm-svn: 188279
* Add "CHECK-" prefix to un-break buildbot failure.Rui Ueyama2013-08-121-2/+2
| | | | | | | After r188221, the prefix given by --check-prefix must match with the label as a whole. Substring is not considered to be a correct label anymore. llvm-svn: 188227
* [tests] Update to use lit_config and lit package, as appropriate.Daniel Dunbar2013-08-094-16/+20
| | | | llvm-svn: 188116
* [TSan] Fix free_race.c by removing `not` from the test invocation that ↵Alexander Potapenko2013-08-071-3/+2
| | | | | | doesn't fail. llvm-svn: 187889
* [TSan] Let the users suppress use-after-free errors using the "race:" ↵Alexander Potapenko2013-08-072-9/+17
| | | | | | | | | | | | | | | suppressions. If there's a race between a memory access and a free() call in the client program, it can be reported as a use-after-free (if the access occurs after the free()) or an ordinary race (if free() occurs after the access). We've decided to use a single "race:" prefix for both cases instead of introducing a "use-after-free:" one, because in many cases this allows us to keep a single suppression for both the use-after-free and free-after-use. This may be misleading if the use-after-free occurs in a non-racy way (e.g. in a single-threaded program). But normally such bugs shall not be suppressed. llvm-svn: 187885
* Enable pipefail for TSan testsAlexey Samsonov2013-08-0765-66/+64
| | | | llvm-svn: 187875
* Disable pipefail for ThreadSanitizer.Rafael Espindola2013-07-261-0/+2
| | | | llvm-svn: 187272
* Use --driver-mode=g++ instead of -ccc-cxx; required after Clang r186605Hans Wennborg2013-07-181-1/+1
| | | | llvm-svn: 186607
* tsan: support sigsuspend() callDmitry Vyukov2013-07-161-0/+38
| | | | | | Intercepting it makes it process pending signal before return. llvm-svn: 186400
* Define the path to llvm-symbolizer tool in a common config to reduce copy-pasteAlexey Samsonov2013-06-301-5/+2
| | | | llvm-svn: 185286
* tsan: make the test more robustDmitry Vyukov2013-06-241-2/+8
| | | | | | | | currently it episodically fails the hypothesis it is due to racy race detection algorithm the sleep should make it more robust llvm-svn: 184752
* tsan: fix potential false positive race on fdDmitry Vyukov2013-06-201-0/+30
| | | | llvm-svn: 184430
* tsan: fix lit test failuresDmitry Vyukov2013-06-103-0/+3
| | | | llvm-svn: 183674
* tsan: add system tests for suppressionsDmitry Vyukov2013-06-107-0/+98
| | | | llvm-svn: 183673
* Remove a bunch of copy-paste: use common config for sanitizer lit/unit testsAlexey Samsonov2013-06-064-45/+6
| | | | llvm-svn: 183407
* Improve support for compiler-rt tests in CMake build.Alexey Samsonov2013-05-274-13/+15
| | | | | | | | Now compiler-rt tests run correctly if compiler-rt is checked out into arbitrary directory (not necessarily projects/compiler-rt). Patch by Greg Fitzgerald! llvm-svn: 182726
* tsan: detect when a thread ends with ignores enabledDmitry Vyukov2013-05-212-0/+28
| | | | llvm-svn: 182354
* tsan: introduce recursive mutex lock/unlock java interfaceDmitry Vyukov2013-05-173-0/+104
| | | | | | this is required to handle Object.Wait() llvm-svn: 182088
* tsan: comment out debug output in testDmitry Vyukov2013-04-301-5/+3
| | | | llvm-svn: 180787
* tsan: fix deadlock detector table (OK to lock sync var mutex during reporting)Dmitry Vyukov2013-04-301-0/+39
| | | | llvm-svn: 180782
* tsan: add interface functions for unaligned access, e.g. ↵Dmitry Vyukov2013-04-302-0/+221
| | | | | | __sanitizer_unaligned_load16 llvm-svn: 180780
* tsan: add a test that used to crash, fixed by r180180.Dmitry Vyukov2013-04-251-0/+24
| | | | llvm-svn: 180251
* tsan: fix stack traces for malloc and freeDmitry Vyukov2013-04-241-0/+25
| | | | llvm-svn: 180184
* [TSan] remove -fPIE -pie from TSan lit tests to check that -fsanitize=thread ↵Alexey Samsonov2013-04-121-2/+0
| | | | | | implies them now llvm-svn: 179365
* Explicitly list all sanitizer headers in CMake build rules. Make sure ↵Alexey Samsonov2013-04-111-3/+2
| | | | | | sanitizer lit_tests depend on fresh headers. llvm-svn: 179293
* [Sanitizer] fix TSan tests: remove global ctor from sanitizer_common, run ↵Alexey Samsonov2013-04-091-0/+4
| | | | | | load_shared_lib test only in lit llvm-svn: 179090
OpenPOWER on IntegriCloud