[SERVER-44816] LogicalSessionCacheReap segfault Created: 25/Nov/19  Updated: 10/Dec/19  Resolved: 10/Dec/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.2.1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Oleg Pudeyev (Inactive) Assignee: Dmitry Agranat
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-43079 failpoint triggered by LogicalSession... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

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: ??

Generated at Thu Feb 08 05:07:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.