Skip to content

[Bug]: Crash when run jepsen test #322

Description

@yangsw26

mongod log:

2025-11-19T20:28:45.481+0800 I COMMAND  [thread_group_1] command tpcc.$cmd command: update { update: "STOCK", ordered: true, lsid: { id: UUID("107e90ac-acd3-4f2a-83dc-faa3003fb501") }, txnNumber: 784, autocommit: false, $db: "tpcc" } numYields:0 reslen:60 locks:{} proto
col:op_msg 191ms
2025-11-19T20:28:45.557+0800 I TXN      [thread_group_0] transaction parameters:{ lsid: { id: UUID("18aa718e-0a2b-4c78-b92e-27b931ee7261"), uid: BinData(0, E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855) }, txnNumber: 818, autocommit: false, readConcer
n: { level: "snapshot" } }, readTimestamp:Timestamp(0, 0), keysExamined:3 docsExamined:3 nMatched:2 nModified:2 ninserted:1 keysInserted:1 terminationCause:committed timeActiveMicros:2282098 timeInactiveMicros:27960 numYields:0 locks:{} 2310ms
2025-11-19T20:28:45.558+0800 I COMMAND  [thread_group_0] command admin.$cmd command: commitTransaction { commitTransaction: 1, lsid: { id: UUID("18aa718e-0a2b-4c78-b92e-27b931ee7261") }, txnNumber: 818, autocommit: false, writeConcern: { w: 1 }, $db: "admin" } numYields
:0 reslen:38 locks:{} protocol:op_msg 189ms
2025-11-19T20:28:45.559+0800 I TXN      [thread_group_3] transaction parameters:{ lsid: { id: UUID("c171548c-4579-44c5-bfe7-f1d3efd98ea1"), uid: BinData(0, E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855) }, txnNumber: 966, autocommit: false, readConcer
n: { level: "snapshot" } }, readTimestamp:Timestamp(0, 0), keysExamined:43 docsExamined:22 nMatched:1 nModified:1 ninserted:2 keysInserted:6 keysDeleted:1 terminationCause:committed timeActiveMicros:3321019 timeInactiveMicros:29747 numYields:0 locks:{} 3350ms
2025-11-19T20:28:45.559+0800 I COMMAND  [thread_group_3] command admin.$cmd command: commitTransaction { commitTransaction: 1, lsid: { id: UUID("c171548c-4579-44c5-bfe7-f1d3efd98ea1") }, txnNumber: 966, autocommit: false, writeConcern: { w: 1 }, $db: "admin" } numYields
:0 reslen:38 locks:{} protocol:op_msg 1150ms
2025-11-19T20:28:45.562+0800 I COMMAND  [thread_group_1] command tpcc.CUSTOMER command: find { find: "CUSTOMER", filter: { C_W_ID: 356, C_D_ID: 9, $comment: "PAYMENT", C_LAST: "PRESPRIPRI" }, projection: { C_BALANCE: 0, C_YTD_PAYMENT: 0, C_PAYMENT_CNT: 0 }, lsid: { id:
UUID("91c4a852-ecb7-41da-9c92-018a35a713b2") }, txnNumber: 784, autocommit: false, $db: "tpcc" } planSummary: IXSCAN { C_W_ID: 1, C_D_ID: 1, C_LAST: 1 } keysExamined:1 docsExamined:1 cursorExhausted:1 numYields:0 nreturned:1 reslen:962 locks:{} protocol:op_msg 2077ms
2025-11-19T20:28:45.564+0800 I COMMAND  [thread_group_1] command tpcc.$cmd command: update { update: "STOCK", ordered: true, lsid: { id: UUID("5cabdf65-d2a7-4a75-b240-8a167fb83226") }, txnNumber: 815, autocommit: false, $db: "tpcc" } numYields:0 reslen:60 locks:{} proto
col:op_msg 171ms
2025-11-19T20:28:45.573+0800 I COMMAND  [thread_group_0] command tpcc.CUSTOMER command: find { find: "CUSTOMER", filter: { C_W_ID: 330, C_D_ID: 2, $comment: "PAYMENT", C_LAST: "BARESEBAR" }, projection: { C_BALANCE: 0, C_YTD_PAYMENT: 0, C_PAYMENT_CNT: 0 }, lsid: { id: U
UID("eb8a1495-2ef1-4000-9839-c2514a0fbc09") }, txnNumber: 796, autocommit: false, $db: "tpcc" } planSummary: IXSCAN { C_W_ID: 1, C_D_ID: 1, C_LAST: 1 } keysExamined:1 docsExamined:1 cursorExhausted:1 numYields:0 nreturned:1 reslen:873 locks:{} protocol:op_msg 2155ms
2025-11-19T20:28:45.573+0800 I COMMAND  [thread_group_1] command tpcc.$cmd command: update { update: "STOCK", ordered: true, lsid: { id: UUID("eabbf6bc-de3d-4801-bd4f-711b891f6494") }, txnNumber: 764, autocommit: false, $db: "tpcc" } numYields:0 reslen:60 locks:{} proto
col:op_msg 284ms
2025-11-19T20:28:45.581+0800 F -        [thread_group_1] Invalid access at address: 0
2025-11-19T20:28:45.584+0800 I COMMAND  [thread_group_0] command jepsendb.jepsencoll command: create { create: "jepsencoll", capped: false, writeConcern: { w: "majority" }, $db: "jepsendb", lsid: { id: UUID("7e75646c-b481-435b-823c-1ee4a6e7bd52") } } numYields:0 ok:0 er
rMsg:"a collection 'jepsendb.jepsencoll' already exists" errName:NamespaceExists errCode:48 reslen:140 locks:{} protocol:op_msg 495017ms
2025-11-19T20:28:45.584+0800 I NETWORK  [thread_group_0] Error sending response to client: SocketException: Broken pipe. Ending connection from 192.168.122.31:57592 (connection id: 239)
2025-11-19T20:28:45.584+0800 I NETWORK  [thread_group_0] end connection 192.168.122.31:57592 (243 connections now open)
2025-11-19T20:28:45.585+0800 I COMMAND  [thread_group_2] command jepsendb.jepsencoll command: create { create: "jepsencoll", capped: false, writeConcern: { w: "majority" }, $db: "jepsendb", lsid: { id: UUID("d512efe8-a02c-469b-822f-96363ab9719d") } } numYields:0 ok:0 er
rMsg:"a collection 'jepsendb.jepsencoll' already exists" errName:NamespaceExists errCode:48 reslen:140 locks:{} protocol:op_msg 515113ms
2025-11-19T20:28:45.585+0800 I NETWORK  [thread_group_2] Error sending response to client: SocketException: Broken pipe. Ending connection from 192.168.122.31:46388 (connection id: 235)
2025-11-19T20:28:45.585+0800 I NETWORK  [thread_group_2] end connection 192.168.122.31:46388 (242 connections now open)
2025-11-19T20:28:45.587+0800 I TXN      [thread_group_0] transaction parameters:{ lsid: { id: UUID("97a67bb9-f879-4f8a-b833-b4c6f90b6f70"), uid: BinData(0, E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855) }, txnNumber: 735, autocommit: false, readConcer
n: { level: "snapshot" } }, readTimestamp:Timestamp(0, 0), keysExamined:47 docsExamined:24 nMatched:1 nModified:1 ninserted:2 keysInserted:6 keysDeleted:1 terminationCause:committed timeActiveMicros:3211198 timeInactiveMicros:24311 numYields:0 locks:{} 3235ms
2025-11-19T20:28:45.587+0800 I COMMAND  [thread_group_0] command admin.$cmd command: commitTransaction { commitTransaction: 1, lsid: { id: UUID("97a67bb9-f879-4f8a-b833-b4c6f90b6f70") }, txnNumber: 735, autocommit: false, writeConcern: { w: 1 }, $db: "admin" } numYields
:0 reslen:38 locks:{} protocol:op_msg 379ms
2025-11-19T20:28:45.588+0800 I COMMAND  [thread_group_2] command jepsendb.jepsencoll command: create { create: "jepsencoll", capped: false, writeConcern: { w: "majority" }, $db: "jepsendb", lsid: { id: UUID("1547b995-7a0c-4e4e-9221-eea708fe958a") } } numYields:0 ok:0 er
rMsg:"a collection 'jepsendb.jepsencoll' already exists" errName:NamespaceExists errCode:48 reslen:140 locks:{} protocol:op_msg 475003ms
2025-11-19T20:28:45.588+0800 I COMMAND  [thread_group_0] command jepsendb.jepsencoll command: create { create: "jepsencoll", capped: false, writeConcern: { w: "majority" }, $db: "jepsendb", lsid: { id: UUID("d1456bff-9d21-4d34-9130-4512722b3dda") } } numYields:0 ok:0 er
rMsg:"a collection 'jepsendb.jepsencoll' already exists" errName:NamespaceExists errCode:48 reslen:140 locks:{} protocol:op_msg 421969ms
2025-11-19T20:28:45.588+0800 I NETWORK  [thread_group_2] Error sending response to client: SocketException: Broken pipe. Ending connection from 192.168.122.31:53016 (connection id: 243)
2025-11-19T20:28:45.588+0800 I NETWORK  [thread_group_0] Error sending response to client: SocketException: Broken pipe. Ending connection from 192.168.122.31:41242 (connection id: 255)
2025-11-19T20:28:45.588+0800 I NETWORK  [thread_group_2] end connection 192.168.122.31:53016 (241 connections now open)
2025-11-19T20:28:45.588+0800 I NETWORK  [thread_group_0] end connection 192.168.122.31:41242 (240 connections now open)
2025-11-19T20:28:45.590+0800 I COMMAND  [thread_group_0] command jepsendb.jepsencoll command: create { create: "jepsencoll", capped: false, writeConcern: { w: "majority" }, $db: "jepsendb", lsid: { id: UUID("eefbdf66-4651-4761-af1a-c1fcabb27a5e") } } numYields:0 ok:0 er
rMsg:"a collection 'jepsendb.jepsencoll' already exists" errName:NamespaceExists errCode:48 reslen:140 locks:{} protocol:op_msg 234865ms
2025-11-19T20:28:45.590+0800 I NETWORK  [thread_group_0] end connection 192.168.122.31:54334 (239 connections now open)
2025-11-19T20:28:45.592+0800 I COMMAND  [thread_group_2] command jepsendb.jepsencoll command: create { create: "jepsencoll", capped: false, writeConcern: { w: "majority" }, $db: "jepsendb", lsid: { id: UUID("58cc38ff-e769-41ae-a0cb-844223989452") } } numYields:0 ok:0 er
rMsg:"a collection 'jepsendb.jepsencoll' already exists" errName:NamespaceExists errCode:48 reslen:140 locks:{} protocol:op_msg 401925ms
2025-11-19T20:28:45.592+0800 I NETWORK  [thread_group_2] Error sending response to client: SocketException: Broken pipe. Ending connection from 192.168.122.31:45706 (connection id: 259)
2025-11-19T20:28:45.592+0800 I NETWORK  [thread_group_2] end connection 192.168.122.31:45706 (238 connections now open)
2025-11-19T20:28:45.593+0800 I COMMAND  [thread_group_2] command jepsendb.jepsencoll command: create { create: "jepsencoll", capped: false, writeConcern: { w: "majority" }, $db: "jepsendb", lsid: { id: UUID("e6aa21a7-9800-40ac-9618-d639efd680f8") } } numYields:0 ok:0 er
rMsg:"a collection 'jepsendb.jepsencoll' already exists" errName:NamespaceExists errCode:48 reslen:140 locks:{} protocol:op_msg 348753ms
2025-11-19T20:28:45.593+0800 I NETWORK  [thread_group_2] Error sending response to client: SocketException: Broken pipe. Ending connection from 192.168.122.31:47388 (connection id: 271)
2025-11-19T20:28:45.593+0800 I NETWORK  [thread_group_2] end connection 192.168.122.31:47388 (237 connections now open)
2025-11-19T20:28:45.595+0800 I COMMAND  [thread_group_2] command jepsendb.jepsencoll command: create { create: "jepsencoll", capped: false, writeConcern: { w: "majority" }, $db: "jepsendb", lsid: { id: UUID("aeccbf85-df96-4e2f-8afe-0d0a17db4278") } } numYields:0 ok:0 er
rMsg:"a collection 'jepsendb.jepsencoll' already exists" errName:NamespaceExists errCode:48 reslen:140 locks:{} protocol:op_msg 308652ms
2025-11-19T20:28:45.595+0800 I NETWORK  [thread_group_2] end connection 192.168.122.31:37712 (236 connections now open)
2025-11-19T20:28:45.595+0800 F -        [thread_group_1] Got signal: 11 (Segmentation fault).
 0x7f5fc35d6de5 0x7f5fc35d6440 0x7f5fc35d6a04 0x7f5fc1920520 0x7f5fc1a77df9 0x7f5fc0bec8d0 0x7f5fc0be52fb 0x7f5fc0be6481 0x7f5fc0bea901 0x7f5fc112044a 0x7f5fc1120bf2 0x7f5fc1120e5d 0x7f5fbbca637c 0x7f5fbf2ff53d 0x7f5fbdea172c 0x7f5fbdea27b0 0x7f5fbdea3fb2 0x7f5fbdea4921
 0x7f5fc17ec3d4 0x7f5fbfd109b6 0x7f5fbfd0ea55 0x7f5fbe7d724f

