Set detect_leaks = false and halt_on_error = false by default. 29/81429/3
authorMaxim Ostapenko <m.ostapenko@samsung.com>
Thu, 14 Jul 2016 14:44:53 +0000 (17:44 +0300)
committerMaxim Ostapenko <m.ostapenko@samsung.com>
Wed, 27 Jul 2016 07:26:14 +0000 (10:26 +0300)
Set detect_leaks and halt_on_error to false by default because mic
installs asan-build-env package too late.

Change-Id: I69d55fdc0b3761d59a625e4cd221e41dc2a09fb3
Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
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 6e7429c..c39d8cf 100644 (file)
@@ -41,7 +41,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 = 23;
     OverrideCommonFlags(cf);
   }
index 360dabe..517bc37 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 "