[ASan] make ASan assume ASAN_OPTIONS=symbolize=1 if ASAN_EXTERNAL_SYMBOLIZER is defined

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177036 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Write a slightly better implementation of GetEnv() function on Windows

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177051 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Intercept __strdup, strndup, __strndup.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177052 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] fix compilation for Windows

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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177056 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Options for switching between fast and cfi unwinders in run time.

Does not change default behavior.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177057 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] turn off checking initialization order in ASan runtime by default. Instead, it should be turned on by default in the compiler

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177058 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Fix a typo in test.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177059 91177308-0d34-0410-b5e6-96231b3b80d8
[libsanitizer] Fixed incorrect handling of pre-existing threads in ThreadLister test.
Also, extended the test to check that ThreadLister::Reset() works as intended.

Patch by Sergey Matveev (earthdok@google.com)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177060 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] remove -fsanitize=init-order from lit tests as now it's implied by -fsanitize=address

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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177065 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Add changes missing from r177065.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177067 91177308-0d34-0410-b5e6-96231b3b80d8
[libsanitizer] fixed a bug in ThreadLister tests where we forgot to terminate one thread

Patch by Sergey Matveev (earthdok@google.com)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177068 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] remove one redundant malloc stress test, unify the usage of ASAN_LOW_MEMORY macro in tests, slightly reduce test memory usage (all to make 32-bit runs consume less RAM)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177069 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Build sanitizer_common with -fno-rtti

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177070 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] No dirent64 on Android.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177071 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Add default constructor for BlockingMutex

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177072 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Add generic ThreadRegistry class for sanitizer runtimes. This class holds basic thread bookkeeping logic and allows specific sanitizer runtimes to create thread contexts and mark threads as created/running/joined etc. The class is based on the way we currently store thread contexts in TSan.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177074 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Fix compiler warnings and style issues in sanitizer_common tests. Use -Werror=sign-compare when building them.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177077 91177308-0d34-0410-b5e6-96231b3b80d8
Fix a virtual destructor warning.

Patch by Manuel Klimek!


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