core stack:

(gdb) bt
#0  0x00007f5fc1a77df9 in ?? () from /mnt/ssd/eloq/jepsen-eloqdoc-test/eloqdoc-cloud/bin/../lib/libc.so.6
#1  0x00007f5fc0bec8d0 in std::char_traits<char>::compare (__n=<optimized out>, __s2=<optimized out>, __s1=<optimized out>) at /usr/include/c++/11/bits/char_traits.h:389
#2  std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare (this=0x330467527e0, __str=..., this=0x330467527e0, __str=...) at /usr/include/c++/11/bits/basic_string.h:2879
#3  std::operator< <char, std::char_traits<char>, std::allocator<char> > (__rhs=..., __lhs=...) at /usr/include/c++/11/bits/basic_string.h:6343
#4  std::less<void>::_S_cmp<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&> (__u=..., __t=...) at /usr/include/c++/11/bits/stl_function.h:615
#5  std::less<void>::operator()<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&> (__u=..., __t=..., this=<optimized out>)
    at /usr/include/c++/11/bits/stl_function.h:600
#6  std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<mongo::Collection, std::default_delete<mongo::Collection> > >, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<mongo::Collection, std::default_delete<mongo::Collection> > > >, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<mongo::Collection, std::default_delete<mongo::Collection> > > > >::_M_lower_bound (this=0x3304618a8a8, __k=..., __y=0x3304618a8b0, __x=0x330467527c0) at /usr/include/c++/11/bits/stl_tree.h:1905
#7  std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<mongo::Collection, std::default_delete<mongo::Collection> > >, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<mongo::Collection, std::default_delete<mongo::Collection> > > >, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<mongo::Collection, std::default_delete<mongo::Collection> > > > >::find (this=this@entry=0x3304618a8a8, __k=...) at /usr/include/c++/11/bits/stl_tree.h:2523
#8  0x00007f5fc0be52fb in std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::unique_ptr<mongo::Collection, std::default_delete<mongo::Collection> >, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<mongo::Collection, std::default_delete<mongo::Collection> > > > >::find (__x=..., this=0x3304618a8a8) at /usr/include/c++/11/bits/stl_map.h:1170
#9  mongo::DatabaseImpl::getCollection (this=0x3304618a800, opCtx=0x33046072080, nss=..., isForWrite=<optimized out>) at src/mongo/db/catalog/database_impl.cpp:810
#10 0x00007f5fc0be6481 in mongo::DatabaseImpl::getCollection (this=0x3304618a800, opCtx=0x33046072080, ns=..., isForWrite=<optimized out>) at src/mongo/db/catalog/database_impl.cpp:789
#11 0x00007f5fc0bea901 in mongo::Database::getCollection (isForWrite=true, ns=..., opCtx=<optimized out>, this=0x3304675fda0) at src/mongo/db/catalog/database.h:336
#12 mongo::(anonymous namespace)::shim_namespace1541::Implementation::implementation (this=<optimized out>, opCtx=<optimized out>, db=0x3304675fda0, ns=..., collectionOptions=..., createDefaultIndexes=true, idIndex=...) at src/mongo/db/catalog/database_impl.cpp:1556
#13 0x00007f5fc112044a in _ZNK5mongo8Database13ShimBasis_149clIJRPNS_16OperationContextEPS0_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_17CollectionOptionsERKbRKNS_7BSONObjEEEEDTclptclptclptL_ZN11shim_detail7storageIPNS1_17MongoShimImplGutsESt5tupleIJFNS_6StatusES4_S6_NS_10StringDataESF_bSK_ENSN_12AbiCheckTypeILb0EEENSN_13LibTUHookTypeILb1EEENSN_14ImplTUHookTypeILb0EEEEEE4dataEEL_ZNSN_3abiEPKSU_ELDnEEL_ZNSN_3libEPKSW_ELDnEEL_ZNSN_14implementationES4_S6_SR_SF_bSK_Espcl7forwardIT_Efp_EEEDpOS15_ (this=<optimized out>)
    at src/mongo/db/catalog/database.h:149
