[cfe-users] Silencing errors in TSAN

Kyle Edwards via cfe-users cfe-users at lists.llvm.org
Wed Feb 5 10:37:11 PST 2020

On Wed, 2020-02-05 at 19:30 +0100, JVApen wrote:
> Hey Kyle,
> This is a bug in your code, if you have a context switch after the
> creation of the thread on an overloaded system, the close of the pipe
> can be closed while writing or even before it.
> Timing ain't a good way to synchronize threads. TSan is correct in
> flagging this occurrence.


Thanks for the response. I don't doubt that TSAN is correct. The
problem is that this isn't my code. It's from OpenMPI, and fixing
OpenMPI is beyond the scope of my work. I am attempting to build
OpenMPI with TSAN enabled, so that applications that use it don't get
false positives due to libraries built without TSAN, while silencing
issues that might be present within OpenMPI itself. In this case, the
error is coming from mpiexec, which exists as a completely separate
process from my application. So, I am aware that this is probably an
error in mpiexec, but would like to silence it anyway, and I can't seem
to do that.

In other words, this isn't a problem with TSAN yielding a false
positive, but yielding an error with no way for me to silence it.


More information about the cfe-users mailing list