lit.py: /home/dave/s/u/swift/test/lit.cfg:176: note: Using cmake: /usr/bin/cmake lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-frontend: /home/dave/b/u/t/bin/swift-frontend lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift: /home/dave/b/u/t/bin/swift lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swiftc: /home/dave/b/u/t/bin/swiftc lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using sil-opt: /home/dave/b/u/t/bin/sil-opt lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using sil-func-extractor: /home/dave/b/u/t/bin/sil-func-extractor lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using sil-llvm-gen: /home/dave/b/u/t/bin/sil-llvm-gen lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using sil-nm: /home/dave/b/u/t/bin/sil-nm lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using sil-passpipeline-dumper: /home/dave/b/u/t/bin/sil-passpipeline-dumper lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using lldb-moduleimport-test: /home/dave/b/u/t/bin/lldb-moduleimport-test lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-ide-test: /home/dave/b/u/t/bin/swift-ide-test lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-dependency-tool: /home/dave/b/u/t/bin/swift-dependency-tool lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-syntax-test: /home/dave/b/u/t/bin/swift-syntax-test lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-reflection-dump: /home/dave/b/u/t/bin/swift-reflection-dump lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-remoteast-test: /home/dave/b/u/t/bin/swift-remoteast-test lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-indent: /home/dave/b/u/t/bin/swift-indent lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-symbolgraph-extract: /home/dave/b/u/t/bin/swift-symbolgraph-extract lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using clang: /home/dave/b/u/t/bin/clang lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using llvm-link: /home/dave/b/u/t/bin/llvm-link lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-llvm-opt: /home/dave/b/u/t/bin/swift-llvm-opt lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using llvm-profdata: /home/dave/b/u/t/bin/llvm-profdata lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using llvm-cov: /home/dave/b/u/t/bin/llvm-cov lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using llvm-strings: /home/dave/b/u/t/bin/llvm-strings lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using FileCheck: /home/dave/b/u/t/bin/FileCheck lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using llvm-dwarfdump: /home/dave/b/u/t/bin/llvm-dwarfdump lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using llvm-readelf: /home/dave/b/u/t/bin/llvm-readelf lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using llvm-dis: /home/dave/b/u/t/bin/llvm-dis lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using llvm-nm: /home/dave/b/u/t/bin/llvm-nm lit.py: /home/dave/s/u/swift/test/lit.cfg:239: warning: couldn't find 'sourcekitd-test' program, try setting SOURCEKITD_TEST in your environment lit.py: /home/dave/s/u/swift/test/lit.cfg:239: warning: couldn't find 'complete-test' program, try setting COMPLETE_TEST in your environment lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-api-digester: /home/dave/b/u/t/bin/swift-api-digester lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-refactor: /home/dave/b/u/t/bin/swift-refactor lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-demangle-yamldump: /home/dave/b/u/t/bin/swift-demangle-yamldump lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-demangle: /home/dave/b/u/t/bin/swift-demangle lit.py: /home/dave/s/u/swift/test/lit.cfg:239: warning: couldn't find 'Benchmark_O' program, try setting BENCHMARK_O in your environment lit.py: /home/dave/s/u/swift/test/lit.cfg:239: warning: couldn't find 'Benchmark_Driver' program, try setting BENCHMARK_DRIVER in your environment lit.py: /home/dave/s/u/swift/test/lit.cfg:239: warning: couldn't find 'wasmer' program, try setting WASMER in your environment lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using wasm-ld: /p/llvm/bin/wasm-ld lit.py: /home/dave/s/u/swift/test/lit.cfg:314: note: Using resource dir: /home/dave/b/u/t/lib/swift lit.py: /home/dave/s/u/swift/test/lit.cfg:357: note: Compiling with -swift-version 4 lit.py: /home/dave/s/u/swift/test/lit.cfg:380: note: Using Clang module cache: /home/dave/b/u/t/swift-test-results/x86_64-unknown-linux-gnu/clang-module-cache lit.py: /home/dave/s/u/swift/test/lit.cfg:381: note: Using test results dir: /home/dave/b/u/t/./swift-test-results/x86_64-unknown-linux-gnu lit.py: /home/dave/s/u/swift/test/lit.cfg:386: note: Using code completion cache: /home/dave/b/u/t/swift-test-results/x86_64-unknown-linux-gnu/completion-cache lit.py: /home/dave/s/u/swift/test/lit.cfg:1175: note: Testing Linux x86_64-unknown-linux-gnu lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-autolink-extract: /home/dave/b/u/t/bin/swift-autolink-extract lit.py: /home/dave/s/u/swift/test/lit.cfg:1704: note: Using platform module dir: /home/dave/b/u/t/lib/swift/linux/x86_64 lit.py: /home/dave/s/u/swift/test/lit.cfg:1729: note: Testing with the just-built libraries at /home/dave/b/u/t/lib/swift/linux/x86_64 lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-reflection-test-linux-x86_64: /home/dave/b/u/t/bin/swift-reflection-test-linux-x86_64 lit.py: /home/dave/s/u/swift/test/lit.cfg:2024: note: Available features: CMAKE_GENERATOR=Ninja, CODEGENERATOR=AArch64, CODEGENERATOR=ARM, CODEGENERATOR=X86, CPU=x86_64, OS=linux-gnu, PTRSIZE=64, SWIFT_VERSION=4, VENDOR=unknown, asserts, autolink-extract, crash-recovery, executable_test, libxml2, no_asan, no_lto, nonexecutable_test, optimized_stdlib, optimized_stdlib_x86_64, sftp_server, shell, swift-remoteast-test, swift_ast_verifier, swift_interpreter, swift_only_stable_abi, swift_stdlib_asserts, swift_test_mode_optimize_none, swift_test_mode_optimize_none_x86_64 lit.py: /home/dave/s/u/swift/test/lit.cfg:176: note: Using cmake: /usr/bin/cmake lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-frontend: /home/dave/b/u/t/bin/swift-frontend lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift: /home/dave/b/u/t/bin/swift lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swiftc: /home/dave/b/u/t/bin/swiftc lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using sil-opt: /home/dave/b/u/t/bin/sil-opt lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using sil-func-extractor: /home/dave/b/u/t/bin/sil-func-extractor lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using sil-llvm-gen: /home/dave/b/u/t/bin/sil-llvm-gen lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using sil-nm: /home/dave/b/u/t/bin/sil-nm lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using sil-passpipeline-dumper: /home/dave/b/u/t/bin/sil-passpipeline-dumper lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using lldb-moduleimport-test: /home/dave/b/u/t/bin/lldb-moduleimport-test lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-ide-test: /home/dave/b/u/t/bin/swift-ide-test lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-dependency-tool: /home/dave/b/u/t/bin/swift-dependency-tool lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-syntax-test: /home/dave/b/u/t/bin/swift-syntax-test lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-reflection-dump: /home/dave/b/u/t/bin/swift-reflection-dump lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-remoteast-test: /home/dave/b/u/t/bin/swift-remoteast-test lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-indent: /home/dave/b/u/t/bin/swift-indent lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-symbolgraph-extract: /home/dave/b/u/t/bin/swift-symbolgraph-extract lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using clang: /home/dave/b/u/t/bin/clang lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using llvm-link: /home/dave/b/u/t/bin/llvm-link lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-llvm-opt: /home/dave/b/u/t/bin/swift-llvm-opt lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using llvm-profdata: /home/dave/b/u/t/bin/llvm-profdata lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using llvm-cov: /home/dave/b/u/t/bin/llvm-cov lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using llvm-strings: /home/dave/b/u/t/bin/llvm-strings lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using FileCheck: /home/dave/b/u/t/bin/FileCheck lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using llvm-dwarfdump: /home/dave/b/u/t/bin/llvm-dwarfdump lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using llvm-readelf: /home/dave/b/u/t/bin/llvm-readelf lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using llvm-dis: /home/dave/b/u/t/bin/llvm-dis lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using llvm-nm: /home/dave/b/u/t/bin/llvm-nm lit.py: /home/dave/s/u/swift/test/lit.cfg:239: warning: couldn't find 'sourcekitd-test' program, try setting SOURCEKITD_TEST in your environment lit.py: /home/dave/s/u/swift/test/lit.cfg:239: warning: couldn't find 'complete-test' program, try setting COMPLETE_TEST in your environment lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-api-digester: /home/dave/b/u/t/bin/swift-api-digester lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-refactor: /home/dave/b/u/t/bin/swift-refactor lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-demangle-yamldump: /home/dave/b/u/t/bin/swift-demangle-yamldump lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-demangle: /home/dave/b/u/t/bin/swift-demangle lit.py: /home/dave/s/u/swift/test/lit.cfg:239: warning: couldn't find 'Benchmark_O' program, try setting BENCHMARK_O in your environment lit.py: /home/dave/s/u/swift/test/lit.cfg:239: warning: couldn't find 'Benchmark_Driver' program, try setting BENCHMARK_DRIVER in your environment lit.py: /home/dave/s/u/swift/test/lit.cfg:239: warning: couldn't find 'wasmer' program, try setting WASMER in your environment lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using wasm-ld: /p/llvm/bin/wasm-ld lit.py: /home/dave/s/u/swift/test/lit.cfg:314: note: Using resource dir: /home/dave/b/u/t/lib/swift lit.py: /home/dave/s/u/swift/test/lit.cfg:357: note: Compiling with -swift-version 4 lit.py: /home/dave/s/u/swift/test/lit.cfg:380: note: Using Clang module cache: /home/dave/b/u/t/swift-test-results/x86_64-unknown-linux-gnu/clang-module-cache lit.py: /home/dave/s/u/swift/test/lit.cfg:381: note: Using test results dir: /home/dave/b/u/t/./swift-test-results/x86_64-unknown-linux-gnu lit.py: /home/dave/s/u/swift/test/lit.cfg:386: note: Using code completion cache: /home/dave/b/u/t/swift-test-results/x86_64-unknown-linux-gnu/completion-cache lit.py: /home/dave/s/u/swift/test/lit.cfg:1175: note: Testing Linux x86_64-unknown-linux-gnu lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-autolink-extract: /home/dave/b/u/t/bin/swift-autolink-extract lit.py: /home/dave/s/u/swift/test/lit.cfg:1704: note: Using platform module dir: /home/dave/b/u/t/lib/swift/linux/x86_64 lit.py: /home/dave/s/u/swift/test/lit.cfg:1729: note: Testing with the just-built libraries at /home/dave/b/u/t/lib/swift/linux/x86_64 lit.py: /home/dave/s/u/swift/test/lit.cfg:236: note: using swift-reflection-test-linux-x86_64: /home/dave/b/u/t/bin/swift-reflection-test-linux-x86_64 lit.py: /home/dave/s/u/swift/test/lit.cfg:2024: note: Available features: CMAKE_GENERATOR=Ninja, CODEGENERATOR=AArch64, CODEGENERATOR=ARM, CODEGENERATOR=X86, CPU=x86_64, OS=linux-gnu, PTRSIZE=64, SWIFT_VERSION=4, VENDOR=unknown, asserts, autolink-extract, crash-recovery, executable_test, no_asan, no_lto, nonexecutable_test, optimized_stdlib, optimized_stdlib_x86_64, sftp_server, shell, swift-remoteast-test, swift_interpreter, swift_only_stable_abi, swift_stdlib_asserts, swift_test_mode_optimize_none, swift_test_mode_optimize_none_x86_64, tools-release -- Testing: 9 of 13584 tests, 9 workers -- Testing: 0.. 10.. 20.. 30 FAIL: Swift-Unit :: runtime/./SwiftRuntimeTests/ConcurrentReadableHashMapTest.MultiThreaded3 (4 of 9) ******************** TEST 'Swift-Unit :: runtime/./SwiftRuntimeTests/ConcurrentReadableHashMapTest.MultiThreaded3' FAILED ******************** Note: Google Test filter = ConcurrentReadableHashMapTest.MultiThreaded3 [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from ConcurrentReadableHashMapTest [ RUN ] ConcurrentReadableHashMapTest.MultiThreaded3 [ OK ] ConcurrentReadableHashMapTest.MultiThreaded3 (3043 ms) [----------] 1 test from ConcurrentReadableHashMapTest (3043 ms total) [----------] Global test environment tear-down [==========] 1 test from 1 test case ran. (3043 ms total) [ PASSED ] 1 test. ================== WARNING: ThreadSanitizer: data race (pid=588831) Write of size 8 at 0x7b0c00001800 by thread T12 (mutexes: write M883): #0 free (SwiftRuntimeTests+0x338684) #1 swift::ConcurrentReadableHashMap::deallocateFreeList() (SwiftRuntimeTests+0x4358cf) #2 void* std::__1::__thread_proxy >, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20)::'lambda'()>(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20)::'lambda'())::'lambda'()> >(void*) (SwiftRuntimeTests+0x439507) Previous read of size 4 at 0x7b0c00001800 by thread T22: [failed to restore the stack] Mutex M883 (0x7fffffffe918) created at: #0 pthread_mutex_init (SwiftRuntimeTests+0x33d063) #1 swift::MutexPlatformHelper::init(pthread_mutex_t&, bool) (SwiftRuntimeTests+0x3f4d59) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) Thread T12 (tid=588914, running) created by main thread at: #0 pthread_create (SwiftRuntimeTests+0x357991) #1 ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody() (SwiftRuntimeTests+0x431bd1) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) Thread T22 (tid=588956, running) created by main thread at: #0 pthread_create (SwiftRuntimeTests+0x357991) #1 ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody() (SwiftRuntimeTests+0x431bd1) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) SUMMARY: ThreadSanitizer: data race (/home/dave/b/u/t/tools/swift/unittests/runtime/SwiftRuntimeTests+0x338684) in free ================== ================== WARNING: ThreadSanitizer: data race (pid=588831) Write of size 8 at 0x7b0800005020 by thread T12 (mutexes: write M883): #0 free (SwiftRuntimeTests+0x338684) #1 swift::ConcurrentReadableHashMap::deallocateFreeList() (SwiftRuntimeTests+0x43596f) #2 void* std::__1::__thread_proxy >, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20)::'lambda'()>(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20)::'lambda'())::'lambda'()> >(void*) (SwiftRuntimeTests+0x439507) Previous atomic read of size 4 at 0x7b0800005020 by thread T17: [failed to restore the stack] Mutex M883 (0x7fffffffe918) created at: #0 pthread_mutex_init (SwiftRuntimeTests+0x33d063) #1 swift::MutexPlatformHelper::init(pthread_mutex_t&, bool) (SwiftRuntimeTests+0x3f4d59) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) Thread T12 (tid=588914, running) created by main thread at: #0 pthread_create (SwiftRuntimeTests+0x357991) #1 ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody() (SwiftRuntimeTests+0x431bd1) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) Thread T17 (tid=588937, running) created by main thread at: #0 pthread_create (SwiftRuntimeTests+0x357991) #1 ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody() (SwiftRuntimeTests+0x431bd1) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) SUMMARY: ThreadSanitizer: data race (/home/dave/b/u/t/tools/swift/unittests/runtime/SwiftRuntimeTests+0x338684) in free ================== ================== WARNING: ThreadSanitizer: data race (pid=588831) Write of size 8 at 0x7bc400028000 by thread T16 (mutexes: write M883): #0 free (SwiftRuntimeTests+0x338684) #1 swift::ConcurrentReadableHashMap::deallocateFreeList() (SwiftRuntimeTests+0x4358cf) #2 void* std::__1::__thread_proxy >, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20)::'lambda'()>(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20)::'lambda'())::'lambda'()> >(void*) (SwiftRuntimeTests+0x439507) Previous read of size 4 at 0x7bc400028000 by thread T24: #0 std::__1::pair*> swift::ConcurrentReadableHashMap::find(MultiThreadedKey const&, swift::ConcurrentReadableHashMap::IndexStorage*, unsigned long, MultiThreadedValue*) (SwiftRuntimeTests+0x437098) #1 void* std::__1::__thread_proxy >, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20)::'lambda'()>(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20)::'lambda'())::'lambda'()> >(void*) (SwiftRuntimeTests+0x439b93) Mutex M883 (0x7fffffffe918) created at: #0 pthread_mutex_init (SwiftRuntimeTests+0x33d063) #1 swift::MutexPlatformHelper::init(pthread_mutex_t&, bool) (SwiftRuntimeTests+0x3f4d59) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) Thread T16 (tid=588933, running) created by main thread at: #0 pthread_create (SwiftRuntimeTests+0x357991) #1 ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody() (SwiftRuntimeTests+0x431bd1) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) Thread T24 (tid=588963, running) created by main thread at: #0 pthread_create (SwiftRuntimeTests+0x357991) #1 ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody() (SwiftRuntimeTests+0x431bd1) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) SUMMARY: ThreadSanitizer: data race (/home/dave/b/u/t/tools/swift/unittests/runtime/SwiftRuntimeTests+0x338684) in free ================== ================== WARNING: ThreadSanitizer: data race (pid=588831) Write of size 8 at 0x7bb000010000 by thread T16 (mutexes: write M883): #0 free (SwiftRuntimeTests+0x338684) #1 swift::ConcurrentReadableHashMap::deallocateFreeList() (SwiftRuntimeTests+0x43596f) #2 void* std::__1::__thread_proxy >, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20)::'lambda'()>(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20)::'lambda'())::'lambda'()> >(void*) (SwiftRuntimeTests+0x439507) Previous atomic read of size 4 at 0x7bb000010000 by thread T20: #0 __tsan_atomic32_load (SwiftRuntimeTests+0x373f05) #1 std::__1::pair*> swift::ConcurrentReadableHashMap::find(MultiThreadedKey const&, swift::ConcurrentReadableHashMap::IndexStorage*, unsigned long, MultiThreadedValue*) (SwiftRuntimeTests+0x437012) #2 void* std::__1::__thread_proxy >, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20)::'lambda'()>(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20)::'lambda'())::'lambda'()> >(void*) (SwiftRuntimeTests+0x439b93) Mutex M883 (0x7fffffffe918) created at: #0 pthread_mutex_init (SwiftRuntimeTests+0x33d063) #1 swift::MutexPlatformHelper::init(pthread_mutex_t&, bool) (SwiftRuntimeTests+0x3f4d59) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) Thread T16 (tid=588933, running) created by main thread at: #0 pthread_create (SwiftRuntimeTests+0x357991) #1 ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody() (SwiftRuntimeTests+0x431bd1) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) Thread T20 (tid=588948, running) created by main thread at: #0 pthread_create (SwiftRuntimeTests+0x357991) #1 ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody() (SwiftRuntimeTests+0x431bd1) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) SUMMARY: ThreadSanitizer: data race (/home/dave/b/u/t/tools/swift/unittests/runtime/SwiftRuntimeTests+0x338684) in free ================== ================== WARNING: ThreadSanitizer: data race (pid=588831) Write of size 8 at 0x7bd000020008 by thread T1 (mutexes: write M883): #0 free (SwiftRuntimeTests+0x338684) #1 swift::ConcurrentReadableHashMap::deallocateFreeList() (SwiftRuntimeTests+0x43596f) #2 void* std::__1::__thread_proxy >, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20)::'lambda'()>(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20)::'lambda'())::'lambda'()> >(void*) (SwiftRuntimeTests+0x439507) Previous atomic read of size 4 at 0x7bd00002000c by thread T18: #0 __tsan_atomic32_load (SwiftRuntimeTests+0x373f05) #1 std::__1::pair*> swift::ConcurrentReadableHashMap::find(MultiThreadedKey const&, swift::ConcurrentReadableHashMap::IndexStorage*, unsigned long, MultiThreadedValue*) (SwiftRuntimeTests+0x437034) #2 void* std::__1::__thread_proxy >, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20)::'lambda'()>(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20)::'lambda'())::'lambda'()> >(void*) (SwiftRuntimeTests+0x439b93) Mutex M883 (0x7fffffffe918) created at: #0 pthread_mutex_init (SwiftRuntimeTests+0x33d063) #1 swift::MutexPlatformHelper::init(pthread_mutex_t&, bool) (SwiftRuntimeTests+0x3f4d59) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) Thread T1 (tid=588857, running) created by main thread at: #0 pthread_create (SwiftRuntimeTests+0x357991) #1 ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody() (SwiftRuntimeTests+0x431bd1) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) Thread T18 (tid=588941, running) created by main thread at: #0 pthread_create (SwiftRuntimeTests+0x357991) #1 ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody() (SwiftRuntimeTests+0x431bd1) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) SUMMARY: ThreadSanitizer: data race (/home/dave/b/u/t/tools/swift/unittests/runtime/SwiftRuntimeTests+0x338684) in free ================== ================== WARNING: ThreadSanitizer: data race (pid=588831) Write of size 8 at 0x7bd000020010 by thread T1 (mutexes: write M883): #0 free (SwiftRuntimeTests+0x338684) #1 swift::ConcurrentReadableHashMap::deallocateFreeList() (SwiftRuntimeTests+0x43596f) #2 void* std::__1::__thread_proxy >, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20)::'lambda'()>(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20)::'lambda'())::'lambda'()> >(void*) (SwiftRuntimeTests+0x439507) Previous atomic read of size 4 at 0x7bd000020010 by thread T18: #0 __tsan_atomic32_load (SwiftRuntimeTests+0x373f05) #1 std::__1::pair*> swift::ConcurrentReadableHashMap::find(MultiThreadedKey const&, swift::ConcurrentReadableHashMap::IndexStorage*, unsigned long, MultiThreadedValue*) (SwiftRuntimeTests+0x437074) #2 void* std::__1::__thread_proxy >, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20)::'lambda'()>(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20)::'lambda'())::'lambda'()> >(void*) (SwiftRuntimeTests+0x439b93) Mutex M883 (0x7fffffffe918) created at: #0 pthread_mutex_init (SwiftRuntimeTests+0x33d063) #1 swift::MutexPlatformHelper::init(pthread_mutex_t&, bool) (SwiftRuntimeTests+0x3f4d59) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) Thread T1 (tid=588857, running) created by main thread at: #0 pthread_create (SwiftRuntimeTests+0x357991) #1 ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody() (SwiftRuntimeTests+0x431bd1) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) Thread T18 (tid=588941, running) created by main thread at: #0 pthread_create (SwiftRuntimeTests+0x357991) #1 ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody() (SwiftRuntimeTests+0x431bd1) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) SUMMARY: ThreadSanitizer: data race (/home/dave/b/u/t/tools/swift/unittests/runtime/SwiftRuntimeTests+0x338684) in free ================== ================== WARNING: ThreadSanitizer: data race (pid=588831) Write of size 8 at 0x7fffe4b4b2f8 by thread T5 (mutexes: write M883): #0 free (SwiftRuntimeTests+0x338684) #1 swift::ConcurrentReadableHashMap::deallocateFreeList() (SwiftRuntimeTests+0x4358cf) #2 void* std::__1::__thread_proxy >, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20)::'lambda'()>(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20)::'lambda'())::'lambda'()> >(void*) (SwiftRuntimeTests+0x439507) Previous read of size 4 at 0x7fffe4b4b2f8 by thread T24: #0 std::__1::pair*> swift::ConcurrentReadableHashMap::find(MultiThreadedKey const&, swift::ConcurrentReadableHashMap::IndexStorage*, unsigned long, MultiThreadedValue*) (SwiftRuntimeTests+0x4370bb) #1 void* std::__1::__thread_proxy >, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20)::'lambda'()>(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody()::$_20)::'lambda'())::'lambda'()> >(void*) (SwiftRuntimeTests+0x439b93) Mutex M883 (0x7fffffffe918) created at: #0 pthread_mutex_init (SwiftRuntimeTests+0x33d063) #1 swift::MutexPlatformHelper::init(pthread_mutex_t&, bool) (SwiftRuntimeTests+0x3f4d59) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) Thread T5 (tid=588879, running) created by main thread at: #0 pthread_create (SwiftRuntimeTests+0x357991) #1 ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody() (SwiftRuntimeTests+0x431bd1) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) Thread T24 (tid=588963, running) created by main thread at: #0 pthread_create (SwiftRuntimeTests+0x357991) #1 ConcurrentReadableHashMapTest_MultiThreaded3_Test::TestBody() (SwiftRuntimeTests+0x431bd1) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) SUMMARY: ThreadSanitizer: data race (/home/dave/b/u/t/tools/swift/unittests/runtime/SwiftRuntimeTests+0x338684) in free ================== ThreadSanitizer: reported 7 warnings ******************** Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. FAIL: Swift-Unit :: runtime/./SwiftRuntimeTests/ConcurrentReadableHashMapTest.MultiThreaded4 (9 of 9) ******************** TEST 'Swift-Unit :: runtime/./SwiftRuntimeTests/ConcurrentReadableHashMapTest.MultiThreaded4' FAILED ******************** Note: Google Test filter = ConcurrentReadableHashMapTest.MultiThreaded4 [==========] Running 1 test from 1 test case. [----------] Global test environment set-up. [----------] 1 test from ConcurrentReadableHashMapTest [ RUN ] ConcurrentReadableHashMapTest.MultiThreaded4 [ OK ] ConcurrentReadableHashMapTest.MultiThreaded4 (29158 ms) [----------] 1 test from ConcurrentReadableHashMapTest (29159 ms total) [----------] Global test environment tear-down [==========] 1 test from 1 test case ran. (29159 ms total) [ PASSED ] 1 test. ================== WARNING: ThreadSanitizer: data race (pid=588832) Write of size 8 at 0x7b1000002000 by thread T2 (mutexes: write M883): #0 free (SwiftRuntimeTests+0x338684) #1 swift::ConcurrentReadableHashMap::deallocateFreeList() (SwiftRuntimeTests+0x4358cf) #2 void* std::__1::__thread_proxy >, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody()::$_24)::'lambda'()>(int, ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody()::$_24, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody()::$_24)::'lambda'())::'lambda'()> >(void*) (SwiftRuntimeTests+0x43a55f) Previous read of size 4 at 0x7b1000002000 by thread T20: [failed to restore the stack] Mutex M883 (0x7fffffffe918) created at: #0 pthread_mutex_init (SwiftRuntimeTests+0x33d063) #1 swift::MutexPlatformHelper::init(pthread_mutex_t&, bool) (SwiftRuntimeTests+0x3f4d59) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) Thread T2 (tid=588958, running) created by main thread at: #0 pthread_create (SwiftRuntimeTests+0x357991) #1 ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody() (SwiftRuntimeTests+0x432071) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) Thread T20 (tid=588980, running) created by main thread at: #0 pthread_create (SwiftRuntimeTests+0x357991) #1 ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody() (SwiftRuntimeTests+0x432071) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) SUMMARY: ThreadSanitizer: data race (/home/dave/b/u/t/tools/swift/unittests/runtime/SwiftRuntimeTests+0x338684) in free ================== ================== WARNING: ThreadSanitizer: data race (pid=588832) Write of size 8 at 0x7b0800001020 by thread T2 (mutexes: write M883): #0 free (SwiftRuntimeTests+0x338684) #1 swift::ConcurrentReadableHashMap::deallocateFreeList() (SwiftRuntimeTests+0x43596f) #2 void* std::__1::__thread_proxy >, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody()::$_24)::'lambda'()>(int, ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody()::$_24, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody()::$_24)::'lambda'())::'lambda'()> >(void*) (SwiftRuntimeTests+0x43a55f) Previous atomic read of size 4 at 0x7b0800001020 by thread T20: [failed to restore the stack] Mutex M883 (0x7fffffffe918) created at: #0 pthread_mutex_init (SwiftRuntimeTests+0x33d063) #1 swift::MutexPlatformHelper::init(pthread_mutex_t&, bool) (SwiftRuntimeTests+0x3f4d59) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) Thread T2 (tid=588958, running) created by main thread at: #0 pthread_create (SwiftRuntimeTests+0x357991) #1 ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody() (SwiftRuntimeTests+0x432071) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) Thread T20 (tid=588980, running) created by main thread at: #0 pthread_create (SwiftRuntimeTests+0x357991) #1 ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody() (SwiftRuntimeTests+0x432071) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) SUMMARY: ThreadSanitizer: data race (/home/dave/b/u/t/tools/swift/unittests/runtime/SwiftRuntimeTests+0x338684) in free ================== ================== WARNING: ThreadSanitizer: data race (pid=588832) Write of size 8 at 0x7bb400000000 by thread T11 (mutexes: write M883): #0 free (SwiftRuntimeTests+0x338684) #1 swift::ConcurrentReadableHashMap::deallocateFreeList() (SwiftRuntimeTests+0x4358cf) #2 void* std::__1::__thread_proxy >, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody()::$_24)::'lambda'()>(int, ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody()::$_24, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody()::$_24)::'lambda'())::'lambda'()> >(void*) (SwiftRuntimeTests+0x43a55f) Previous read of size 4 at 0x7bb400000000 by thread T18: #0 std::__1::pair*> swift::ConcurrentReadableHashMap::find(MultiThreadedKey const&, swift::ConcurrentReadableHashMap::IndexStorage*, unsigned long, MultiThreadedValue*) (SwiftRuntimeTests+0x437098) #1 void* std::__1::__thread_proxy >, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody()::$_24)::'lambda'()>(int, ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody()::$_24, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody()::$_24)::'lambda'())::'lambda'()> >(void*) (SwiftRuntimeTests+0x43a799) Mutex M883 (0x7fffffffe918) created at: #0 pthread_mutex_init (SwiftRuntimeTests+0x33d063) #1 swift::MutexPlatformHelper::init(pthread_mutex_t&, bool) (SwiftRuntimeTests+0x3f4d59) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) Thread T11 (tid=588971, running) created by main thread at: #0 pthread_create (SwiftRuntimeTests+0x357991) #1 ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody() (SwiftRuntimeTests+0x432071) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) Thread T18 (tid=588978, running) created by main thread at: #0 pthread_create (SwiftRuntimeTests+0x357991) #1 ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody() (SwiftRuntimeTests+0x432071) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) SUMMARY: ThreadSanitizer: data race (/home/dave/b/u/t/tools/swift/unittests/runtime/SwiftRuntimeTests+0x338684) in free ================== ================== WARNING: ThreadSanitizer: data race (pid=588832) Write of size 8 at 0x7b88000c9010 by thread T14 (mutexes: write M883): #0 free (SwiftRuntimeTests+0x338684) #1 swift::ConcurrentReadableHashMap::deallocateFreeList() (SwiftRuntimeTests+0x4358cf) #2 void* std::__1::__thread_proxy >, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody()::$_24)::'lambda'()>(int, ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody()::$_24, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody()::$_24)::'lambda'())::'lambda'()> >(void*) (SwiftRuntimeTests+0x43a55f) Previous read of size 4 at 0x7b88000c9010 by thread T24: #0 std::__1::pair*> swift::ConcurrentReadableHashMap::find(MultiThreadedKey const&, swift::ConcurrentReadableHashMap::IndexStorage*, unsigned long, MultiThreadedValue*) (SwiftRuntimeTests+0x4370bb) #1 void* std::__1::__thread_proxy >, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody()::$_24)::'lambda'()>(int, ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody()::$_24, void threadedExecute(int, ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody()::$_24)::'lambda'())::'lambda'()> >(void*) (SwiftRuntimeTests+0x43a799) Mutex M883 (0x7fffffffe918) created at: #0 pthread_mutex_init (SwiftRuntimeTests+0x33d063) #1 swift::MutexPlatformHelper::init(pthread_mutex_t&, bool) (SwiftRuntimeTests+0x3f4d59) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) Thread T14 (tid=588974, running) created by main thread at: #0 pthread_create (SwiftRuntimeTests+0x357991) #1 ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody() (SwiftRuntimeTests+0x432071) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) Thread T24 (tid=588984, running) created by main thread at: #0 pthread_create (SwiftRuntimeTests+0x357991) #1 ConcurrentReadableHashMapTest_MultiThreaded4_Test::TestBody() (SwiftRuntimeTests+0x432071) #2 testing::Test::Run() (SwiftRuntimeTests+0x4fc529) SUMMARY: ThreadSanitizer: data race (/home/dave/b/u/t/tools/swift/unittests/runtime/SwiftRuntimeTests+0x338684) in free ================== ThreadSanitizer: reported 4 warnings ******************** Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 10 warning(s) in tests Testing Time: 29.29s ******************** Failing Tests (2): Swift-Unit :: runtime/./SwiftRuntimeTests/ConcurrentReadableHashMapTest.MultiThreaded3 Swift-Unit :: runtime/./SwiftRuntimeTests/ConcurrentReadableHashMapTest.MultiThreaded4