Index: compiler-rt/trunk/lib/msan/msan_thread.cc =================================================================== --- compiler-rt/trunk/lib/msan/msan_thread.cc +++ compiler-rt/trunk/lib/msan/msan_thread.cc @@ -36,6 +36,7 @@ if (tls_begin_ != tls_end_) __msan_unpoison((void *)tls_begin_, tls_end_ - tls_begin_); DTLS *dtls = DTLS_Get(); + CHECK_NE(dtls, 0); for (uptr i = 0; i < dtls->dtv_size; ++i) __msan_unpoison((void *)(dtls->dtv[i].beg), dtls->dtv[i].size); }