Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | [Sanitizer] support running external llvm-symbolizer on Mac | Alexey Samsonov | 2013-06-11 | 1 | -0/+2 | |
| | | | | llvm-svn: 183730 | |||||
* | tsan: fix windows mingw build | Dmitry Vyukov | 2013-06-10 | 1 | -3/+3 | |
| | | | | llvm-svn: 183644 | |||||
* | Make InternalAlloc/InternalFree in sanitizer runtimes libc-free by switching ↵ | Alexey Samsonov | 2013-05-29 | 1 | -4/+0 | |
| | | | | | | to a custom allocator. llvm-svn: 182836 | |||||
* | [nolibc] Move all platforms to internal_getpid. | Peter Collingbourne | 2013-05-17 | 1 | -1/+0 | |
| | | | | | | | | | | Before, we had an unused internal_getpid function for Linux, and a platform-independent GetPid function. To make the naming conventions consistent for syscall-like functions, the GetPid syscall wrapper in sanitizer_posix.cc is moved to sanitizer_mac.cc, and GetPid is renamed to internal_getpid, bringing the Linux variant into use. llvm-svn: 182132 | |||||
* | [nolibc] Begin moving sanitizer_common's libc-dependent code to a separate ↵ | Peter Collingbourne | 2013-05-17 | 1 | -0/+2 | |
| | | | | | | | | | | | | | | | | library Introduce a new object library, RTSanitizerCommonLibc, which will contain the subset of sanitizer_common with libc dependencies. RTSanitizerCommon contains the remainder of sanitizer_common, and is intended to have no libc dependencies. Begin moving code to RTSanitizerCommonLibc, starting with sanitizer_common.cc, whose libc-dependent portion is moved to sanitizer_common_libcdep.cc, the first member of the new library. This split affects the CMake build only. The makefile build continues to produce the full sanitizer_common library. llvm-svn: 182118 | |||||
* | [sanitizer] Generic sorting in sanitizer_common. | Sergey Matveev | 2013-05-13 | 1 | -0/+38 | |
| | | | | llvm-svn: 181698 | |||||
* | [nolibc] Change internal syscall API to remove reliance on libc's errno. | Peter Collingbourne | 2013-05-08 | 1 | -1/+1 | |
| | | | | | | | | | | | | | This change moves to a model where the error value of a system call is potentially contained in the return value itself rather than being implicit in errno. The helper function internal_iserror can be used to extract the error value from a return value. On platforms other than Linux/x86_64 this still uses errno, but other platforms are free to port their error handling to this new model. Differential Revision: http://llvm-reviews.chandlerc.com/D756 llvm-svn: 181436 | |||||
* | [sanitizer] Move GetThreadStackAndTls from TSan to sanitizer_common. | Sergey Matveev | 2013-05-07 | 1 | -0/+2 | |
| | | | | | | | | Move this function to sanitizer_common because LSan uses it too. Also, fix a bug where the TLS range reported for main thread was off by the size of the thread descriptor from libc (TSan doesn't care much, but for LSan it's critical). llvm-svn: 181322 | |||||
* | Revert r180599 "[sanitizer] Clear LD_PRELOAD when forking an external ↵ | Sergey Matveev | 2013-04-26 | 1 | -1/+0 | |
| | | | | | | symbolizer." llvm-svn: 180602 | |||||
* | [sanitizer] Clear LD_PRELOAD when forking an external symbolizer. | Sergey Matveev | 2013-04-26 | 1 | -0/+1 | |
| | | | | llvm-svn: 180599 | |||||
* | Revert r180082 and add a test for SetEnv function | Alexey Samsonov | 2013-04-23 | 1 | -0/+1 | |
| | | | | llvm-svn: 180098 | |||||
* | [Sanitizer] Delete unused function | Alexey Samsonov | 2013-04-23 | 1 | -1/+0 | |
| | | | | llvm-svn: 180082 | |||||
* | [Sanitizer] Use a common mutex to prevent mixing reports from different ↵ | Alexey Samsonov | 2013-04-05 | 1 | -0/+3 | |
| | | | | | | sanitizers. This fixes PR15516 llvm-svn: 178853 | |||||
* | [libsanitizer] Added data() and capacity() getters to InternalVector. | Alexander Potapenko | 2013-04-01 | 1 | -0/+6 | |
| | | | | | | | | Same interface as in STL. Needed for LSan. Patch by Sergey Matveev (earthdok@google.com) llvm-svn: 178463 | |||||
* | [Sanitizer] Follow-up for r178238 - replace DCHECKs with regular CHECKs | Alexey Samsonov | 2013-03-29 | 1 | -2/+2 | |
| | | | | llvm-svn: 178336 | |||||
* | [Sanitizer] Minor enhancements in InternalVector container | Alexey Samsonov | 2013-03-28 | 1 | -2/+6 | |
| | | | | llvm-svn: 178238 | |||||
* | tsan: add SetEnv() function that can be used in frontends | Dmitry Vyukov | 2013-03-25 | 1 | -0/+1 | |
| | | | | llvm-svn: 177857 | |||||
* | tsan: use a single background thread for memory profiler and memory flush ↵ | Dmitry Vyukov | 2013-03-21 | 1 | -0/+1 | |
| | | | | | | (and later for symbolizer flush) llvm-svn: 177627 | |||||
* | [sanitizer] Replace more platform checks with SANITIZER_ constants. | Evgeniy Stepanov | 2013-03-19 | 1 | -3/+3 | |
| | | | | llvm-svn: 177400 | |||||
* | [libsanitizer] StopTheWorld in sanitizer_common | Alexander Potapenko | 2013-03-15 | 1 | -0/+1 | |
| | | | | | | | | | | | StopTheWorld puts the process in a suspended state before running the user-supplied callback. To be used in TSan and in leak checking code. Linux implementation provided. Patch by Sergey Matveev (earthdok@google.com) llvm-svn: 177156 | |||||
* | [sanitizer] Move GetTlsSize code from TSan to sanitizer_common. | Evgeniy Stepanov | 2013-03-13 | 1 | -0/+3 | |
| | | | | llvm-svn: 176938 | |||||
* | [Sanitizer] Add methods back() and pop_back() to InternalVector. Patch by ↵ | Alexey Samsonov | 2013-03-05 | 1 | -0/+8 | |
| | | | | | | Sergey Matveev llvm-svn: 176478 | |||||
* | [sanitizer] A low-level vector implementation to be used in leak checking ↵ | Kostya Serebryany | 2013-02-26 | 1 | -0/+52 | |
| | | | | | | code. Patch by Sergey Matveev llvm-svn: 176089 | |||||
* | [asan] a bit stricter lint for CHECK vs CHECK_XX (these CHECK_XX really help ↵ | Kostya Serebryany | 2013-02-26 | 1 | -1/+1 | |
| | | | | | | debugging!) llvm-svn: 176085 | |||||
* | [Sanitizer] use raw syscall instead of _exit() function on Linux | Alexey Samsonov | 2013-02-20 | 1 | -1/+0 | |
| | | | | llvm-svn: 175622 | |||||
* | [Sanitizer] Make temporary filename depend on user ID | Alexey Samsonov | 2013-02-18 | 1 | -0/+1 | |
| | | | | llvm-svn: 175424 | |||||
* | [ASan] Move functions using BitScan/clzl to sanitizer_common | Timur Iskhodzhanov | 2013-02-08 | 1 | -0/+53 | |
| | | | | llvm-svn: 174706 | |||||
* | [asan] print a short one-line report summary after the full report. ↵ | Kostya Serebryany | 2013-02-06 | 1 | -0/+7 | |
| | | | | | | Currently, works only if symbolization happens in-process. llvm-svn: 174501 | |||||
* | [Sanitizer] make internal_open have the same interface as libc version | Alexey Samsonov | 2013-02-01 | 1 | -0/+1 | |
| | | | | llvm-svn: 174187 | |||||
* | [sanitizer] make the error messages from sanitizer_common contain the actual ↵ | Kostya Serebryany | 2013-01-31 | 1 | -0/+2 | |
| | | | | | | tool name llvm-svn: 174059 | |||||
* | [asan/tsan] when unmapping a chunk of user memory, apply ↵ | Kostya Serebryany | 2012-12-27 | 1 | -0/+1 | |
| | | | | | | madvise(MADV_DONTNEED) to the corresponding chunk of shadow memory. Also update sanitizer_allocator64_testlib.cc llvm-svn: 171144 | |||||
* | [asan] more asan_allocator2 code: actually un/poison shadow on malloc/free | Kostya Serebryany | 2012-12-14 | 1 | -0/+3 | |
| | | | | llvm-svn: 170190 | |||||
* | [sanitizer] introduce MmapFixedOrDie and use it in SizeClassAllocator64 | Kostya Serebryany | 2012-12-13 | 1 | -0/+1 | |
| | | | | llvm-svn: 170099 | |||||
* | [asan] more code for asan_allocator2: basic Allocate/Deallocate code | Kostya Serebryany | 2012-12-11 | 1 | -0/+3 | |
| | | | | llvm-svn: 169864 | |||||
* | Add a libsanitizer API __sanitizer_sandbox_on_notify(void* reserved), which ↵ | Alexander Potapenko | 2012-12-10 | 1 | -0/+1 | |
| | | | | | | | | should be used by the client programs to notify the tools that sandboxing is about to be turned on. llvm-svn: 169732 | |||||
* | [sanitizer] implement SanitizerSetThreadName/SanitizerGetThreadName. Just ↵ | Kostya Serebryany | 2012-12-07 | 1 | -0/+7 | |
| | | | | | | for linux so far (using prctl(PR_GET_NAME)) llvm-svn: 169598 | |||||
* | [tsan] add MmapAlignedOrDie | Kostya Serebryany | 2012-12-06 | 1 | -0/+2 | |
| | | | | llvm-svn: 169474 | |||||
* | [tsan] remove unused InternalAllocBlock as part of larger refactoring | Kostya Serebryany | 2012-12-03 | 1 | -3/+0 | |
| | | | | llvm-svn: 169123 | |||||
* | [asan/tsan] get rid of kPageSize completely in favor of GetPageSizeCached(). ↵ | Kostya Serebryany | 2012-11-24 | 1 | -13/+1 | |
| | | | | | | This makes the code friendly to more platforms llvm-svn: 168537 | |||||
* | [asan] get rid of some of the uses of kPageSize. The intent is to get rid of ↵ | Kostya Serebryany | 2012-11-23 | 1 | -0/+3 | |
| | | | | | | it completely to support platforms with multiple possible page sizes. llvm-svn: 168517 | |||||
* | [asan] get rid of kPageSizeBits | Kostya Serebryany | 2012-11-21 | 1 | -6/+3 | |
| | | | | llvm-svn: 168426 | |||||
* | [asan/tsan] do not use __WORDSIZE macro, as it is glibc-private thing. ↵ | Kostya Serebryany | 2012-11-21 | 1 | -2/+2 | |
| | | | | | | Instead, define our own SANITIZER_WORDSIZE llvm-svn: 168424 | |||||
* | [asan] more support for powerpc, patch by Peter Bergner | Kostya Serebryany | 2012-11-20 | 1 | -1/+14 | |
| | | | | llvm-svn: 168356 | |||||
* | [Sanitizer] add sanity checks for communication with external symbolizer | Alexey Samsonov | 2012-11-09 | 1 | -0/+1 | |
| | | | | llvm-svn: 167617 | |||||
* | [Sanitizer] Add internal_isatty to sanitizer_libc and PrintsToTty to ↵ | Alexey Samsonov | 2012-11-02 | 1 | -0/+1 | |
| | | | | | | determine whether error reports are printed to terminal llvm-svn: 167298 | |||||
* | tsan: fix mac build | Dmitry Vyukov | 2012-10-02 | 1 | -1/+1 | |
| | | | | llvm-svn: 165004 | |||||
* | tsan: output tid's in reports | Dmitry Vyukov | 2012-10-02 | 1 | -0/+1 | |
| | | | | llvm-svn: 164998 | |||||
* | [Sanitizer] Hoist functions to get/set stack size and re-exec from ↵ | Alexey Samsonov | 2012-09-17 | 1 | -2/+6 | |
| | | | | | | memory-sanitizer branch to sanitizer_common llvm-svn: 164020 | |||||
* | [Sanitizer] Get rid of dependency between sanitizer_common and asan/tsan ↵ | Alexey Samsonov | 2012-09-11 | 1 | -2/+14 | |
| | | | | | | runtimes: implement tool-specific Die and CheckFailed functions via callbacks llvm-svn: 163603 | |||||
* | [Sanitizer] Remove implicit conversion of InternalScopedBuffer<T> to T* | Alexey Samsonov | 2012-09-05 | 1 | -1/+0 | |
| | | | | llvm-svn: 163197 |