blob: e79789faf4247a5dc9562498bba9d0ed39f2ee0f [file] [log] [blame]
By default, the ASAN message goes to STDERR. This causes problem if we cannot
log the ASAN message, and we can not figure out why the ASAN check fails.
This change set the ASAN message goes to /va/log/asan${pid} by default.
--- a/compiler-rt/lib/sanitizer_common/
+++ b/compiler-rt/lib/sanitizer_common/
@@ -48,7 +48,7 @@ COMMON_FLAG(bool, handle_ioctl, false, "Intercept and handle ioctl requests.")
COMMON_FLAG(int, malloc_context_size, 1,
"Max number of stack frames kept for each allocation/deallocation.")
- const char *, log_path, "stderr",
+ const char *, log_path, "/var/log/asan/asan",
"Write logs to \"\". The special values are \"stdout\" and "
"\"stderr\". The default is \"stderr\".")