#14 operator() (__closure=<optimized out>) at src/mongo/db/catalog/create_collection.cpp:118
#15 0x00007f5fc1120bf2 in mongo::writeConflictRetry<mongo::(anonymous namespace)::createCollection(mongo::OperationContext*, const mongo::NamespaceString&, const mongo::BSONObj&, const mongo::BSONObj&, mongo::CollectionOptions::ParseKind)::<lambda()> > (f=..., ns=...,
    opStr=..., opCtx=0x33046072080) at src/mongo/db/concurrency/write_conflict_exception.h:91
#16 mongo::(anonymous namespace)::createCollection (opCtx=<optimized out>, nss=..., cmdObj=..., idIndex=..., kind=<optimized out>) at src/mongo/db/catalog/create_collection.cpp:128
#17 0x00007f5fc1120e5d in mongo::createCollection (opCtx=opCtx@entry=0x33046072080, dbName=..., cmdObj=..., idIndex=...) at src/mongo/db/catalog/create_collection.cpp:140
#18 0x00007f5fbbca637c in mongo::(anonymous namespace)::CmdCreate::run (this=<optimized out>, opCtx=0x33046072080, dbname=..., cmdObj=..., result=...) at src/mongo/db/commands/dbcommands.cpp:431
#19 0x00007f5fbf2ff53d in mongo::BasicCommand::Invocation::run (this=0x330461c9400, opCtx=0x33046072080, result=<optimized out>) at src/mongo/db/commands.cpp:449
#20 0x00007f5fbdea172c in mongo::(anonymous namespace)::runCommandImpl (opCtx=0x33046072080, invocation=0x330461c9400, request=..., replyBuilder=0x330469d47d0, startOperationTime=..., behaviors=..., extraFieldsBuilder=0x7f575665f460, sessionOptions=...,
    atomicCmd=false) at src/mongo/db/service_entry_point_common.cpp:568
