[gjs/esm/static-imports: 1/9] maint: Work around bug in address sanitizer




commit 4ce9cd78d546eba73d843ef3748640b8bc677430
Author: Philip Chimento <philip chimento gmail com>
Date:   Thu Feb 4 15:35:01 2021 -0800

    maint: Work around bug in address sanitizer
    
    It appears that under particular circumstances, ASan will crash on exit
    due to a bug where it mis-detects the glibc version.
    
    See: https://github.com/google/sanitizers/issues/1322

 meson.build | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/meson.build b/meson.build
index b6735cb1..b3ac224d 100644
--- a/meson.build
+++ b/meson.build
@@ -599,6 +599,8 @@ tests_environment.prepend('GI_TYPELIB_PATH', meson.current_build_dir(),
 tests_environment.prepend('LD_LIBRARY_PATH', meson.current_build_dir(),
     js_tests_builddir)
 tests_environment.set('G_FILENAME_ENCODING', 'latin1')
+# Workaround for https://github.com/google/sanitizers/issues/1322
+tests_environment.set('ASAN_OPTIONS', 'intercept_tls_get_addr=0')
 tests_environment.set('LSAN_OPTIONS',
     'fast_unwind_on_malloc=0,exitcode=23,suppressions=@0@'.format(
         meson.current_source_dir() / 'installed-tests' / 'extra' / 'lsan.supp'))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]