[ASan] Refine diagnoses messages
authorJulian Lettner <jlettner@apple.com>
Wed, 16 Oct 2019 00:39:09 +0000 (00:39 +0000)
committerJulian Lettner <jlettner@apple.com>
Wed, 16 Oct 2019 00:39:09 +0000 (00:39 +0000)
The provided PC is not reliable in every case, so don't suggest
something that does not make sense.

llvm-svn: 374959

compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_report.cpp

index fe9ea1a..58ee0f9 100644 (file)
@@ -210,8 +210,7 @@ static void ReportDeadlySignalImpl(const SignalContext &sig, u32 tid,
     Report("The signal is caused by a %s memory access.\n", access_type);
     if (!sig.is_true_faulting_addr)
       Report("Hint: this fault was caused by a dereference of a high value "
-             "address (see registers below).  Dissassemble the provided pc "
-             "to learn which register value was used.\n");
+             "address (see register values below).\n");
     else if (sig.addr < GetPageSizeCached())
       Report("Hint: address points to the zero page.\n");
   }