#21 0x00007f5fbdea27b0 in mongo::(anonymous namespace)::execCommandDatabase (opCtx=0x33046072080, command=0x7f5fbbd08780 <mongo::(anonymous namespace)::cmdCreate>, request=..., replyBuilder=0x330469d47d0, behaviors=...) at /usr/include/c++/11/bits/unique_ptr.h:173
#22 0x00007f5fbdea3fb2 in operator() (__closure=0x7f575665fa90) at src/mongo/db/service_entry_point_common.cpp:1069
#23 0x00007f5fbdea4921 in mongo::(anonymous namespace)::receivedCommands (behaviors=..., message=..., opCtx=0x33046072080) at src/mongo/db/service_entry_point_common.cpp:1017
#24 mongo::ServiceEntryPointCommon::handleRequest (opCtx=0x33046072080, m=..., behaviors=...) at src/mongo/db/service_entry_point_common.cpp:1390
#25 0x00007f5fc17ec3d4 in mongo::ServiceEntryPointMongod::handleRequest (this=<optimized out>, opCtx=<optimized out>, m=...) at src/mongo/db/service_entry_point_mongod.cpp:123
#26 0x00007f5fbfd109b6 in mongo::ServiceStateMachine::_processMessage (this=0x3304412a800, guard=...) at /usr/include/c++/11/bits/unique_ptr.h:173
#27 0x00007f5fbfd0ea55 in operator() (sink=..., __closure=<optimized out>) at src/mongo/transport/service_state_machine.cpp:141
#28 std::__invoke_impl<boost::context::continuation, mongo::ServiceStateMachine::_runNextInGuard(mongo::ServiceStateMachine::ThreadGuard)::<lambda(boost::context::continuation&&)>&, boost::context::continuation> (__f=...) at /usr/include/c++/11/bits/invoke.h:61
#29 std::__invoke<mongo::ServiceStateMachine::_runNextInGuard(mongo::ServiceStateMachine::ThreadGuard)::<lambda(boost::context::continuation&&)>&, boost::context::continuation> (__fn=...) at /usr/include/c++/11/bits/invoke.h:97
#30 std::invoke<mongo::ServiceStateMachine::_runNextInGuard(mongo::ServiceStateMachine::ThreadGuard)::<lambda(boost::context::continuation&&)>&, boost::context::continuation> (__fn=...) at /usr/include/c++/11/functional:98
#31 boost::context::detail::record<boost::context::continuation, mongo::ServiceStateMachine::NoopAllocator, mongo::ServiceStateMachine::_runNextInGuard(mongo::ServiceStateMachine::ThreadGuard)::<lambda(boost::context::continuation&&)> >::run (fctx=<optimized out>,
    this=<optimized out>) at /usr/include/boost/context/continuation_fcontext.hpp:146
