From b4d646fed23d1207861697c43e75d8e14ece32e0 Mon Sep 17 00:00:00 2001 From: Keno Fischer Date: Fri, 1 Oct 2021 12:18:06 -0400 Subject: [PATCH] lbt: Also prevent RTLD_DEEPBIND with TSAN (#42446) --- cli/loader_exe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/loader_exe.c b/cli/loader_exe.c index d1269de1ec5fd5..983cef02fa0374 100644 --- a/cli/loader_exe.c +++ b/cli/loader_exe.c @@ -36,8 +36,8 @@ int main(int argc, char * argv[]) { #endif -#ifdef _COMPILER_ASAN_ENABLED_ - // ASAN does not support RTLD_DEEPBIND +#if defined(_COMPILER_ASAN_ENABLED_) || defined(_COMPILER_TSAN_ENABLED_) + // ASAN/TSAN do not support RTLD_DEEPBIND // https://github.com/google/sanitizers/issues/611 putenv("LBT_USE_RTLD_DEEPBIND=0"); #endif