Neil Conway created MESOS-3331:
----------------------------------
Summary: stout tests broken by ThreadSanitizer
Key: MESOS-3331
URL: https://issues.apache.org/jira/browse/MESOS-3331
Project: Mesos
Issue Type: Bug
Reporter: Neil Conway
Priority: Minor
The "SingleThread" and "MultipleThreads" in
3rdparty/libprocess/3rdparty/stout/tests/proc_tests.cpp fail under
ThreadSanitizer. This is likely because they assume no other threads are
running, whereas tsan creates a thread for its own purposes.
Possible fixes:
* Disable/remove the tests; assuming no other threads are running seems a bit
fragile to me
* Make the tests conditional on {{!__has_feature(thread_sanitizer)}} (for
clang; presumably similar syntax for GCC), and/or provide a
"--with-thread-sanitizer" configure option that does this.
* Require people to patch the source to use tsan, which isn't the end of the
world. It would be nice to get a build-bot setup to run tsan on a continuous
basis, though.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)