diff options
author | Denis Khalikov <d.khalikov@partner.samsung.com> | 2017-09-26 12:34:21 +0300 |
---|---|---|
committer | Dongkyun Son <dongkyun.s@samsung.com> | 2017-12-07 04:53:43 +0000 |
commit | 5ab7c9b9fa527a855d67eb182268553bbfe7d9b8 (patch) | |
tree | e53bbf062feaeda2a4eedd5fc62dcd86afbd6d36 | |
parent | fdd7f5593ea3dbd017aa0c6bf528e976df8316f7 (diff) | |
download | linaro-gcc-5ab7c9b9fa527a855d67eb182268553bbfe7d9b8.tar.gz linaro-gcc-5ab7c9b9fa527a855d67eb182268553bbfe7d9b8.tar.bz2 linaro-gcc-5ab7c9b9fa527a855d67eb182268553bbfe7d9b8.zip |
[TSan] Fix TSan initializaion.
TSan uses procfs for every ThreadContext.
We should ensure that procfs is mounted, to
avoid an error when TSan is initializing.
Change-Id: I8e9a3ec6f8920c95b5246bda56f5c55ef9fffb0e
-rw-r--r-- | libsanitizer/tsan/tsan_rtl.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libsanitizer/tsan/tsan_rtl.cc b/libsanitizer/tsan/tsan_rtl.cc index 0a40e3c9a2e..dd679f38f50 100644 --- a/libsanitizer/tsan/tsan_rtl.cc +++ b/libsanitizer/tsan/tsan_rtl.cc @@ -336,6 +336,7 @@ void Initialize(ThreadState *thr) { ctx = new(ctx_placeholder) Context; const char *options = GetEnv(SANITIZER_GO ? "GORACE" : "TSAN_OPTIONS"); + MaybeMountProcFS(); CacheBinaryName(); InitializeFlags(&ctx->flags, options); AvoidCVE_2016_2143(); |