[compiler-rt] r192990 - [asan] fix stack trace printing on Mac
Kostya Serebryany
kcc at google.com
Fri Oct 18 10:46:43 PDT 2013
Author: kcc
Date: Fri Oct 18 12:46:43 2013
New Revision: 192990
URL: http://llvm.org/viewvc/llvm-project?rev=192990&view=rev
Log:
[asan] fix stack trace printing on Mac
Modified:
compiler-rt/trunk/lib/asan/asan_stack.cc
Modified: compiler-rt/trunk/lib/asan/asan_stack.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_stack.cc?rev=192990&r1=192989&r2=192990&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_stack.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_stack.cc Fri Oct 18 12:46:43 2013
@@ -25,6 +25,10 @@ static bool MaybeCallAsanSymbolize(const
}
void PrintStack(const uptr *trace, uptr size) {
+ if (!trace) {
+ Printf("<empty stack>\n");
+ return;
+ }
StackTrace::PrintStack(trace, size, common_flags()->symbolize,
MaybeCallAsanSymbolize);
}
More information about the llvm-commits
mailing list