You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use TSAN together with clang (3,4,5) on Linux (in this Case Ubuntu 16.04). It works great, but I always get race reports (sample after my sig) on pthread_setcancelstate(). The POSIX doc states that it sets the cancellation state for the current thread so there should be no cross-thread data races. To validate this, I have also checked the GNU libc and pthread implemenation and the both access thread-local storage.
Tried to use __attribute__((no_sanitize("thread"))) and blacklisting
to work around the issue, but without any success. Note that this commit
only contains the blacklisting file, but the proper compiler option was
set to use it.
see also rsyslog#2323
OK, now stuck as rgerhards@8e7625a did not bring up any viable solution. Let's see if we find a solution via the LLVM mailing lists. Else we probably need to abandon the idea of using TSAN in automatted testing ;-(
We use TSAN together with clang (3,4,5) on Linux (in this Case Ubuntu 16.04). It works great, but I always get race reports (sample after my sig) on pthread_setcancelstate(). The POSIX doc states that it sets the cancellation state for the current thread so there should be no cross-thread data races. To validate this, I have also checked the GNU libc and pthread implemenation and the both access thread-local storage.
LLVM Mailing List Posting: http://lists.llvm.org/pipermail/cfe-users/2017-December/001215.html
The text was updated successfully, but these errors were encountered: