Revert "[LSAN][HWASAN] Turn on leak sanitizer in HWASAN for Linux"
authorVitaly Buka <vitalybuka@google.com>
Fri, 17 Mar 2023 02:16:16 +0000 (19:16 -0700)
committerVitaly Buka <vitalybuka@google.com>
Fri, 17 Mar 2023 02:16:16 +0000 (19:16 -0700)
Breaks x86_64 qemu tests.

This reverts commit 6c756486d44914bac6fb20513b8c41f1a5726c4c.

compiler-rt/lib/hwasan/hwasan.cpp

index 0a5999c..662cfb4 100644 (file)
@@ -86,9 +86,8 @@ static void InitializeFlags() {
     cf.clear_shadow_mmap_threshold = 4096 * (SANITIZER_ANDROID ? 2 : 8);
     // Sigtrap is used in error reporting.
     cf.handle_sigtrap = kHandleSignalExclusive;
-    // For now only tested on Linux. Other plantforms can be turned on as they
-    // become ready.
-    cf.detect_leaks = cf.detect_leaks && SANITIZER_LINUX && !SANITIZER_ANDROID;
+    // FIXME: enable once all false positives have been fixed.
+    cf.detect_leaks = false;
 
 #if SANITIZER_ANDROID
     // Let platform handle other signals. It is better at reporting them then we