tsan: fix deadlock in libbacktrace

Fixes deadlock seen in GCC.

Fixes: #55226

Differential Revision: https://reviews.llvm.org/D124838
This commit is contained in:
Martin Liska 2022-05-03 12:42:01 +02:00
parent e0892614b1
commit 0a1bcab9f3
1 changed files with 2 additions and 1 deletions

View File

@ -1767,7 +1767,8 @@ TSAN_INTERCEPTOR(int, listen, int fd, int backlog) {
TSAN_INTERCEPTOR(int, close, int fd) {
SCOPED_INTERCEPTOR_RAW(close, fd);
FdClose(thr, pc, fd);
if (!in_symbolizer())
FdClose(thr, pc, fd);
return REAL(close)(fd);
}