summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/tsan
Commit message (Collapse)AuthorAgeFilesLines
...
* tsan: add a stress test for deadlock detectorDmitry Vyukov2014-12-181-0/+188
| | | | | | currently disabled because fails llvm-svn: 224509
* Revert "Fix test cases given Clang's improved location information."David Blaikie2014-12-172-2/+2
| | | | | | | | | The Clang improevments were reverted due to failures created in an asan bootstrap. This reverts commit r224387. llvm-svn: 224446
* tsan: add disabled test case for issue 87Dmitry Vyukov2014-12-171-0/+68
| | | | llvm-svn: 224422
* Fix test cases given Clang's improved location information.David Blaikie2014-12-162-2/+2
| | | | llvm-svn: 224387
* [Tsan] Fix the signal_recursive.cc test to pass on systems with high loadsViktor Kutuzov2014-12-112-13/+21
| | | | | | Differential Revision: http://reviews.llvm.org/D6504 llvm-svn: 224030
* tsan: fix testDmitry Vyukov2014-12-051-2/+3
| | | | | | | | | this test is flaky because of ASLR app memory is 7e8000000000-800000000000, there may or may not be a 1TB hole depending on where ASLR will choose to map libraries llvm-svn: 223469
* [Tsan] Fix the atomic_race.cc test to pass on systems with high loadsViktor Kutuzov2014-12-021-1/+1
| | | | | | Differential Revision: http://reviews.llvm.org/D6478 llvm-svn: 223122
* [TSan] Deflake testAlexey Samsonov2014-11-241-0/+3
| | | | llvm-svn: 222699
* tsan: fix binary names in testsDmitry Vyukov2014-11-192-9/+9
| | | | | | test_output.sh produces source.cc.exe binaries llvm-svn: 222345
* tsan: exclude unsupported test from test_output.sh scriptDmitry Vyukov2014-11-191-0/+2
| | | | llvm-svn: 222344
* tsan: don't add -pie when compiling testsDmitry Vyukov2014-11-191-2/+2
| | | | | | driver should add it as necessary llvm-svn: 222343
* [TSan] Don't strip binary/library name until the moment we print it.Alexey Samsonov2014-11-042-9/+9
| | | | | | | | | | | | | | | This commit changes the place where TSan runtime turns full path to binary or shared library into its basename (/usr/foo/mybinary -> mybinary). Instead of doing it as early as possible (when we obtained the full path from the symbolizer), we now do it as late as possible (right before printing the error report). This seems like a right thing to do - stripping to basename is a detail of report formatting implementation, and should belong there. Also, we might need the full path at some point - for example, to match the suppressions. llvm-svn: 221225
* [Tsan] Enable thread sanitizer tests on FreeBSDViktor Kutuzov2014-10-271-2/+2
| | | | | | Differential Revision: http://reviews.llvm.org/D5995 llvm-svn: 220676
* tsan: support mmap(MAP_32BIT)Dmitry Vyukov2014-10-241-0/+41
| | | | | | | | | Allow user memory in the first TB of address space. This also enabled non-pie binaries and freebsd. Fixes issue: https://code.google.com/p/thread-sanitizer/issues/detail?id=5 llvm-svn: 220571
* [Tsan] Fix the thread_name tests to build on FreeBSDViktor Kutuzov2014-10-242-3/+16
| | | | | | Differential Revision: http://reviews.llvm.org/D5855 llvm-svn: 220552
* [Tsan] Fix the signal_recursive.cc test to build on FreeBSDViktor Kutuzov2014-10-241-2/+2
| | | | | | Differential Revision: http://reviews.llvm.org/D5841 llvm-svn: 220550
* [Tsan] Fix the sunrpc.cc test to build on FreeBSDViktor Kutuzov2014-10-151-0/+1
| | | | | | Differential Revision: http://reviews.llvm.org/D5730 llvm-svn: 219791
* [Tsan] Make the mutex_robust tests Linux-specificViktor Kutuzov2014-10-152-0/+0
| | | | | | Differential Revision: http://reviews.llvm.org/D5729 llvm-svn: 219790
* tsan: fix false positive related to signalsDmitry Vyukov2014-10-152-2/+29
| | | | | | | Write interceptor calls malloc, which causes a false unsafe-call-in-signal-handler report. See the test. llvm-svn: 219784
* tsan: refactor atexit handlingDmitry Vyukov2014-10-141-0/+56
| | | | | | | | | | The current handling (manual execution of atexit callbacks) is overly complex and leads to constant problems due to mutual ordering of callbacks. Instead simply wrap callbacks into our wrapper to establish the necessary synchronization. Fixes issue https://code.google.com/p/thread-sanitizer/issues/detail?id=80 llvm-svn: 219675
* tsan: better reporting for virtual-call-after-freeDmitry Vyukov2014-10-131-0/+34
| | | | | | | Previously we said that it's a data race, which is confusing if it happens in the same thread. llvm-svn: 219600
* [Tsan] Fix the getline_nohang.cc test to build on FreeBSDViktor Kutuzov2014-10-101-0/+4
| | | | | | Differential Revision: http://reviews.llvm.org/D5666 llvm-svn: 219482
* [Tsan] Fix comments in the user_fopen.cc and user_malloc.cc testsViktor Kutuzov2014-10-102-2/+2
| | | | | | Related revision: http://reviews.llvm.org/D5670 llvm-svn: 219481
* [Tsan] Make the user_fopen.cc and user_malloc.cc tests Linux-specificViktor Kutuzov2014-10-103-0/+9
| | | | | | Differential Revision: http://reviews.llvm.org/D5670 llvm-svn: 219478
* [Tsan] Fix the signal_errno.cc and signal_malloc.cc tests to pass on FreeBSDViktor Kutuzov2014-10-092-2/+2
| | | | | | Differential Revision: http://reviews.llvm.org/D5669 llvm-svn: 219399
* [Tsan] Fix the global_race tests to pass on FreeBSDViktor Kutuzov2014-10-093-3/+9
| | | | | | Differential Revision: http://reviews.llvm.org/D5668 llvm-svn: 219398
* [Tsan] Fix the blacklist2.cc test to pass on FreeBSDViktor Kutuzov2014-10-091-1/+1
| | | | | | Differential Revision: http://reviews.llvm.org/D5665 llvm-svn: 219397
* tsan: fix signal_longjmp test in debug modeDmitry Vyukov2014-09-181-3/+9
| | | | | | | | | In debug mode tsan checks that user accesses access user memory. NULL is not user memory. So the test fails. Allocate real inaccessible memory for the test. llvm-svn: 218069
* tsan: fix double semicolon ;;Dmitry Vyukov2014-09-181-1/+1
| | | | llvm-svn: 218067
* tsan: fix bug number in commentDmitry Vyukov2014-09-171-1/+1
| | | | llvm-svn: 217992
* tsan: fix crash when a program registers zillions of atexit callbacksDmitry Vyukov2014-09-171-0/+26
| | | | | | | | | | I don't remember that crash on mmap in internal allocator ever yielded anything useful, only crashes in rare wierd untested situations. One of the reasons for crash was to catch if tsan starts allocating clocks using mmap. Tsan does not allocate clocks using internal_alloc anymore. Solve it once and for all by allowing mmaps. llvm-svn: 217929
* tsan: support longjmp out of signal handlersDmitry Vyukov2014-09-161-0/+63
| | | | | | Fixes https://code.google.com/p/thread-sanitizer/issues/detail?id=75 llvm-svn: 217908
* Use "-gline-tables-only" instead of "-g" in sanitizer test suites.Alexey Samsonov2014-09-051-3/+1
| | | | | | | We are interested in verifying that -gline-tables-only provides enough debug information for verbose error reports and symbolized stack traces. llvm-svn: 217284
* tsan: handle early signalsDmitry Vyukov2014-09-031-1/+0
| | | | | | | The second part of the fix of https://code.google.com/p/thread-sanitizer/issues/detail?id=71 llvm-svn: 217031
* tsan: more precise handling of atexit callbacksDmitry Vyukov2014-09-021-0/+29
| | | | | | Fixes issue https://code.google.com/p/thread-sanitizer/issues/detail?id=74 llvm-svn: 216906
* tsan: restructure signal handling to allow recursive handlingDmitry Vyukov2014-09-021-0/+132
| | | | | | | Fixes issue https://code.google.com/p/thread-sanitizer/issues/detail?id=71 llvm-svn: 216903
* tsan: fix false positive related to signal handlersDmitry Vyukov2014-09-011-0/+58
| | | | | | | Users expect synchronization between sigaction and arrival of the signal. See the test for details. llvm-svn: 216878
* [TSan] Add -lpthread to the test which uses pthread_ functionsAlexey Samsonov2014-08-181-1/+1
| | | | llvm-svn: 215939
* tsan: allocate vector clocks using slab allocatorDmitry Vyukov2014-08-051-0/+20
| | | | | | | | | | Vector clocks is the most actively allocated object in tsan runtime. Current internal allocator is not scalable enough to handle allocation of clocks in scalable way (too small caches). This changes transforms clocks to 2-level array with 512-byte blocks. Since all blocks are of the same size, it's possible to cache them more efficiently in per-thread caches. llvm-svn: 214912
* tsan: improve shadow flush benchmarkDmitry Vyukov2014-07-261-4/+10
| | | | | | allow to specify access stride llvm-svn: 214029
* [tsan] honour XFAIL in tsan/test_output.shKostya Serebryany2014-07-141-0/+4
| | | | llvm-svn: 212952
* [tsan] add a printf to a testKostya Serebryany2014-07-141-0/+1
| | | | llvm-svn: 212951
* [tsan] add a currently-failing test with a must-deadlockKostya Serebryany2014-07-141-0/+49
| | | | llvm-svn: 212944
* Fix expected column numbers in two tests.Diego Novillo2014-07-102-2/+2
| | | | | | | | This is a minor fix to two tsan tests that were expecting the wrong column information. Now that clang emits column information by default in its debugging output, the tests had started failing. llvm-svn: 212779
* [TSan] Fix a bug in libcxx-tsan build conditions spotted by Ryuta SuzukiAlexey Samsonov2014-07-101-1/+1
| | | | llvm-svn: 212749
* tsan: allow memory overlap in __tsan_java_moveDmitry Vyukov2014-07-0810-48/+182
| | | | | | JVM actually moves memory between overlapping ranges. llvm-svn: 212560
* [tsan] Enable tsan's deadlock detector by default.Kostya Serebryany2014-07-081-2/+8
| | | | | | | | The tsan's deadlock detector has been used in Chromium for a while; it found a few real bugs and reported no false positives. So, it's time to give it a bit more exposure. llvm-svn: 212533
* [Sanitizer] Move test for malloc/free hooks under test/sanitizer_commonAlexey Samsonov2014-07-071-53/+0
| | | | llvm-svn: 212474
* Generalize sanitizer allocator public interface.Alexey Samsonov2014-07-071-2/+3
| | | | | | | | | | | | | | Introduce new public header <sanitizer/allocator_interface.h> and a set of functions __sanitizer_get_ownership(), __sanitizer_malloc_hook() etc. that will eventually replace their tool-specific equivalents (__asan_get_ownership(), __msan_get_ownership() etc.). Tool-specific functions are now deprecated and implemented as stubs redirecting to __sanitizer_ versions (which are implemented differently in each tool). Replace all uses of __xsan_ versions with __sanitizer_ versions in unit and lit tests. llvm-svn: 212469
* tsan: fix and re-enable a testDmitry Vyukov2014-06-271-2/+1
| | | | llvm-svn: 211966
OpenPOWER on IntegriCloud