==================
|
WARNING: ThreadSanitizer: data race (pid=31598)
|
Write of size 1 at 0x00010e16a128 by thread T4:
|
#0 _mongoc_handshake_freeze mongoc-handshake.c:565 (libmongoc-1.0.0.dylib:x86_64+0x6560b)
|
#1 _mongoc_topology_do_blocking_scan mongoc-topology.c:643 (libmongoc-1.0.0.dylib:x86_64+0xa3c68)
|
#2 mongoc_topology_select_server_id mongoc-topology.c:879 (libmongoc-1.0.0.dylib:x86_64+0xa46fa)
|
#3 _mongoc_cluster_select_server_id mongoc-cluster.c:2236 (libmongoc-1.0.0.dylib:x86_64+0x301ae)
|
#4 _mongoc_cluster_stream_for_optype mongoc-cluster.c:2282 (libmongoc-1.0.0.dylib:x86_64+0x2a5ac)
|
#5 mongoc_cluster_stream_for_writes mongoc-cluster.c:2368 (libmongoc-1.0.0.dylib:x86_64+0x2a6e7)
|
#6 _mongoc_collection_write_command_execute_idl mongoc-collection.c:94 (libmongoc-1.0.0.dylib:x86_64+0x383e6)
|
#7 mongoc_collection_insert_one mongoc-collection.c:1639 (libmongoc-1.0.0.dylib:x86_64+0x381c7)
|
#8 threadfn example-client.c:16 (example-client:x86_64+0x100003ab4)
|
|
Previous write of size 1 at 0x00010e16a128 by thread T2:
|
#0 _mongoc_handshake_freeze mongoc-handshake.c:565 (libmongoc-1.0.0.dylib:x86_64+0x6560b)
|
#1 _mongoc_topology_do_blocking_scan mongoc-topology.c:643 (libmongoc-1.0.0.dylib:x86_64+0xa3c68)
|
#2 mongoc_topology_select_server_id mongoc-topology.c:879 (libmongoc-1.0.0.dylib:x86_64+0xa46fa)
|
#3 _mongoc_cluster_select_server_id mongoc-cluster.c:2236 (libmongoc-1.0.0.dylib:x86_64+0x301ae)
|
#4 _mongoc_cluster_stream_for_optype mongoc-cluster.c:2282 (libmongoc-1.0.0.dylib:x86_64+0x2a5ac)
|
#5 mongoc_cluster_stream_for_writes mongoc-cluster.c:2368 (libmongoc-1.0.0.dylib:x86_64+0x2a6e7)
|
#6 _mongoc_collection_write_command_execute_idl mongoc-collection.c:94 (libmongoc-1.0.0.dylib:x86_64+0x383e6)
|
#7 mongoc_collection_insert_one mongoc-collection.c:1639 (libmongoc-1.0.0.dylib:x86_64+0x381c7)
|
#8 threadfn example-client.c:16 (example-client:x86_64+0x100003ab4)
|
|
Location is global 'gMongocHandshake' at 0x00010e16a0e0 (libmongoc-1.0.0.dylib+0x0000000ef128)
|
|
Thread T4 (tid=13837519, running) created by main thread at:
|
#0 pthread_create <null>:2668928 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2aced)
|
#1 main example-client.c:37 (example-client:x86_64+0x100003be9)
|
|
Thread T2 (tid=13837517, finished) created by main thread at:
|
#0 pthread_create <null>:2668928 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2aced)
|
#1 main example-client.c:37 (example-client:x86_64+0x100003be9)
|