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?
This commit is contained in:
Mahmoud Al-Qudsi 2023-05-01 17:37:44 -05:00
parent cb368f70ee
commit c43e040c7c

View file

@ -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