[TSan] Fix a bug in libcxx-tsan build conditions spotted by Ryuta Suzuki

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212749 91177308-0d34-0410-b5e6-96231b3b80d8
Fix expected column numbers in two tests.

This is a minor fix to two tsan tests that were expecting the wrong
column information. Now that clang emits column information by default
in its debugging output, the tests had started failing.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212779 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Make one test case less brittle.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212798 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Use real memset/memcpy/memmove in interceptors.

Our versions are not exactly as fast as libc's, and
MSan uses them heavily (even compared to other sanitizers).

This will break if libc version of mem* are instrumented,
but they never are, and if they are, we should be able
to fix it on libc side.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212799 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] A comment for the chained-origin-depot hash function.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212801 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win] Catch NULL derefs and page faults

Reviewed at http://reviews.llvm.org/D4471

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212807 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Print register values in a consistent way

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212809 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win] Don't apply dllexport to __asan_init in the DLL thunk

This fixes '___asan_init_v4 already defined' errors when linking some of Chromium DLLs.
Looks like one of the DLL is using a .lib produced while linking another DLL and it exploded after r212699.
I'm trying to come up with a small testcase...

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212815 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] fix x32 build, patch by H.J. Lu

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212823 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Improve ODR-violation error reports.

Demangle names of involved globals. Print a more consistent summary line.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212857 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Collect unmangled names of global variables in Clang to print them in error reports.

Currently ASan instrumentation pass creates a string with global name
for each instrumented global (to include global names in the error report). Global
name is already mangled at this point, and we may not be able to demangle it
at runtime (e.g. there is no __cxa_demangle on Android).

Instead, create a string with fully qualified global name in Clang, and pass it
to ASan instrumentation pass in llvm.asan.globals metadata. If there is no metadata
for some global, ASan will use the original algorithm.

This fixes https://code.google.com/p/address-sanitizer/issues/detail?id=264.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212872 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Remove XFAIL:android from 2 newly passing tests.

Fixed in r212872.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212926 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Stop demangling function name in the stack origin report.

This was done by calling __cxa_demangle directly, which is bad
when c++abi library is instrumented. The following line always
contains the demangled name (when running with a symbolizer) anyway.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212929 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Intercept getpass.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212937 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Fix a couple of nits in NULL deref tests

This is a follow-up to r212807

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212943 91177308-0d34-0410-b5e6-96231b3b80d8
[tsan] add a currently-failing test with a must-deadlock

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212944 91177308-0d34-0410-b5e6-96231b3b80d8
[tsan] add a printf to a test

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212951 91177308-0d34-0410-b5e6-96231b3b80d8
[tsan] honour XFAIL in tsan/test_output.sh

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212952 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win] Add a test for the case when dll_thunk is linked twice to the same DLL

This is a test case for r212815.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212959 91177308-0d34-0410-b5e6-96231b3b80d8
Add support for intercepting thunks of the form

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