A thread sanitizer hit is usually an indication that there is a serious problem. I've compiled LucenePlusPlus and the tests in debug mode. In addition, I've added the option "-fsanitize=thread" to enable the thread sanitizer.
(Adding custom flags when using cmake is usually a never ending nightmare, so this is my way of adding custom flags to a cmake project:
cd /usr/bin
mv c++ c++_org
ln -s c++tsan c++
and c++tsan looks like this:
#!/bin/sh
g++ -fsanitize=thread $@
)
Anyway, here is the output of running "./src/test/lucene++-tester 2>w.txt":
w.txt
A thread sanitizer hit is usually an indication that there is a serious problem. I've compiled LucenePlusPlus and the tests in debug mode. In addition, I've added the option "-fsanitize=thread" to enable the thread sanitizer.
(Adding custom flags when using cmake is usually a never ending nightmare, so this is my way of adding custom flags to a cmake project:
and c++tsan looks like this:
)
Anyway, here is the output of running "./src/test/lucene++-tester 2>w.txt": w.txt