Running with gitlab-ci-multi-runner 9.2.0 (adfc387) on rfhete607 (d0f8d5ee) Using Docker executor with image matrim/cmake-examples:3.10.3 ... Using docker image sha256:61dea5e03224bc70e92a1879e7f7babe869e447447c9f8a4574444a76804c4d5 for predefined container... Pulling docker image matrim/cmake-examples:3.10.3 ... Using docker image matrim/cmake-examples:3.10.3 ID=sha256:a5bbfb55744237e818731be29add9c3b8dfd6687f86a95121cad4909ed86490f for build container... Running on runner-d0f8d5ee-project-419-concurrent-0 via 869407bddacd... Fetching changes... Removing cmake-build-release/ Removing release/ HEAD is now at 0599cfd Add std::lock_guard test for spin_lock. Checking out 0599cfdc as master... Skipping Git submodules setup Downloading artifacts for build_cmake (2680)... Downloading artifacts from coordinator... ok  id=2680 responseStatus=200 OK token=ZRozCKdv Creating devuser Adding user `devuser' to group `sudo' ... Adding user devuser to group sudo Done. $ ./ci_scripts/run_thread_sanitizer.sh -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Using Build Type: RELEASE -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Check if compiler accepts -pthread -- Check if compiler accepts -pthread - yes -- Found Threads: TRUE -- Thread Sanitizer: ON -- Configuring done -- Generating done -- Build files have been written to: /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/cmake-build-release-thread-sanitizer Scanning dependencies of target pls [ 8%] Building CXX object lib/pls/CMakeFiles/pls.dir/src/library.cpp.o [ 16%] Building CXX object lib/pls/CMakeFiles/pls.dir/src/internal/base/spin_lock.cpp.o [ 25%] Building CXX object lib/pls/CMakeFiles/pls.dir/src/internal/base/thread.cpp.o [ 33%] Linking CXX static library ../libpls.a [ 33%] Built target pls Scanning dependencies of target playground [ 41%] Building CXX object app/playground/CMakeFiles/playground.dir/main.cpp.o [ 50%] Linking CXX executable ../../bin/playground [ 50%] Built target playground Scanning dependencies of target test_for_new [ 58%] Building CXX object app/test_for_new/CMakeFiles/test_for_new.dir/main.cpp.o [ 66%] Linking CXX executable ../../bin/test_for_new [ 66%] Built target test_for_new Scanning dependencies of target tests [ 75%] Building CXX object test/CMakeFiles/tests.dir/main.cpp.o [ 83%] Building CXX object test/CMakeFiles/tests.dir/example_tests.cpp.o [ 91%] Building CXX object test/CMakeFiles/tests.dir/base_tests.cpp.o [100%] Linking CXX executable ../bin/tests [100%] Built target tests ================== WARNING: ThreadSanitizer: data race (pid=340) Read of size 4 at 0x7fff3240109c by thread T5: #0 operator() /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/test/base_tests.cpp:52 (tests+0x000000499e9b) #1 start_pthread_internal /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/lib/pls/include/pls/internal/base/thread.h:66 (tests+0x000000499e9b) #2 (libtsan.so.0+0x0000000230d9) Previous write of size 4 at 0x7fff3240109c by thread T4: #0 operator() /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/test/base_tests.cpp:45 (tests+0x000000499dfa) #1 start_pthread_internal /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/lib/pls/include/pls/internal/base/thread.h:66 (tests+0x000000499dfa) #2 (libtsan.so.0+0x0000000230d9) Location is stack of main thread. Thread T5 (tid=346, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x000000027577) #1 thread /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/lib/pls/include/pls/internal/base/thread.h:81 (tests+0x00000049b233) #2 start_thread<____C_A_T_C_H____T_E_S_T____4():: > /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/lib/pls/include/pls/internal/base/thread.h:103 (tests+0x00000049b233) #3 ____C_A_T_C_H____T_E_S_T____4 /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/test/base_tests.cpp:55 (tests+0x00000049b233) #4 Catch::TestInvokerAsFunction::invoke() const /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:11841 (tests+0x00000040d807) #5 Catch::TestCase::invoke() const /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:11742 (tests+0x00000040d807) #6 Catch::RunContext::invokeActiveTestCase() /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:10601 (tests+0x00000040d807) #7 Catch::RunContext::runCurrentTest(std::__cxx11::basic_string, std::allocator >&, std::__cxx11::basic_string, std::allocator >&) /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:10574 (tests+0x00000044c643) #8 Catch::RunContext::runTest(Catch::TestCase const&) /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:10344 (tests+0x00000044c643) #9 runTests /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:10903 (tests+0x00000044c643) #10 Catch::Session::runInternal() /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:11098 (tests+0x00000044e9bd) #11 Catch::Session::run() /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:11055 (tests+0x00000044eb24) #12 int Catch::Session::run(int, char const* const*) /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:10801 (tests+0x000000405e03) #13 main /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:14554 (tests+0x000000405e03) Thread T4 (tid=345, running) created by main thread at: #0 pthread_create (libtsan.so.0+0x000000027577) #1 thread /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/lib/pls/include/pls/internal/base/thread.h:81 (tests+0x00000049b1c4) #2 start_thread<____C_A_T_C_H____T_E_S_T____4():: > /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/lib/pls/include/pls/internal/base/thread.h:103 (tests+0x00000049b1c4) #3 ____C_A_T_C_H____T_E_S_T____4 /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/test/base_tests.cpp:48 (tests+0x00000049b1c4) #4 Catch::TestInvokerAsFunction::invoke() const /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:11841 (tests+0x00000040d807) #5 Catch::TestCase::invoke() const /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:11742 (tests+0x00000040d807) #6 Catch::RunContext::invokeActiveTestCase() /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:10601 (tests+0x00000040d807) #7 Catch::RunContext::runCurrentTest(std::__cxx11::basic_string, std::allocator >&, std::__cxx11::basic_string, std::allocator >&) /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:10574 (tests+0x00000044c643) #8 Catch::RunContext::runTest(Catch::TestCase const&) /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:10344 (tests+0x00000044c643) #9 runTests /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:10903 (tests+0x00000044c643) #10 Catch::Session::runInternal() /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:11098 (tests+0x00000044e9bd) #11 Catch::Session::run() /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:11055 (tests+0x00000044eb24) #12 int Catch::Session::run(int, char const* const*) /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:10801 (tests+0x000000405e03) #13 main /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:14554 (tests+0x000000405e03) SUMMARY: ThreadSanitizer: data race /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/test/base_tests.cpp:52 operator() ================== =============================================================================== All tests passed (7 assertions in 5 test cases) ThreadSanitizer: reported 1 warnings ERROR: Job failed: exit code 1