tsan: disable abort_on_error for Go

It does not work as expected.
Go runtime handles SIGABRT and crashes with a loud message.

llvm-svn: 252892
This commit is contained in:
Dmitry Vyukov 2015-11-12 14:03:20 +00:00
parent 8e99e97f2a
commit bab2216dbb
1 changed files with 5 additions and 1 deletions

View File

@ -61,7 +61,11 @@ void InitializeFlags(Flags *f, const char *env) {
CommonFlags cf;
cf.CopyFrom(*common_flags());
cf.allow_addr2line = true;
#ifndef SANITIZER_GO
#ifdef SANITIZER_GO
// Does not work as expected for Go: runtime handles SIGABRT and crashes.
cf.abort_on_error = false;
// Go does not have mutexes.
#else
cf.detect_deadlocks = true;
#endif
cf.print_suppressions = false;