Hi, Really often application core dumped, when sending mongodb query with some mongoc driver writing function like insert or update, or even when iterating cursor returned frome the mongoc driver. Moreover, it may complete with no issues with the absolutely identical queries.
Following the gdb trace (may be question is not so correct, but) is it possible to identify which side the issue on systems or driver? It seems that the issue somewhere between mongoc makes strlen call. Sorry, if i missed something. gdb trace here #0 strlen () at /usr/src/lib/libc/arch/amd64/string/strlen.S:125 #1 0x000001ccf0f4db22 in _mongoc_handshake_build_doc_with_application () from /usr/local/lib/libmongoc-1.0.so.0.0 #2 0x000001ccf0f816d1 in _build_ismaster_with_handshake () from /usr/local/lib/libmongoc-1.0.so.0.0 #3 0x000001ccf0f815af in _mongoc_topology_scanner_get_ismaster () from /usr/local/lib/libmongoc-1.0.so.0.0 #4 0x000001ccf0f82c08 in _begin_ismaster_cmd () from /usr/local/lib/libmongoc-1.0.so.0.0 #5 0x000001ccf0f82a7d in mongoc_topology_scanner_node_setup_tcp () from /usr/local/lib/libmongoc-1.0.so.0.0 #6 0x000001ccf0f82203 in mongoc_topology_scanner_node_setup () from /usr/local/lib/libmongoc-1.0.so.0.0 #7 0x000001ccf0f8336b in mongoc_topology_scanner_start () from /usr/local/lib/libmongoc-1.0.so.0.0 #8 0x000001ccf0f7b2dc in mongoc_topology_scan_once () from /usr/local/lib/libmongoc-1.0.so.0.0 #9 0x000001ccf0f7b244 in _mongoc_topology_do_blocking_scan () from /usr/local/lib/libmongoc-1.0.so.0.0 #10 0x000001ccf0f7b88c in mongoc_topology_select_server_id () from /usr/local/lib/libmongoc-1.0.so.0.0 #11 0x000001ccf0f290c0 in _mongoc_cluster_select_server_id () from /usr/local/lib/libmongoc-1.0.so.0.0 #12 0x000001ccf0f24f14 in _mongoc_cluster_stream_for_optype () from /usr/local/lib/libmongoc-1.0.so.0.0 #13 0x000001ccf0f25029 in mongoc_cluster_stream_for_writes () from /usr/local/lib/libmongoc-1.0.so.0.0 #14 0x000001ccf0f2e2ad in _mongoc_collection_write_command_execute () from /usr/local/lib/libmongoc-1.0.so.0.0 #15 0x000001ccf0f30785 in mongoc_collection_remove () from /usr/local/lib/libmongoc-1.0.so.0.0 different mongoc latest versions tried # mongod --version db version v3.2.22 git version: 105acca0d443f9a47c1a5bd608fd7133840a58dd OpenSSL version: LibreSSL 3.0.2 allocator: system modules: none build environment: distarch: x86_64 target_arch: x86_64 # gcc -v Reading specs from /usr/lib/gcc-lib/amd64-unknown-openbsd6.6/4.2.1/specs Target: amd64-unknown-openbsd6.6 Configured with: OpenBSD/amd64 system compiler Thread model: posix gcc version 4.2.1 20070719 # uname -a OpenBSD m10-csvpn.rt.ru 6.6 GENERIC.MP#3 amd64