Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(575)

Unified Diff: build/sanitizers/sanitizer_options.cc

Issue 2108713003: [sanitizers] stripping output path even if it is not named Release. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [sanitizers] stripping output path even if it is not named Release. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/sanitizers/sanitizer_options.cc
diff --git a/build/sanitizers/sanitizer_options.cc b/build/sanitizers/sanitizer_options.cc
index e01a17fddea323ac6892645758b8abb21f2f45a6..d25300d16efc838c00f0bf3396948ebc67fa81d5 100644
--- a/build/sanitizers/sanitizer_options.cc
+++ b/build/sanitizers/sanitizer_options.cc
@@ -51,7 +51,7 @@ void _sanitizer_options_link_helper() { }
// output routines) arguments.
// use_sigaltstack=1 - handle signals on an alternate signal stack. Useful
// for stack overflow detection.
-// strip_path_prefix=Release/../../ - prefixes up to and including this
+// strip_path_prefix=/../../ - prefixes up to and including this
// substring will be stripped from source file paths in symbolized reports
// fast_unwind_on_fatal=1 - use the fast (frame-pointer-based) stack unwinder
// to print error reports. V8 doesn't generate debug info for the JIT code,
@@ -66,19 +66,19 @@ void _sanitizer_options_link_helper() { }
const char kAsanDefaultOptions[] =
"legacy_pthread_cond=1 malloc_context_size=5 "
"symbolize=1 check_printf=1 use_sigaltstack=1 detect_leaks=0 "
- "strip_path_prefix=Release/../../ fast_unwind_on_fatal=1";
+ "strip_path_prefix=/../../ fast_unwind_on_fatal=1";
#else
// Default AddressSanitizer options for buildbots and non-official builds.
const char *kAsanDefaultOptions =
"symbolize=1 check_printf=1 use_sigaltstack=1 "
- "detect_leaks=0 strip_path_prefix=Release/../../ fast_unwind_on_fatal=1 "
+ "detect_leaks=0 strip_path_prefix=/../../ fast_unwind_on_fatal=1 "
"detect_stack_use_after_return=1 ";
#endif // GOOGLE_CHROME_BUILD
#elif defined(OS_MACOSX)
const char *kAsanDefaultOptions =
"check_printf=1 use_sigaltstack=1 "
- "strip_path_prefix=Release/../../ fast_unwind_on_fatal=1 "
+ "strip_path_prefix=/../../ fast_unwind_on_fatal=1 "
"detect_stack_use_after_return=1 detect_odr_violation=0 ";
static const char kNaClDefaultOptions[] = "handle_segv=0";
static const char kNaClFlag[] = "--type=nacl-loader";
@@ -120,12 +120,12 @@ SANITIZER_HOOK_ATTRIBUTE const char *__asan_default_suppressions() {
// print_suppressions=1 - print the list of matched suppressions.
// history_size=7 - make the history buffer proportional to 2^7 (the maximum
// value) to keep more stack traces.
-// strip_path_prefix=Release/../../ - prefixes up to and including this
+// strip_path_prefix=/../../ - prefixes up to and including this
// substring will be stripped from source file paths in symbolized reports.
const char kTsanDefaultOptions[] =
"detect_deadlocks=1 second_deadlock_stack=1 report_signal_unsafe=0 "
"report_thread_leaks=0 print_suppressions=1 history_size=7 "
- "strict_memcmp=0 strip_path_prefix=Release/../../ ";
+ "strict_memcmp=0 strip_path_prefix=/../../ ";
SANITIZER_HOOK_ATTRIBUTE const char *__tsan_default_options() {
return kTsanDefaultOptions;
@@ -143,10 +143,10 @@ SANITIZER_HOOK_ATTRIBUTE const char *__tsan_default_suppressions() {
// Default options for MemorySanitizer:
// intercept_memcmp=0 - do not detect uninitialized memory in memcmp() calls.
// Pending cleanup, see http://crbug.com/523428
-// strip_path_prefix=Release/../../ - prefixes up to and including this
+// strip_path_prefix=/../../ - prefixes up to and including this
// substring will be stripped from source file paths in symbolized reports.
const char kMsanDefaultOptions[] =
- "intercept_memcmp=0 strip_path_prefix=Release/../../ ";
+ "intercept_memcmp=0 strip_path_prefix=/../../ ";
SANITIZER_HOOK_ATTRIBUTE const char *__msan_default_options() {
return kMsanDefaultOptions;
@@ -157,10 +157,10 @@ SANITIZER_HOOK_ATTRIBUTE const char *__msan_default_options() {
#if defined(LEAK_SANITIZER)
// Default options for LeakSanitizer:
// print_suppressions=1 - print the list of matched suppressions.
-// strip_path_prefix=Release/../../ - prefixes up to and including this
+// strip_path_prefix=/../../ - prefixes up to and including this
// substring will be stripped from source file paths in symbolized reports.
const char kLsanDefaultOptions[] =
- "print_suppressions=1 strip_path_prefix=Release/../../ ";
+ "print_suppressions=1 strip_path_prefix=/../../ ";
SANITIZER_HOOK_ATTRIBUTE const char *__lsan_default_options() {
return kLsanDefaultOptions;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698