[compiler-rt] r179274 - [ASan] Symbolize correct address when printint error summary
Alexey Samsonov
samsonov at google.com
Thu Apr 11 04:45:04 PDT 2013
Author: samsonov
Date: Thu Apr 11 06:45:04 2013
New Revision: 179274
URL: http://llvm.org/viewvc/llvm-project?rev=179274&view=rev
Log:
[ASan] Symbolize correct address when printint error summary
Modified:
compiler-rt/trunk/lib/asan/asan_report.cc
Modified: compiler-rt/trunk/lib/asan/asan_report.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_report.cc?rev=179274&r1=179273&r2=179274&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_report.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_report.cc Thu Apr 11 06:45:04 2013
@@ -499,7 +499,8 @@ static void ReportSummary(const char *er
AddressInfo ai;
// Currently, we include the first stack frame into the report summary.
// Maybe sometimes we need to choose another frame (e.g. skip memcpy/etc).
- 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