Skip to content

Commit d924f90

Browse files
committed
try
1 parent 3ba2861 commit d924f90

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ DTLS::DTV *DTLS_on_tls_get_addr(void *arg_void, void *res,
151151
// This may happen inside the DTOR of main thread, so just ignore it.
152152
tls_size = 0;
153153
}
154-
if (tls_size) {
155-
CHECK_LE(tls_beg, reinterpret_cast<uptr>(res) - kDtvOffset);
156-
CHECK_LT(reinterpret_cast<uptr>(res) - kDtvOffset, tls_beg + tls_size);
157-
}
154+
// if (tls_size) {
155+
// CHECK_LE(tls_beg, reinterpret_cast<uptr>(res) - kDtvOffset);
156+
// CHECK_LT(reinterpret_cast<uptr>(res) - kDtvOffset, tls_beg + tls_size);
157+
// }
158158
dtv->beg = tls_beg;
159159
dtv->size = tls_size;
160160
return dtv;

compiler-rt/test/asan/TestCases/Linux/stress_dtls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// RUN: %clangxx_asan -x c -DSO_NAME=f1 %s -shared -o %t-f1.so -fPIC
1212
// RUN: %clangxx_asan -x c -DSO_NAME=f2 %s -shared -o %t-f2.so -fPIC
1313
// RUN: %clangxx_asan %s -ldl -pthread -o %t
14-
// RUN: %env_asan_opts=verbosity=2 %run %t 0 3
14+
// RUN: %env_asan_opts=verbosity=2 %run not %t 0 3
1515
// RUN: %env_asan_opts=verbosity=2 %run %t 2 3
1616
// RUN: %env_asan_opts=verbosity=2 %run %t 10 2 2>&1 | FileCheck %s
1717
// RUN: %env_asan_opts=verbosity=2:intercept_tls_get_addr=1 %run %t 10 2 2>&1 | FileCheck %s

0 commit comments

Comments
 (0)