#32 boost::context::detail::context_entry<boost::context::detail::record<boost::context::continuation, mongo::ServiceStateMachine::NoopAllocator, mongo::ServiceStateMachine::_runNextInGuard(mongo::ServiceStateMachine::ThreadGuard)::<lambda(boost::context::continuation&&)> > >(boost::context::detail::transfer_t) (t=...) at /usr/include/boost/context/continuation_fcontext.hpp:80
#33 0x00007f5fbe7d724f in make_fcontext () from /mnt/ssd/eloq/jepsen-eloqdoc-test/eloqdoc-cloud/bin/../lib/libboost_context.so.1.74.0
#34 0x0000000000000000 in ?? ()


(gdb) f 9
#9  mongo::DatabaseImpl::getCollection (this=0x3304618a800, opCtx=0x33046072080, nss=..., isForWrite=<optimized out>) at src/mongo/db/catalog/database_impl.cpp:810
810     src/mongo/db/catalog/database_impl.cpp: No such file or directory.
(gdb) info local
it = <optimized out>
exists = true
version = {static npos = 18446744073709551615, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x330460e9ea0 "be5bffd7-f8ef-431b-a4c1-4729fa5c8cb3"}, _M_string_length = 36, {
    _M_local_buf = "$\000\000\000\000\000\000\000\000\201\005\302\033\344\311", <incomplete sequence \306>, _M_allocated_capacity = 36}}
