[ASan] Fix allow_user_segv.cc on Darwin (32-bit build required a SIGBUS handler instead of the SIGSEGV one)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182080 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: comment out debug output in test


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182087 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: introduce recursive mutex lock/unlock  java interface
this is required to handle Object.Wait()


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182088 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: remove "printing report from signal handler. Can crash or hang" output
it was added to debug mysterious hangs, but it does not seem to happen anymore
now it only clutter up output


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182089 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Unpoison dlpi_name in dl_iterate_phdr interceptor.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182093 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Fix gcc build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182094 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Make the regression test for time(NULL) Linux-specific, as it crashes on Darwin (and the problem used to occur on Linux).
Do not use zero-based shadow for the time() test.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182107 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Fix build with Android NDK r8e.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182110 91177308-0d34-0410-b5e6-96231b3b80d8
[nolibc] Begin moving sanitizer_common's libc-dependent code to a separate 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.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182118 91177308-0d34-0410-b5e6-96231b3b80d8
[nolibc] Move all platforms to internal_getpid.

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.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182132 91177308-0d34-0410-b5e6-96231b3b80d8
Fix the UBSan CMake build broken in r182118

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182177 91177308-0d34-0410-b5e6-96231b3b80d8
Replace CHECK(a == b); with CHECK_EQ(a, b); throughout asan_allocator2.cc

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182198 91177308-0d34-0410-b5e6-96231b3b80d8
Avoid rebuilding the RTSanitizerCommon objects when building clang_rt.san.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182218 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] factor out ByteMap from SizeClassAllocator32 so that it can be later replaced with a more memory-efficient implementation on 64-bit.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182234 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Remove an unused ChunkBase field

Also fix wrong alignment maths and an outdated comment

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182238 91177308-0d34-0410-b5e6-96231b3b80d8
[lsan] Allocator for standalone LSan.

This is the first in a series of CLs implementing LeakSanitizer.
http://clang.llvm.org/docs/LeakSanitizer.html

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182245 91177308-0d34-0410-b5e6-96231b3b80d8
[lsan] Thread registry for standalone LSan.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182246 91177308-0d34-0410-b5e6-96231b3b80d8
[lsan] Interceptors for standalone LSan.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182247 91177308-0d34-0410-b5e6-96231b3b80d8
[lsan] Standalone LSan initialization.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182248 91177308-0d34-0410-b5e6-96231b3b80d8
[lsan] Common leak checking module.

Leak checking functionality which will be shared between
LSan/ASan/MSan.

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