commit | 547f9dd4c0302fe9a571e1811a4a92dd82ef89f6 | [log] [tgz] |
---|---|---|
author | Kostya Serebryany <kcc@google.com> | Fri Oct 18 17:46:43 2013 +0000 |
committer | Kostya Serebryany <kcc@google.com> | Fri Oct 18 17:46:43 2013 +0000 |
tree | 774dcb37659bdaae4447f95e6bd52bcb29cea57d | |
parent | 1fe68b87dcd9be36b5b4d35e74cc5b0666500ec4 [diff] |
[asan] fix stack trace printing on Mac git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192990 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/asan/asan_stack.cc b/lib/asan/asan_stack.cc index aec7581..cbc151c 100644 --- a/lib/asan/asan_stack.cc +++ b/lib/asan/asan_stack.cc
@@ -25,6 +25,10 @@ } void PrintStack(const uptr *trace, uptr size) { + if (!trace) { + Printf("<empty stack>\n"); + return; + } StackTrace::PrintStack(trace, size, common_flags()->symbolize, MaybeCallAsanSymbolize); }