diff --git a/compiler-rt/lib/asan/asan_report.cpp b/compiler-rt/lib/asan/asan_report.cpp index e515f20548c00..8b22aebe7cafc 100644 --- a/compiler-rt/lib/asan/asan_report.cpp +++ b/compiler-rt/lib/asan/asan_report.cpp @@ -149,7 +149,9 @@ class ScopedInErrorReport { // 2. Subsequent error reporting avoids nested lock acquisition patterns. // 3. Eliminates the lock order inversion risk between libdl and ASan's // thread registry. +#if !SANITIZER_SYMBOLIZER_MARKUP Symbolizer::GetOrInit()->GetRefreshedListOfModules(); +#endif // Make sure the registry and sanitizer report mutexes are locked while // we're printing an error report.