Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | [CMake] break dependency between unit tests and runtimes in standalone build | Alexey Samsonov | 2014-02-20 | 1 | -3/+6 | |
| | | | | llvm-svn: 201778 | |||||
* | [sanitizer] when reporting a deadlock also report the lock cycle | Kostya Serebryany | 2014-02-18 | 2 | -23/+79 | |
| | | | | llvm-svn: 201576 | |||||
* | [sanitizer] add tests for DeadlockDetector, minor fix in onLock | Kostya Serebryany | 2014-02-17 | 1 | -5/+51 | |
| | | | | llvm-svn: 201514 | |||||
* | [sanitizer] implement node removal in Deadlock graph | Kostya Serebryany | 2014-02-17 | 3 | -12/+207 | |
| | | | | llvm-svn: 201509 | |||||
* | [sanitizer] simplify DeadlockDetectorTLS | Kostya Serebryany | 2014-02-17 | 1 | -1/+1 | |
| | | | | llvm-svn: 201505 | |||||
* | [sanitizer] add one more test for deadlock detection stuff | Kostya Serebryany | 2014-02-17 | 2 | -11/+70 | |
| | | | | llvm-svn: 201503 | |||||
* | [sanitizer] add iterators to bit vectors; make bit vector operations use ↵ | Kostya Serebryany | 2014-02-14 | 2 | -6/+26 | |
| | | | | | | little stack; add common flag 'detect_deadlocks' llvm-svn: 201405 | |||||
* | Move shared configs for lit test suites to test/ and unittests/ directories | Alexey Samsonov | 2014-02-14 | 1 | -1/+1 | |
| | | | | llvm-svn: 201399 | |||||
* | [sanitizer] replace MostSignificantSetBitIndex with ↵ | Kostya Serebryany | 2014-02-13 | 1 | -5/+10 | |
| | | | | | | LeastSignificantSetBitIndex in bit vector (to iterate bits in increasing order) llvm-svn: 201339 | |||||
* | [sanitizer] optimize TwoLevelBitVector::intersectsWith, extend tests, fix a ↵ | Kostya Serebryany | 2014-02-13 | 1 | -21/+56 | |
| | | | | | | check llvm-svn: 201338 | |||||
* | [sanitizer] address some of the dvyukov's comments on previous commits | Kostya Serebryany | 2014-02-13 | 2 | -0/+4 | |
| | | | | llvm-svn: 201322 | |||||
* | [sanitizer] findPath for deadlock detector | Kostya Serebryany | 2014-02-13 | 1 | -1/+18 | |
| | | | | llvm-svn: 201306 | |||||
* | [sanitizer] more code for deadlock detector, nothing really works yet ↵ | Kostya Serebryany | 2014-02-13 | 2 | -0/+104 | |
| | | | | | | (except for small unit tests). llvm-svn: 201302 | |||||
* | [sanitizer] added class BVGraph, to be used in a deadlock detector; added ↵ | Kostya Serebryany | 2014-02-12 | 3 | -7/+140 | |
| | | | | | | more methods to the bit vectors llvm-svn: 201226 | |||||
* | [sanitizer] added a bit vector class to be used in a deadlock detector | Kostya Serebryany | 2014-02-12 | 2 | -0/+92 | |
| | | | | llvm-svn: 201210 | |||||
* | [sanitizer] Fix build. | Evgeniy Stepanov | 2014-02-11 | 1 | -1/+1 | |
| | | | | llvm-svn: 201152 | |||||
* | Add throw() specifiers to more redeclarations of operator delete and ↵ | Nick Lewycky | 2014-02-08 | 1 | -2/+2 | |
| | | | | | | operator delete[]. llvm-svn: 201016 | |||||
* | [sanitizer] Fix build. | Sergey Matveev | 2014-02-05 | 1 | -0/+1 | |
| | | | | llvm-svn: 200873 | |||||
* | [Sanitizer] Fix false positive in printf interceptors: properly handle ↵ | Alexey Samsonov | 2014-01-23 | 1 | -0/+5 | |
| | | | | | | precision for %s llvm-svn: 199895 | |||||
* | [asan] Android logging. | Evgeniy Stepanov | 2014-01-23 | 1 | -0/+1 | |
| | | | | | | This change duplicates all ASan output to system log on Android. llvm-svn: 199887 | |||||
* | asan: fix atomic operations on ARM | Dmitry Vyukov | 2014-01-22 | 1 | -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 printf | Alexey Samsonov | 2014-01-21 | 2 | -3/+3 | |
| | | | | llvm-svn: 199735 | |||||
* | Fix unused function warning from r199729 | Alexey Samsonov | 2014-01-21 | 1 | -0/+1 | |
| | | | | llvm-svn: 199730 | |||||
* | Sanitize printf functions. | Alexey Samsonov | 2014-01-21 | 1 | -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 Samsonov | 2014-01-21 | 1 | -0/+10 | |
| | | | | | | Gribov. llvm-svn: 199724 | |||||
* | [Sanitizer] Use different MemoryMappingLayout::DumpListOfModules on Linux ↵ | Alexey Samsonov | 2013-12-25 | 1 | -4/+7 | |
| | | | | | | | | and Mac. Make a unit test added in r198004 more robust. llvm-svn: 198012 | |||||
* | [Sanitizer] Properly specify linux-only unit test. | Alexey Samsonov | 2013-12-25 | 1 | -1/+1 | |
| | | | | llvm-svn: 198007 | |||||
* | [Sanitizer] Teach MemoryMappingLayout to dump all loaded modules. | Alexey Samsonov | 2013-12-25 | 2 | -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 Samsonov | 2013-12-03 | 1 | -0/+3 | |
| | | | | llvm-svn: 196263 | |||||
* | [sanitizer] Implement TwoLevelByteMap and use it for the internal allocator ↵ | Kostya Serebryany | 2013-11-25 | 1 | -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 test | Dmitry Vyukov | 2013-11-21 | 1 | -1/+0 | |
| | | | | llvm-svn: 195347 | |||||
* | [Sanitizer] Print symbolized stack frame using a single Printf() call. | Alexey Samsonov | 2013-11-14 | 1 | -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 Samsonov | 2013-11-13 | 1 | -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 Samsonov | 2013-11-07 | 1 | -8/+15 | |
| | | | | llvm-svn: 194196 | |||||
* | Introduce an operator new for LowLevelAllocator, and convert most users to it. | Peter Collingbourne | 2013-10-24 | 1 | -2/+1 | |
| | | | | llvm-svn: 193308 | |||||
* | [asan] Fix a deadlock between asan's allocator and lsan | Kostya Serebryany | 2013-10-17 | 1 | -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 field | Alexey Samsonov | 2013-10-12 | 1 | -1/+0 | |
| | | | | llvm-svn: 192534 | |||||
* | [sanitizer] Define kPthreadDestructorIterations on POSIX systems. | Sergey Matveev | 2013-10-11 | 3 | -36/+63 | |
| | | | | llvm-svn: 192453 | |||||
* | [sanitizer] Ninja style fix to r192442. | Sergey Matveev | 2013-10-11 | 1 | -3/+3 | |
| | | | | llvm-svn: 192443 | |||||
* | [sanitizer] Move the PTHREAD_DESTRUCTOR_ITERATIONS constant to ↵ | Sergey Matveev | 2013-10-11 | 1 | -0/+36 | |
| | | | | | | | | sanitizer_linux.h. Add a test. llvm-svn: 192442 | |||||
* | [Sanitizer] Simplify StackTrace::FastUnwindStack interface and fix a bug ↵ | Alexey Samsonov | 2013-10-11 | 1 | -8/+10 | |
| | | | | | | with one-frame stack traces llvm-svn: 192428 | |||||
* | Refactor the usage of strip_path_prefix option and make it more consistent ↵ | Alexey Samsonov | 2013-10-04 | 1 | -0/+9 | |
| | | | | | | across sanitizers llvm-svn: 191943 | |||||
* | tsan: ignore interceptors coming from specified libraries | Dmitry Vyukov | 2013-10-03 | 1 | -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 module | Dmitry Vyukov | 2013-09-21 | 1 | -0/+30 | |
| | | | | | | this is required to ignore interceptors when called from the module llvm-svn: 191149 | |||||
* | Minor enhancements for sanitizer_common build rules | Alexey Samsonov | 2013-09-16 | 1 | -3/+3 | |
| | | | | llvm-svn: 190786 | |||||
* | Delete unused variables. | Eli Friedman | 2013-09-10 | 1 | -1/+0 | |
| | | | | llvm-svn: 190383 | |||||
* | [Sanitizer] Use generic configs for running sanitizer_common unit tests | Alexey Samsonov | 2013-09-08 | 2 | -40/+9 | |
| | | | | llvm-svn: 190276 | |||||
* | Migrate ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS to new spelling - ↵ | Alexey Samsonov | 2013-09-06 | 1 | -4/+4 | |
| | | | | | | ATTRIBUTE_NO_SANITIZE_ADDRESS llvm-svn: 190136 | |||||
* | [sanitizer] make the allocator crash instead of returning 0 on huge size ↵ | Kostya Serebryany | 2013-09-06 | 1 | -0/+9 | |
| | | | | | | (controlled by the allocator_may_return_null flag) llvm-svn: 190127 | |||||
* | Disable FindPathToBinary test on Android | Alexey Samsonov | 2013-09-04 | 1 | -1/+1 | |
| | | | | llvm-svn: 189923 |