HomePhabricator

tsan: Suppress epoll_ctl data race

Description

tsan: Suppress epoll_ctl data race

Summary:

It seems the data race in epoll_ctl could be false positive, and be caused by clang tsan instrumentation code (e.g., https://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20131007/190642.html). But not for sure, of course.

This is a backport of core#20218 and core#20745

Note: I wasn't able to reproduce it today in a loop of 10 ninja check-functional, but I have seen this race in the past. I have a log file locally with a ThreadSanitizer data race involving epoll_ctl.

Test Plan:
With TSAN:

for i in `seq 10`; do  ninja check-functional; done

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D10722

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Oct 22 2020, 12:37
PiRKCommitted on Dec 22 2021, 13:37
PiRKPushed on Dec 22 2021, 13:38
Reviewer
Restricted Project
Differential Revision
D10722: tsan: Suppress epoll_ctl data race
Parents
rABC1975ab79f014: wallet: fix importdescriptor silent fail
Branches
Unknown
Tags
Unknown