[compiler-rt] [sanitizer] Fix asserts in asan and tsan in pthread interceptors. (PR #75394)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 19 05:58:39 PST 2023
================
@@ -53,7 +53,8 @@ void ThreadArgRetval::Finish(uptr thread, void* retval) {
u32 ThreadArgRetval::BeforeJoin(uptr thread) const {
__sanitizer::Lock lock(&mtx_);
auto t = data_.find(thread);
- CHECK(t);
+ if (!t)
+ return 0;
CHECK(!t->second.detached);
----------------
goussepi wrote:
A yes of course, will fix thanks!
https://github.com/llvm/llvm-project/pull/75394
More information about the llvm-commits
mailing list