status = {_error = 0x0}
(gdb) p nss
$1 = (const mongo::NamespaceString &) @0x7f575665e6d0: {static kAdminDb = {_data = 0x7f5fc0ed9855 "admin", _size = 5}, static kLocalDb = {_data = 0x7f5fc0c0c415 "local", _size = 5}, static kConfigDb = {_data = 0x7f5fc0c0c6bf "config", _size = 6},
  static kSystemDotViewsCollectionName = {_data = 0x7f5fc0c0c8c7 "system.views", _size = 12}, static kSystemKeysNamespace = {static kAdminDb = <same as static member of an already seen type>, static kLocalDb = <same as static member of an already seen type>,
    static kConfigDb = <same as static member of an already seen type>, static kSystemDotViewsCollectionName = <same as static member of an already seen type>, static kOrphanCollectionPrefix = {_data = 0x7f5fbeda2fdc "orphan.", _size = 7},
    static kOrphanCollectionDb = {_data = 0x7f5fbeda2f6c "local", _size = 5}, static kServerConfigurationNamespace = {static kAdminDb = <same as static member of an already seen type>, static kLocalDb = <same as static member of an already seen type>,
      static kConfigDb = <same as static member of an already seen type>, static kSystemDotViewsCollectionName = <same as static member of an already seen type>, static kOrphanCollectionPrefix = <same as static member of an already seen type>,
      static kOrphanCollectionDb = <same as static member of an already seen type>, static kServerConfigurationNamespace = <same as static member of an already seen type>, static kSessionTransactionsTableNamespace = {
        static kAdminDb = <same as static member of an already seen type>, static kLocalDb = <same as static member of an already seen type>, static kConfigDb = <same as static member of an already seen type>,
        static kSystemDotViewsCollectionName = <same as static member of an already seen type>, static kOrphanCollectionPrefix = <same as static member of an already seen type>, static kOrphanCollectionDb = <same as static member of an already seen type>,
        static kServerConfigurationNamespace = <same as static member of an already seen type>, static kSessionTransactionsTableNamespace = <same as static member of an already seen type>, static kShardConfigCollectionsNamespace = {
          static kAdminDb = <same as static member of an already seen type>, static kLocalDb = <same as static member of an already seen type>, static kConfigDb = <same as static member of an already seen type>,
          static kSystemDotViewsCollectionName = <same as static member of an already seen type>, static kOrphanCollectionPrefix = <same as static member of an already seen type>, static kOrphanCollectionDb = <same as static member of an already seen type>,
          static kServerConfigurationNamespace = <same as static member of an already seen type>, static kSessionTransactionsTableNamespace = <same as static member of an already seen type>,
          static kShardConfigCollectionsNamespace = <same as static member of an already seen type>, static kShardConfigDatabasesNamespace = {static kAdminDb = <same as static member of an already seen type>,
            static kLocalDb = <same as static member of an already seen type>, static kConfigDb = <same as static member of an already seen type>, static kSystemDotViewsCollectionName = <same as static member of an already seen type>,
            static kOrphanCollectionPrefix = <same as static member of an already seen type>, static kOrphanCollectionDb = <same as static member of an already seen type>, static kServerConfigurationNamespace = <same as static member of an already seen type>,
            static kSessionTransactionsTableNamespace = <same as static member of an already seen type>, static kShardConfigCollectionsNamespace = <same as static member of an already seen type>,
            static kShardConfigDatabasesNamespace = <same as static member of an already seen type>, static kSystemKeysNamespace = <same as static member of an already seen type>, static kRsOplogNamespace = {
              static kAdminDb = <same as static member of an already seen type>, static kLocalDb = <same as static member of an already seen type>, static kConfigDb = <same as static member of an already seen type>,
              static kSystemDotViewsCollectionName = <same as static member of an already seen type>, static kOrphanCollectionPrefix = <same as static member of an already seen type>, static kOrphanCollectionDb = <same as static member of an already seen type>,
              static kServerConfigurationNamespace = <same as static member of an already seen type>, static kSessionTransactionsTableNamespace = <same as static member of an already seen type>,
              static kShardConfigCollectionsNamespace = <same as static member of an already seen type>, static kShardConfigDatabasesNamespace = <same as static member of an already seen type>,
              static kSystemKeysNamespace = <same as static member of an already seen type>, static kRsOplogNamespace = <same as static member of an already seen type>, _ns = {static npos = 18446744073709551615,
                _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x7f5fbeda6050 <mongo::NamespaceString::kRsOplogNamespace+16> "local.oplog.rs"}, _M_string_length = 14, {
                  _M_local_buf = "local.oplog.rs\000", _M_allocated_capacity = 8101745297688063852}}, _dotIndex = 5}, _ns = {static npos = 18446744073709551615,
              _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x32fae0544c0 "config.cache.databases"}, _M_string_length = 22, {_M_local_buf = "\026", '\000' <repeats 14 times>,
                _M_allocated_capacity = 22}}, _dotIndex = 6}, static kSystemKeysNamespace = <same as static member of an already seen type>, static kRsOplogNamespace = <same as static member of an already seen type>, _ns = {static npos = 18446744073709551615,
            _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x32fae0544a0 "config.cache.collections"}, _M_string_length = 24, {_M_local_buf = "\030", '\000' <repeats 14 times>,
              _M_allocated_capacity = 24}}, _dotIndex = 6}, static kShardConfigDatabasesNamespace = <same as static member of an already seen type>, static kSystemKeysNamespace = <same as static member of an already seen type>,
        static kRsOplogNamespace = <same as static member of an already seen type>, _ns = {static npos = 18446744073709551615, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
            _M_p = 0x32fae054480 "config.transactions"}, _M_string_length = 19, {_M_local_buf = "\023", '\000' <repeats 14 times>, _M_allocated_capacity = 19}}, _dotIndex = 6}, static kShardConfigCollectionsNamespace = <same as static member of an already seen type>,
      static kShardConfigDatabasesNamespace = <same as static member of an already seen type>, static kSystemKeysNamespace = <same as static member of an already seen type>, static kRsOplogNamespace = <same as static member of an already seen type>, _ns = {
        static npos = 18446744073709551615, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x32fae054460 "admin.system.version"}, _M_string_length = 20, {
          _M_local_buf = "\024", '\000' <repeats 14 times>, _M_allocated_capacity = 20}}, _dotIndex = 5}, static kSessionTransactionsTableNamespace = <same as static member of an already seen type>,
    static kShardConfigCollectionsNamespace = <same as static member of an already seen type>, static kShardConfigDatabasesNamespace = <same as static member of an already seen type>, static kSystemKeysNamespace = <same as static member of an already seen type>,
    static kRsOplogNamespace = <same as static member of an already seen type>, _ns = {static npos = 18446744073709551615, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
        _M_p = 0x32fae0544e0 "admin.system.keys"}, _M_string_length = 17, {_M_local_buf = "\021", '\000' <repeats 14 times>, _M_allocated_capacity = 17}}, _dotIndex = 5}, _ns = {static npos = 18446744073709551615,
    _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x33046757f40 "jepsendb.jepsencoll"}, _M_string_length = 19, {_M_local_buf = "\023\000\000\000\000\000\000\000 \347eVW\177\000",
      _M_allocated_capacity = 19}}, _dotIndex = 8}
(gdb) p this->_collections
$2 = {_M_t = {
    _M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<mongo::Collection, std::default_delete<mongo::Collection> > > > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<mongo::Collection, std::default_delete<mongo::Collection> > > > >> = {<No data fields>}, <No data fields>}, <std::_Rb_tree_key_compare<std::less<void> >> = {_M_key_compare = {<No data fields>}}, <std::_Rb_tree_header> = {_M_header = {_M_color = (unknown: 0x37200000), _M_parent = 0x330467527c0, _M_left = 0x1e, _M_right = 0x1e}, _M_node_count = 2322289995469254255}, <No data fields>}}}
(gdb) f 3
#3  std::operator< <char, std::char_traits<char>, std::allocator<char> > (__rhs=..., __lhs=...) at /usr/include/c++/11/bits/basic_string.h:6343
6343        { return __lhs.compare(__rhs) < 0; }
(gdb) p __lhs
$3 = (const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > &) @0x330467527e0: {static npos = 18446744073709551615, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
    _M_p = 0x315f44495f575f53 <error: Cannot access memory at address 0x315f44495f575f53>}, _M_string_length = 6864692405621183327, {_M_local_buf = "1_S_QUANTITY_1\000", _M_allocated_capacity = 5638882016424582961}}
(gdb) p __rhs
$4 = (const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > &) @0x3304618a8b0: {static npos = 18446744073709551615, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
    _M_p = 0x202c333637200000 <error: Cannot access memory at address 0x202c333637200000>}, _M_string_length = 3505875396544, {_M_local_buf = "\036\000\000\000\000\000\000\000\036\000\000\000\000\000\000", _M_allocated_capacity = 30}}
(gdb)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    EloqdocbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions