[ASan] cmake cleanup: make tab/space padding in CMakeLists consistent, silence/fix some pedantic warnings

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159514 91177308-0d34-0410-b5e6-96231b3b80d8
tsan/asan: add mutex to 64-bit allocator


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159516 91177308-0d34-0410-b5e6-96231b3b80d8
asan/tsan: improve SpinMutex


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159518 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] use threadsafe death tests in TSan unit tests

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159533 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Extend a symbolizer code. Implemented for Linux only. Use 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.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159652 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] fixup for r159652

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159655 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Minor fix in symbolizer output.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159709 91177308-0d34-0410-b5e6-96231b3b80d8
Do not call malloc_zone_from_ptr() for the pointers passed to mz_size() and 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.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159713 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] Improve output tests: allow reports to contain file:line:column instead of file:line

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159714 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] add a new option 'use_internal_symbolizer' that allows to choose 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.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159730 91177308-0d34-0410-b5e6-96231b3b80d8
[tsan] reg test for tsan issue #3

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159737 91177308-0d34-0410-b5e6-96231b3b80d8
tsan/asan: kill STL
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).



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159738 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Add a default constructor for DWARFSection to initialize it with zeros.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159748 91177308-0d34-0410-b5e6-96231b3b80d8
Fix http://code.google.com/p/address-sanitizer/issues/detail?id=87 by making sure we replace the default CFAllocator only after __CFInitialize has been called.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159749 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: Go language support


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159754 91177308-0d34-0410-b5e6-96231b3b80d8
[tsan] add intrusive list to be used in tsan allocator, etc

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159812 91177308-0d34-0410-b5e6-96231b3b80d8
[tsan] use intrusive list in the new tsan allocator

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159814 91177308-0d34-0410-b5e6-96231b3b80d8
Do not check for __CFRuntimeClassTableSize on non-10.6 systems, where this symbol is private.
This change may cause http://code.google.com/p/address-sanitizer/issues/detail?id=87 to re-appear on Lion.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159819 91177308-0d34-0410-b5e6-96231b3b80d8