projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a3488e
)
tsan: explictly say when we fail to restore a stack trace
author
Dmitry Vyukov
<dvyukov@google.com>
Wed, 21 Nov 2012 11:44:20 +0000
(11:44 +0000)
committer
Dmitry Vyukov
<dvyukov@google.com>
Wed, 21 Nov 2012 11:44:20 +0000
(11:44 +0000)
llvm-svn: 168423
compiler-rt/lib/tsan/rtl/tsan_report.cc
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/tsan/rtl/tsan_report.cc
b/compiler-rt/lib/tsan/rtl/tsan_report.cc
index
b3ed87e
..
21f1c1e
100644
(file)
--- a/
compiler-rt/lib/tsan/rtl/tsan_report.cc
+++ b/
compiler-rt/lib/tsan/rtl/tsan_report.cc
@@
-50,6
+50,10
@@
static void PrintHeader(ReportType typ) {
}
void PrintStack(const ReportStack *ent) {
+ if (ent == 0) {
+ Printf(" [failed to restore the stack]\n");
+ return;
+ }
for (int i = 0; ent; ent = ent->next, i++) {
Printf(" #%d %s %s:%d", i, ent->func, ent->file, ent->line);
if (ent->col)