summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2015-09-01 21:36:18 +0000
committerKostya Serebryany <kcc@google.com>2015-09-01 21:36:18 +0000
commit94dd76aefa00bd2b3b4981695f6f962600c1c829 (patch)
treeae21602cf2accfaf6ba65e81d1276d5c6fe7e579 /compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc
parentb8ed364d8a64e71520c07a095d1c6a6e8fbce1dd (diff)
downloadbcm5719-llvm-94dd76aefa00bd2b3b4981695f6f962600c1c829.tar.gz
bcm5719-llvm-94dd76aefa00bd2b3b4981695f6f962600c1c829.zip
[tsan] workaround for a crash in deadlock detector, bug https://github.com/google/sanitizers/issues/594
llvm-svn: 246592
Diffstat (limited to 'compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc')
-rw-r--r--compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc b/compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc
index 09180d88a6f..62ab7aa6b2b 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc
+++ b/compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cc
@@ -472,7 +472,7 @@ void ReportDeadlock(ThreadState *thr, uptr pc, DDReport *r) {
for (int i = 0; i < r->n; i++) {
for (int j = 0; j < (flags()->second_deadlock_stack ? 2 : 1); j++) {
u32 stk = r->loop[i].stk[j];
- if (stk) {
+ if (stk && stk != 0xffffffff) {
rep.AddStack(StackDepotGet(stk), true);
} else {
// Sometimes we fail to extract the stack trace (FIXME: investigate),
OpenPOWER on IntegriCloud