[compiler-rt] r174956 - [MSan] symbolize correct PC when printing Summary message

Alexey Samsonov samsonov at google.com
Tue Feb 12 02:46:39 PST 2013


Author: samsonov
Date: Tue Feb 12 04:46:39 2013
New Revision: 174956

URL: http://llvm.org/viewvc/llvm-project?rev=174956&view=rev
Log:
[MSan] symbolize correct PC when printing Summary message

Modified:
    compiler-rt/trunk/lib/msan/msan_report.cc

Modified: compiler-rt/trunk/lib/msan/msan_report.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/msan_report.cc?rev=174956&r1=174955&r2=174956&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/msan_report.cc (original)
+++ compiler-rt/trunk/lib/msan/msan_report.cc Tue Feb 12 04:46:39 2013
@@ -71,7 +71,8 @@ static void DescribeOrigin(u32 origin) {
 static void ReportSummary(const char *error_type, StackTrace *stack) {
   if (!stack->size || !IsSymbolizerAvailable()) return;
   AddressInfo ai;
-  SymbolizeCode(stack->trace[0], &ai, 1);
+  uptr pc = StackTrace::GetPreviousInstructionPc(stack->trace[0]);
+  SymbolizeCode(pc, &ai, 1);
   ReportErrorSummary(error_type,
                      StripPathPrefix(ai.file, flags()->strip_path_prefix),
                      ai.line, ai.function);





More information about the llvm-commits mailing list