summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* [CMake] break dependency between unit tests and runtimes in standalone buildAlexey Samsonov2014-02-201-3/+6
| | | | llvm-svn: 201778
* [sanitizer] when reporting a deadlock also report the lock cycleKostya Serebryany2014-02-182-23/+79
| | | | llvm-svn: 201576
* [sanitizer] add tests for DeadlockDetector, minor fix in onLockKostya Serebryany2014-02-171-5/+51
| | | | llvm-svn: 201514
* [sanitizer] implement node removal in Deadlock graphKostya Serebryany2014-02-173-12/+207
| | | | llvm-svn: 201509
* [sanitizer] simplify DeadlockDetectorTLSKostya Serebryany2014-02-171-1/+1
| | | | llvm-svn: 201505
* [sanitizer] add one more test for deadlock detection stuffKostya Serebryany2014-02-172-11/+70
| | | | llvm-svn: 201503
* [sanitizer] add iterators to bit vectors; make bit vector operations use ↵Kostya Serebryany2014-02-142-6/+26
| | | | | | little stack; add common flag 'detect_deadlocks' llvm-svn: 201405
* Move shared configs for lit test suites to test/ and unittests/ directoriesAlexey Samsonov2014-02-141-1/+1
| | | | llvm-svn: 201399
* [sanitizer] replace MostSignificantSetBitIndex with ↵Kostya Serebryany2014-02-131-5/+10
| | | | | | LeastSignificantSetBitIndex in bit vector (to iterate bits in increasing order) llvm-svn: 201339
* [sanitizer] optimize TwoLevelBitVector::intersectsWith, extend tests, fix a ↵Kostya Serebryany2014-02-131-21/+56
| | | | | | check llvm-svn: 201338
* [sanitizer] address some of the dvyukov's comments on previous commitsKostya Serebryany2014-02-132-0/+4
| | | | llvm-svn: 201322
* [sanitizer] findPath for deadlock detectorKostya Serebryany2014-02-131-1/+18
| | | | llvm-svn: 201306
* [sanitizer] more code for deadlock detector, nothing really works yet ↵Kostya Serebryany2014-02-132-0/+104
| | | | | | (except for small unit tests). llvm-svn: 201302
* [sanitizer] added class BVGraph, to be used in a deadlock detector; added ↵Kostya Serebryany2014-02-123-7/+140
| | | | | | more methods to the bit vectors llvm-svn: 201226
* [sanitizer] added a bit vector class to be used in a deadlock detectorKostya Serebryany2014-02-122-0/+92
| | | | llvm-svn: 201210
* [sanitizer] Fix build.Evgeniy Stepanov2014-02-111-1/+1
| | | | llvm-svn: 201152
* Add throw() specifiers to more redeclarations of operator delete and ↵Nick Lewycky2014-02-081-2/+2
| | | | | | operator delete[]. llvm-svn: 201016
* [sanitizer] Fix build.Sergey Matveev2014-02-051-0/+1
| | | | llvm-svn: 200873
* [Sanitizer] Fix false positive in printf interceptors: properly handle ↵Alexey Samsonov2014-01-231-0/+5
| | | | | | precision for %s llvm-svn: 199895
* [asan] Android logging.Evgeniy Stepanov2014-01-231-0/+1
| | | | | | This change duplicates all ASan output to system log on Android. llvm-svn: 199887
* asan: fix atomic operations on ARMDmitry Vyukov2014-01-221-0/+73
| | | | | | | | implement correct atomic load/store for ARM add test for atomic load/store http://llvm-reviews.chandlerc.com/D2582 llvm-svn: 199802
* [Sanitizer] Update file names now that we intercept both scanf and printfAlexey Samsonov2014-01-212-3/+3
| | | | llvm-svn: 199735
* Fix unused function warning from r199729Alexey Samsonov2014-01-211-0/+1
| | | | llvm-svn: 199730
* Sanitize printf functions.Alexey Samsonov2014-01-211-28/+94
| | | | | | | | | | Intercept and sanitize arguments passed to printf functions in ASan and TSan (don't do this in MSan for now). The checks are controlled by runtime flag (off by default for now). Patch http://llvm-reviews.chandlerc.com/D2480 by Yuri Gribov! llvm-svn: 199729
* [Sanitizer] Support %.*s in internal printf implementation. Patch by Yuri ↵Alexey Samsonov2014-01-211-0/+10
| | | | | | Gribov. llvm-svn: 199724
* [Sanitizer] Use different MemoryMappingLayout::DumpListOfModules on Linux ↵Alexey Samsonov2013-12-251-4/+7
| | | | | | | | and Mac. Make a unit test added in r198004 more robust. llvm-svn: 198012
* [Sanitizer] Properly specify linux-only unit test.Alexey Samsonov2013-12-251-1/+1
| | | | llvm-svn: 198007
* [Sanitizer] Teach MemoryMappingLayout to dump all loaded modules.Alexey Samsonov2013-12-252-4/+26
| | | | | | | Use this to implement GetListOfModules() on Mac and on Android (on Linux we use dl_iterate_phdr). llvm-svn: 198004
* [Sanitizer] Fix a bug introduced in r196112. Add a test.Alexey Samsonov2013-12-031-0/+3
| | | | llvm-svn: 196263
* [sanitizer] Implement TwoLevelByteMap and use it for the internal allocator ↵Kostya Serebryany2013-11-251-0/+61
| | | | | | | | | | | | | | | | | | | | on 64-bit. Summary: Implement TwoLevelByteMap and use it for the internal allocator on 64-bit. This reduces bss on 64-bit by ~8Mb because we don't use FlatByteMap on 64-bits any more. Dmitry, please check my understanding of atomics. Reviewers: dvyukov Reviewed By: dvyukov CC: samsonov, llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2259 llvm-svn: 195637
* tsan: remove debug output from testDmitry Vyukov2013-11-211-1/+0
| | | | llvm-svn: 195347
* [Sanitizer] Print symbolized stack frame using a single Printf() call.Alexey Samsonov2013-11-141-0/+64
| | | | | | | | This reduces the number of "write" syscalls performed to print a single stack frame description, and makes sanitizer output less intermixed with program output. Also, add a number of unit tests. llvm-svn: 194686
* [ASan] Do not rely on malloc context in allocator reports.Alexey Samsonov2013-11-131-0/+1
| | | | | | | | | | | Invoke a fatal stack trace unwinder when ASan prints allocator-relevant error reports (double-free, alloc-dealloc-mismatch, invalid-free). Thus we'll be able to print complete stack trace even if allocation/free stacks are not stored (malloc_context_size=0). Based on the patch by Yuri Gribov! llvm-svn: 194579
* [Sanitizer] Make StackTrace::Unwind the only public way to unwind a stack trace.Alexey Samsonov2013-11-071-8/+15
| | | | llvm-svn: 194196
* Introduce an operator new for LowLevelAllocator, and convert most users to it.Peter Collingbourne2013-10-241-2/+1
| | | | llvm-svn: 193308
* [asan] Fix a deadlock between asan's allocator and lsanKostya Serebryany2013-10-171-0/+2
| | | | | | | | | | | | | | | | Summary: This fixes a deadlock which happens in lsan on a large memalign-allocated chunk that resides in lsan's root set. Reviewers: samsonov, earthdok Reviewed By: earthdok CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1957 llvm-svn: 192885
* [Sanitizer] Remove StackTrace::max_depth fieldAlexey Samsonov2013-10-121-1/+0
| | | | llvm-svn: 192534
* [sanitizer] Define kPthreadDestructorIterations on POSIX systems.Sergey Matveev2013-10-113-36/+63
| | | | llvm-svn: 192453
* [sanitizer] Ninja style fix to r192442.Sergey Matveev2013-10-111-3/+3
| | | | llvm-svn: 192443
* [sanitizer] Move the PTHREAD_DESTRUCTOR_ITERATIONS constant to ↵Sergey Matveev2013-10-111-0/+36
| | | | | | | | sanitizer_linux.h. Add a test. llvm-svn: 192442
* [Sanitizer] Simplify StackTrace::FastUnwindStack interface and fix a bug ↵Alexey Samsonov2013-10-111-8/+10
| | | | | | with one-frame stack traces llvm-svn: 192428
* Refactor the usage of strip_path_prefix option and make it more consistent ↵Alexey Samsonov2013-10-041-0/+9
| | | | | | across sanitizers llvm-svn: 191943
* tsan: ignore interceptors coming from specified librariesDmitry Vyukov2013-10-031-1/+3
| | | | | | | | | | | | | 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: allow to obtain code range for a particular moduleDmitry Vyukov2013-09-211-0/+30
| | | | | | this is required to ignore interceptors when called from the module llvm-svn: 191149
* Minor enhancements for sanitizer_common build rulesAlexey Samsonov2013-09-161-3/+3
| | | | llvm-svn: 190786
* Delete unused variables.Eli Friedman2013-09-101-1/+0
| | | | llvm-svn: 190383
* [Sanitizer] Use generic configs for running sanitizer_common unit testsAlexey Samsonov2013-09-082-40/+9
| | | | llvm-svn: 190276
* Migrate ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS to new spelling - ↵Alexey Samsonov2013-09-061-4/+4
| | | | | | ATTRIBUTE_NO_SANITIZE_ADDRESS llvm-svn: 190136
* [sanitizer] make the allocator crash instead of returning 0 on huge size ↵Kostya Serebryany2013-09-061-0/+9
| | | | | | (controlled by the allocator_may_return_null flag) llvm-svn: 190127
* Disable FindPathToBinary test on AndroidAlexey Samsonov2013-09-041-1/+1
| | | | llvm-svn: 189923
OpenPOWER on IntegriCloud