Skip to content
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

Multiple thread sanitizer hits when running the tests #184

Open
kmatheussen opened this issue Dec 8, 2021 · 0 comments
Open

Multiple thread sanitizer hits when running the tests #184

kmatheussen opened this issue Dec 8, 2021 · 0 comments

Comments

@kmatheussen
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant