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 51cc657 Add spinlock and tests for it. Checking out 51cc6572 as master... Skipping Git submodules setup Downloading artifacts for build_cmake (2677)... Downloading artifacts from coordinator... ok  id=2677 responseStatus=200 OK token=jB7EmVf7 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 0x7fffd92ec6bc by thread T5: #0 operator() /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/test/base_tests.cpp:50 (tests+0x000000499e1d) #1 start_pthread_internal /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/lib/pls/include/pls/internal/base/thread.h:66 (tests+0x000000499e1d) #2 (libtsan.so.0+0x0000000230d9) Previous write of size 4 at 0x7fffd92ec6bc by thread T4: #0 operator() /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/test/base_tests.cpp:43 (tests+0x000000499f9a) #1 start_pthread_internal /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/lib/pls/include/pls/internal/base/thread.h:66 (tests+0x000000499f9a) #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+0x00000049a15b) #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+0x00000049a15b) #3 ____C_A_T_C_H____T_E_S_T____4 /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/test/base_tests.cpp:53 (tests+0x00000049a15b) #4 Catch::TestInvokerAsFunction::invoke() const /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:11841 (tests+0x00000040d7f7) #5 Catch::TestCase::invoke() const /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:11742 (tests+0x00000040d7f7) #6 Catch::RunContext::invokeActiveTestCase() /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:10601 (tests+0x00000040d7f7) #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+0x00000044c633) #8 Catch::RunContext::runTest(Catch::TestCase const&) /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:10344 (tests+0x00000044c633) #9 runTests /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:10903 (tests+0x00000044c633) #10 Catch::Session::runInternal() /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:11098 (tests+0x00000044e9ad) #11 Catch::Session::run() /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:11055 (tests+0x00000044eb14) #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+0x00000049a0bf) #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+0x00000049a0bf) #3 ____C_A_T_C_H____T_E_S_T____4 /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/test/base_tests.cpp:46 (tests+0x00000049a0bf) #4 Catch::TestInvokerAsFunction::invoke() const /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:11841 (tests+0x00000040d7f7) #5 Catch::TestCase::invoke() const /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:11742 (tests+0x00000040d7f7) #6 Catch::RunContext::invokeActiveTestCase() /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:10601 (tests+0x00000040d7f7) #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+0x00000044c633) #8 Catch::RunContext::runTest(Catch::TestCase const&) /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:10344 (tests+0x00000044c633) #9 runTests /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:10903 (tests+0x00000044c633) #10 Catch::Session::runInternal() /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:11098 (tests+0x00000044e9ad) #11 Catch::Session::run() /builds/gitlab/las3/development/scheduling/predictable_parallel_patterns/extern/catch2/catch.hpp:11055 (tests+0x00000044eb14) #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:50 operator() ================== =============================================================================== All tests passed (6 assertions in 5 test cases) ThreadSanitizer: reported 1 warnings ERROR: Job failed: exit code 1