[asan] enable use_sigaltstack by default (this will provide verbose reports on stack-overflow instead of silently crashing with SEGV)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@207099 91177308-0d34-0410-b5e6-96231b3b80d8
Add DLL thunks for recently-added memcpy, memset and memmove ASan intrinsics

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@207113 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: stop background thread when sandbox is enabled
Fixes https://code.google.com/p/thread-sanitizer/issues/detail?id=56



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@207114 91177308-0d34-0410-b5e6-96231b3b80d8
Add user-defined callback on write() calls.

Add dfsan_set_write_callback(), which sets a callback to be invoked when
a write() call is invoked within DFSan instrumented code.

Patch by Sam Kerner!

Differential Revision: http://reviews.llvm.org/D3268

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@207131 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] wordexp isn't available on iOS

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@207140 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: better reports for "double lock of a mutex"
+ fixes crashes due to races on symbolizer, see:
https://code.google.com/p/thread-sanitizer/issues/detail?id=55



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@207204 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: add new test for commit 207204 (forget to add new file)



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@207205 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: better report for bad mutex unlocks
+ fixes crashes due to races on symbolizer, see
https://code.google.com/p/thread-sanitizer/issues/detail?id=55



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@207206 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix tests
failure:
http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-centos-6.5/builds/3747/steps/test/logs/stdio



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@207207 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: improve "read unlock of a write locked mutex" report



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@207208 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: better reports for "read lock of a write locked mutex"



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@207209 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] implement an experimental detector of ODR violations. Not tested yet outside of a tiny test, may need tuning.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@207210 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: better reports for "unlock of an unlocked mutex"



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