Skip to content

Multiple thread sanitizer hits when running the tests #184

@kmatheussen

Description

@kmatheussen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions