-
Notifications
You must be signed in to change notification settings - Fork 657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LLVM thread sanitizer (TSAN): false positive in pthread_setcancelstate()? #2323
Comments
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 ;-( |
|
asked again, this time on the clang developer's list: http://lists.llvm.org/pipermail/cfe-dev/2018-May/057957.html If we can't solve it now, this probably means we need to close the issue tracker as unresolved and need to stay away from using TSAN in CI runs. |
|
unfortunately this seems to be unresolvable, so we cannot use clang in CI testing. |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
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: