[PATCH] D33325: [asan] Avoid possible deadlock in child process after fork

Evgenii Stepanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 19 11:12:45 PDT 2017


eugenis added a comment.

Good catch. This is a problem for MSan as well, is not it? Do you mind fixing it in both tools?

For bonus points, TSan. I see it locks something
void ForkBefore(ThreadState *thr, uptr pc) {

  ctx->thread_registry->Lock();
  ctx->report_mtx.Lock();

}

But again, not the allocator.


Repository:
  rL LLVM

https://reviews.llvm.org/D33325





More information about the llvm-commits mailing list