From c43e040c7c38bf4dfd4f755a2cf3bff6ccba1f2a Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Mon, 1 May 2023 17:37:44 -0500 Subject: [PATCH] Fix spurious ASAN __cxa_thread_atexit_impl() leaks Set use_tls back to its default of 1. This is required to work around an ASAN/LSAN virtualization bug but seems to be behind the random __cxa_thread_atexit_impl() leaks? --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 463112e48..7921ac406 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -118,7 +118,8 @@ jobs: # which seems to be an issue with TLS support in newer glibc versions under virtualized # environments. Follow https://github.com/google/sanitizers/issues/1342 and # https://github.com/google/sanitizers/issues/1409 to track this issue. - LSAN_OPTIONS: verbosity=0:log_threads=0:use_tls=0 + # UPDATE: this can cause spurious leak reports for __cxa_thread_atexit_impl() under glibc. + LSAN_OPTIONS: verbosity=0:log_threads=0:use_tls=1 run: | make test