summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-09-04[compiler-rt] Recurse into 'utils' directory in CMake build of compiler-rt, ↵Alexey Samsonov
enable build of llvm-symbolizer binary (currently for one target only) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163138 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-04[Sanitizer] llvm-symbolizer util: make it more conforming to LLVM code ↵Alexey Samsonov
style, and support fetching inlining info git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163133 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-02tsan: do not crash with obscure message if a user passes invalid arguments ↵Dmitry Vyukov
to malloc/free/memset/etc git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163092 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-02tsan: insert cfi directives into assembly (not fully working for now, though)Dmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163090 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-02tsan: more robust current thread stack restorationDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163089 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-01tsan: better diagnostics for mutex misuseDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163060 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31tsan: fix crash when users pass insane mutex addresses in dynamic annotationsDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163016 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31tsan: add "as if synchronized via sleep" featureDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163006 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31tsan: fix windows build (2)Dmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162997 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31tsan: fix windows build (1)Dmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162996 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31tsan: slightly optimize mutex unlock Dmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162995 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31tsan: more precise handling of atomic_store(memory_order_release)Dmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162994 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31tsan: improve stack depotDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162993 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31[tsan] locate the auxilary space for tsan's Allocator64 after the main ↵Kostya Serebryany
region, not before. This simplifies the shadow mappings git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162991 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31[Sanitizer] fix overloaded operator errorAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162990 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31[compiler-rt] fixup for r162988 - remove accidentally commited fileAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162989 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31[compiler-rt] Move draft code for llvm-symbolizer to ↵Alexey Samsonov
compiler-rt/utils/llvm-symbolizer after chandlerc's suggestion git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162988 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31[Sanitizer] Remove some calls to libc malloc from symbolizerAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162987 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31[Sanitizer] Resolve fixme: break dependency of sanitizer_common tests on ↵Alexey Samsonov
TSan RTL git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162984 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31[Sanitizer] Make lint checking a standalone script in sanitizer_commonAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162982 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31[Sanitizer] Remove lint checkers from our old makefiles in favor of buildbotAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162981 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31[TSan] Fix style warinings in output testAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162980 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-30Whitespace/lintAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162909 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-30tsan: speed up allocator64 GetBlockBegin()Dmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162908 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-30tsan: simplify TSAN_HISTORY_SIZE codeDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162905 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-30tsan: use stack depot to describe heap blocksDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162902 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-30asan/tsan: first version of "stack depot"Dmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162897 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-29[ASan] fix flakiness of Linux-specific clone_test: waitpid should better be ↵Alexey Samsonov
provided with __WCLONE option, otherwise it didn't wait for the subprocess, returned -1, and we went crushing the subprocess stack git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162842 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-29For invalid pointers passed to free_common check whether they are actually ↵Alexander Potapenko
skewed to hold an additional CFAllocatorRef. If so, fix the pointer and pass it to asan_free. See http://code.google.com/p/address-sanitizer/issues/detail?id=70 for more background. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162839 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-29[asan/tsan] use InternalScopedBuffer instead of stack arrays. Use mmap ↵Kostya Serebryany
inseted of InternalAlloc in InternalScopedBuffer git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162834 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-29[tsan] fix tsan's Makefile.old -- our build bot still uses it (hopefully, ↵Kostya Serebryany
will soon migrate to cmake completely) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162832 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-29[asan] fix asan's Makefile.old -- our build bot still uses it (hopefully, ↵Kostya Serebryany
will soon migrate to cmake completely) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162831 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-29Relocate the external headers provided by ASan and the common sanitizerChandler Carruth
library. These headers are intended to be available to user code when built with AddressSanitizer (or one of the other sanitizer's in the future) to interface with the runtime library. As such, they form stable external C interfaces, and the headers shouldn't be located within the implementation. I've pulled them out into what seem like fairly obvious locations and names, but I'm wide open to further bikeshedding of these names and locations. I've updated the code and the build system to cope with the new locations, both CMake and Makefile. Please let me know if this breaks anyone's build. The eventual goal is to install these headers along side the Clang builtin headers when we build the ASan runtime and install it. My current thinking is to locate them at: <prefix>/lib/clang/X.Y/include/sanitizer/common_interface_defs.h <prefix>/lib/clang/X.Y/include/sanitizer/asan_interface.h <prefix>/lib/clang/X.Y/include/sanitizer/... But maybe others have different suggestions? Fixing the style of the #include between these headers at least unblocks experimentation with installing them as they now should work when installed in these locations. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162822 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-29Some flag cleanup for the sanitizer runtimes.Chandler Carruth
This hoists most of the CFLAGS into a common variable. It also adds detection for -Wno-c99-extensions and uses it to silence a pile of warnings. Finally, it switches to the proper flag -rdynamic. With this, the cmake build is warning free on my bootstrap Linux build. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162809 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-28[asan] one more fix for windows buildKostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162762 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-28[asan] fix the cmake build (hopefully)Kostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162760 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-28[asan] actually doing 'svn add' helpsKostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162759 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-28[asan] fix Windows buildKostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162758 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-28[asan] actually move StackTrace to sanitizer_commonKostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162757 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-28[asan] even more refactoring to move StackTrace to sanitizer_commonKostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162754 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-28[asan] more refactoring to move StackTrace to sanitizer_commonKostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162752 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-28[ASan] CMake build: share more compile flags between instrumented and ↵Alexey Samsonov
non-instrumented tests git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162750 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-28[asan] some renaming before we move StackTrace into sanitizer_common (part 2)Kostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162748 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-28[asan] some renaming before we move StackTrace into sanitizer_commonKostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162747 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-28[asan] get rid of AsanPrintf in favor of Printf from sanitizer_commonKostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162746 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-28[asan] improve SetErrorReportCallbackTest to actually catch missing ↵Kostya Serebryany
functionality in __asan_set_error_report_callback git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162745 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-28[Sanitizer] Allow to create stub MemoryMappingLayout on WindowsAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162742 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-28[Sanitizer] One more method stub for WindowsAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162739 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-27[Sanitizer] align allocation sizes in low level allocatorAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162676 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-27CMake build rules for ASan/Android runtime.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162675 91177308-0d34-0410-b5e6-96231b3b80d8