Set detect_leaks = false and halt_on_error = false by default.
authorIvan Baravy <i.baravy@samsung.com>
Mon, 27 Feb 2017 08:00:20 +0000 (11:00 +0300)
committerIvan Baravy <i.baravy@samsung.com>
Mon, 27 Feb 2017 08:00:20 +0000 (11:00 +0300)
Set detect_leaks and halt_on_error to false by default because mic
installs asan-build-env package too late.

libsanitizer/asan/asan_flags.cc
libsanitizer/asan/asan_flags.inc
libsanitizer/lsan/lsan.cc
libsanitizer/sanitizer_common/sanitizer_flags.inc

index 91d0917..db257c4 100644 (file)
@@ -59,7 +59,7 @@ void InitializeFlags() {
   {
     CommonFlags cf;
     cf.CopyFrom(*common_flags());
-    cf.detect_leaks = CAN_SANITIZE_LEAKS;
+    cf.detect_leaks = false;
     cf.external_symbolizer_path = GetEnv("ASAN_SYMBOLIZER_PATH");
     cf.malloc_context_size = kDefaultMallocContextSize;
     cf.intercept_tls_get_addr = true;
index 563b464..c94e22f 100644 (file)
@@ -133,6 +133,6 @@ ASAN_FLAG(int, detect_odr_violation, 2,
 ASAN_FLAG(bool, dump_instruction_bytes, false,
           "If true, dump 16 bytes starting at the instruction that caused SEGV")
 ASAN_FLAG(const char *, suppressions, "", "Suppressions file name.")
-ASAN_FLAG(bool, halt_on_error, true,
+ASAN_FLAG(bool, halt_on_error, false,
           "Crash the program after printing the first error report "
           "(WARNING: USE AT YOUR OWN RISK!)")
index 49b4432..d544dfa 100644 (file)
@@ -55,7 +55,7 @@ static void InitializeFlags() {
     cf.CopyFrom(*common_flags());
     cf.external_symbolizer_path = GetEnv("LSAN_SYMBOLIZER_PATH");
     cf.malloc_context_size = 30;
-    cf.detect_leaks = true;
+    cf.detect_leaks = false;
     cf.exitcode = 0;
     OverrideCommonFlags(cf);
   }
index 75f98ac..7d95196 100644 (file)
@@ -60,7 +60,7 @@ COMMON_FLAG(
 COMMON_FLAG(
     int, verbosity, 0,
     "Verbosity level (0 - silent, 1 - a bit of output, 2+ - more output).")
-COMMON_FLAG(bool, detect_leaks, true, "Enable memory leak detection.")
+COMMON_FLAG(bool, detect_leaks, false, "Enable memory leak detection.")
 COMMON_FLAG(
     bool, leak_check_at_exit, true,
     "Invoke leak checking in an atexit handler. Has no effect if "