summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_common.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common.cc b/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
index c31f4e3a631..e5ae1a9f15f 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
@@ -368,8 +368,9 @@ ScopedErrorReportLock::ScopedErrorReportLock(u32 current_tid) {
// Can't use Report() here because of potential deadlocks in nested
// signal handlers.
- static const char msg[] =
- "AddressSanitizer: nested bug in the same thread, aborting.\n";
+ CatastrophicErrorWrite(SanitizerToolName,
+ internal_strlen(SanitizerToolName));
+ static const char msg[] = ": nested bug in the same thread, aborting.\n";
CatastrophicErrorWrite(msg, sizeof(msg) - 1);
internal__exit(common_flags()->exitcode);
OpenPOWER on IntegriCloud