Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-44816

LogicalSessionCacheReap segfault

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.2.1
    • Component/s: None
    • None
    • Fully Compatible
    • ALL

      I get these with regular frequency. Here is an example of a build where 2 out of 3 mongod segfaulted in this manner, causing the run to fail:

      https://evergreen.mongodb.com/task/mongo_ruby_driver_zlib_auth__mongodb_version~4.2_topology~replica_set_auth_and_ssl~auth_and_ssl_ruby~ruby_2.6_os~rhel70_compressor~zlib_test_patch_8cf29a2bc69e3e6f6cba0dfe658c978f5dc7ef8d_5ddb5f752fbabe5e19531faf_19_11_25_04_58_30

      What additional information do I need to provide? So far I don't know if there is a pattern to these segfaults.

      The crash stack (demangled with MongoWatson) is:

       

      0: mongo::printStackTrace(std::ostream&)
      1: mongo::(anonymous namespace)::printSignalAndBacktrace(int)
      2: mongo::(anonymous namespace)::abruptQuitWithAddrSignal(int, siginfo_t*, void*)
      3: ??
      4: std::_shared_ptr_access<mongo::transport::Session, (_gnu_cxx::_Lock_policy)2, false, false>::_M_get() const
      5: execCommandDatabase
      6: receivedCommands
      7: mongo::ServiceEntryPointMongod::handleRequest(mongo::OperationContext*, mongo::Message const&)
      8: mongo::(anonymous namespace)::loopbackBuildResponse(mongo::OperationContext*, mongo::LastError*, mongo::Message&)
      9: mongo::DBDirectClient::call(mongo::Message&, mongo::Message&, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)
      10: mongo::DBClientCursor::init()
      11: mongo::DBClientBase::query(mongo::NamespaceStringOrUUID const&, mongo::Query, int, int, mongo::BSONObj const*, int, int)
      12: mongo::DBDirectClient::query(mongo::NamespaceStringOrUUID const&, mongo::Query, int, int, mongo::BSONObj const*, int, int)
      13: mongo::MongoDSessionCatalog::reapSessionsOlderThan(mongo::OperationContext*, mongo::SessionsCollection&, mongo::Date_t)
      14: mongo::unique_function<int (mongo::OperationContext*, mongo::SessionsCollection&, mongo::Date_t)>::operator()(mongo::OperationContext*, mongo::SessionsCollection&, mongo::Date_t) const
      15: mongo::LogicalSessionCacheImpl::_periodicReap(mongo::Client*)
      16: std::function<void (mongo::Client*)>::operator()(mongo::Client*) const
      17: execute_native_thread_routine
      18: ??
      19: ??

            Assignee:
            dmitry.agranat@mongodb.com Dmitry Agranat
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: