Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [Sanitizer] fix CMake build | Alexey Samsonov | 2012-07-10 | 3 | -2/+3 |
| | | | | llvm-svn: 159988 | ||||
* | [ASan] move flags description to separate header, add comments about them. | Alexey Samsonov | 2012-07-10 | 4 | -47/+102 |
| | | | | llvm-svn: 159985 | ||||
* | [ASan] cleanup: remove dead flag | Alexey Samsonov | 2012-07-09 | 2 | -3/+0 |
| | | | | llvm-svn: 159934 | ||||
* | [ASan] Use common flags parsing machinery. | Alexey Samsonov | 2012-07-09 | 14 | -228/+210 |
| | | | | llvm-svn: 159933 | ||||
* | [Sanitizer] move flag parsing routines (and unit tests) from tsan runtime to ↵ | Alexey Samsonov | 2012-07-09 | 5 | -158/+131 |
| | | | | | | common runtime. llvm-svn: 159928 | ||||
* | Suppress a lint warning. | Alexander Potapenko | 2012-07-08 | 1 | -1/+1 |
| | | | | llvm-svn: 159915 | ||||
* | tsan: Go language support fixes | Dmitry Vyukov | 2012-07-06 | 4 | -19/+24 |
| | | | | llvm-svn: 159856 | ||||
* | tsan: Go lang: symbolize stack traces | Dmitry Vyukov | 2012-07-06 | 4 | -4/+63 |
| | | | | llvm-svn: 159827 | ||||
* | [tsan] start using AllocatorCache in CombinedAllocator | Kostya Serebryany | 2012-07-06 | 4 | -14/+33 |
| | | | | llvm-svn: 159825 | ||||
* | Small fix: do not replace the default CFAllocator if it has been replaced ↵ | Alexander Potapenko | 2012-07-06 | 1 | -1/+1 |
| | | | | | | already. llvm-svn: 159824 | ||||
* | [tsan] implement SizeClassAllocatorLocalCache (part of tsan allocator) | Kostya Serebryany | 2012-07-06 | 2 | -30/+117 |
| | | | | llvm-svn: 159823 | ||||
* | Because CFAllocatorCreate() should also be called after __CFInitialize() on ↵ | Alexander Potapenko | 2012-07-06 | 1 | -16/+26 |
| | | | | | | | | | Lion, do so by factoring the CFAllocator logic into ReplaceCFAllocator(), which is called from either the __CFInitialize wrapper or __asan_init(), depending on which of them is called later. llvm-svn: 159822 | ||||
* | A portable way to check whether __CFInitialize has been called: compare ↵ | Alexander Potapenko | 2012-07-06 | 3 | -29/+26 |
| | | | | | | | | kCFAllocatorSystemDefault._base._cfisa to 0. This should fix http://code.google.com/p/address-sanitizer/issues/detail?id=87 on both Lion and Snow Leopard. llvm-svn: 159821 | ||||
* | Do not check for __CFRuntimeClassTableSize on non-10.6 systems, where this ↵ | Alexander Potapenko | 2012-07-06 | 3 | -11/+44 |
| | | | | | | | | symbol is private. This change may cause http://code.google.com/p/address-sanitizer/issues/detail?id=87 to re-appear on Lion. llvm-svn: 159819 | ||||
* | [tsan] use intrusive list in the new tsan allocator | Kostya Serebryany | 2012-07-06 | 2 | -26/+18 |
| | | | | llvm-svn: 159814 | ||||
* | [tsan] add intrusive list to be used in tsan allocator, etc | Kostya Serebryany | 2012-07-06 | 2 | -0/+270 |
| | | | | llvm-svn: 159812 | ||||
* | tsan: Go language support | Dmitry Vyukov | 2012-07-05 | 14 | -42/+362 |
| | | | | llvm-svn: 159754 | ||||
* | Fix http://code.google.com/p/address-sanitizer/issues/detail?id=87 by making ↵ | Alexander Potapenko | 2012-07-05 | 2 | -4/+30 |
| | | | | | | sure we replace the default CFAllocator only after __CFInitialize has been called. llvm-svn: 159749 | ||||
* | [ASan] Add a default constructor for DWARFSection to initialize it with zeros. | Alexey Samsonov | 2012-07-05 | 1 | -0/+4 |
| | | | | llvm-svn: 159748 | ||||
* | tsan/asan: kill STL | Dmitry Vyukov | 2012-07-05 | 1 | -5/+13 |
| | | | | | | | First, placement new from standard library conflicts with our own. Second, we are in trouble if user uses the same function (we either get instrumented code in runtime, or non-instrumented code in user program). llvm-svn: 159738 | ||||
* | [tsan] reg test for tsan issue #3 | Kostya Serebryany | 2012-07-05 | 1 | -0/+13 |
| | | | | llvm-svn: 159737 | ||||
* | [TSan] add a new option 'use_internal_symbolizer' that allows to choose ↵ | Alexey Samsonov | 2012-07-05 | 5 | -12/+91 |
| | | | | | | between addr2line-based and llvm-based symbolizer w/o having to rebuild the runtime. This is hopefully a temporary solution that simplifies testing process. In the end, we should leave a single symbolizer. llvm-svn: 159730 | ||||
* | [TSan] Improve output tests: allow reports to contain file:line:column ↵ | Alexey Samsonov | 2012-07-04 | 3 | -22/+18 |
| | | | | | | instead of file:line llvm-svn: 159714 | ||||
* | Do not call malloc_zone_from_ptr() for the pointers passed to mz_size() and ↵ | Alexander Potapenko | 2012-07-04 | 1 | -14/+0 |
| | | | | | | | | | mz_free(). These callbacks assume that the memory belongs to asan_zone, so it's incorrect to pass it to another one. If a need for this appears (e.g. system libraries free the memory using wrong zone), it should be documented. llvm-svn: 159713 | ||||
* | [ASan] Minor fix in symbolizer output. | Alexey Samsonov | 2012-07-04 | 1 | -1/+1 |
| | | | | llvm-svn: 159709 | ||||
* | [ASan] fixup for r159652 | Alexey Samsonov | 2012-07-03 | 1 | -0/+1 |
| | | | | llvm-svn: 159655 | ||||
* | [Sanitizer] Extend a symbolizer code. Implemented for Linux only. Use ↵ | Alexey Samsonov | 2012-07-03 | 9 | -75/+280 |
| | | | | | | dl_iterate_phdr to get virtual addresses of mapped module sections. To symbolize an address from a module, map this module to memory and obtain pointers to debug info sections. Later these pointers can be passed to constructor of DWARF context-in-memory from LLVM DebugInfo lib. llvm-svn: 159652 | ||||
* | [TSan] use threadsafe death tests in TSan unit tests | Alexey Samsonov | 2012-07-02 | 2 | -1/+2 |
| | | | | llvm-svn: 159533 | ||||
* | asan/tsan: improve SpinMutex | Dmitry Vyukov | 2012-07-02 | 1 | -3/+17 |
| | | | | llvm-svn: 159518 | ||||
* | tsan/asan: add mutex to 64-bit allocator | Dmitry Vyukov | 2012-07-02 | 2 | -8/+11 |
| | | | | llvm-svn: 159516 | ||||
* | [ASan] cmake cleanup: make tab/space padding in CMakeLists consistent, ↵ | Alexey Samsonov | 2012-07-02 | 3 | -10/+13 |
| | | | | | | silence/fix some pedantic warnings llvm-svn: 159514 | ||||
* | tsan/asan: third try on msvc atomics | Dmitry Vyukov | 2012-06-29 | 2 | -4/+14 |
| | | | | llvm-svn: 159449 | ||||
* | tsan/asan: second attemp on msvc atomics | Dmitry Vyukov | 2012-06-29 | 1 | -7/+14 |
| | | | | llvm-svn: 159447 | ||||
* | tsan/asan: first try on msvc atomics | Dmitry Vyukov | 2012-06-29 | 6 | -144/+234 |
| | | | | llvm-svn: 159443 | ||||
* | tsan/asan: add SpinMutex to sanitizer_common | Dmitry Vyukov | 2012-06-29 | 6 | -20/+74 |
| | | | | llvm-svn: 159439 | ||||
* | tsan/asan: unify ScopedLock | Dmitry Vyukov | 2012-06-29 | 4 | -52/+63 |
| | | | | llvm-svn: 159438 | ||||
* | tsan/asan: unify atomics (move atomics from tsan to sanitizer_common) | Dmitry Vyukov | 2012-06-29 | 13 | -62/+76 |
| | | | | llvm-svn: 159437 | ||||
* | tsan: use -Wno-unused-private-field only for clang (gcc does not understand it) | Dmitry Vyukov | 2012-06-29 | 1 | -2/+4 |
| | | | | llvm-svn: 159435 | ||||
* | [tsan] added CombinedAllocator for tsan | Kostya Serebryany | 2012-06-29 | 2 | -10/+112 |
| | | | | llvm-svn: 159432 | ||||
* | tsan: replace struct copies where clang inserts memcpy() calls with explicit ↵ | Dmitry Vyukov | 2012-06-29 | 1 | -5/+6 |
| | | | | | | internal_memcpy() calls llvm-svn: 159431 | ||||
* | tsan: remove own memset/memcpy/memcmp (too messy) | Dmitry Vyukov | 2012-06-29 | 3 | -92/+11 |
| | | | | llvm-svn: 159430 | ||||
* | [asan] fix lint | Kostya Serebryany | 2012-06-29 | 1 | -7/+7 |
| | | | | llvm-svn: 159429 | ||||
* | [asan] get rid of libc's sscanf as it causes infinite recursion on Fedora. | Kostya Serebryany | 2012-06-29 | 4 | -24/+48 |
| | | | | llvm-svn: 159424 | ||||
* | [ASan] cmake unit tests: explicitly add necessary linker flags when linking ↵ | Alexey Samsonov | 2012-06-29 | 1 | -2/+6 |
| | | | | | | unit tests with asan runtime llvm-svn: 159420 | ||||
* | [ASan] cmake-based unit tests: merge instrumented and non-instrumented files ↵ | Alexey Samsonov | 2012-06-29 | 1 | -34/+30 |
| | | | | | | into one test binary llvm-svn: 159419 | ||||
* | tsan: clear shadow for ucontext, because it's visible to user | Dmitry Vyukov | 2012-06-28 | 1 | -0/+1 |
| | | | | llvm-svn: 159365 | ||||
* | tsan: fix crashes if signal is caught during thread bootstrap or shutdown | Dmitry Vyukov | 2012-06-28 | 3 | -6/+17 |
| | | | | llvm-svn: 159361 | ||||
* | [ASan] fix the build - erase second main as we link all test sources together | Alexey Samsonov | 2012-06-28 | 1 | -6/+0 |
| | | | | llvm-svn: 159348 | ||||
* | [ASan] silence various warnings in cmake build of asan unit tests | Alexey Samsonov | 2012-06-28 | 3 | -4/+14 |
| | | | | llvm-svn: 159347 | ||||
* | [ASan] cmake support for running asan unit tests on Mac | Alexey Samsonov | 2012-06-28 | 2 | -12/+59 |
| | | | | llvm-svn: 159345 |