[SERVER-33376] MongoDB 3.6.3-rc0 config server segfaults on startup Created: 16/Feb/18  Updated: 27/Oct/23  Resolved: 16/Feb/18

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

Type: Bug Priority: Major - P3
Reporter: Timothy Olsen (Inactive) Assignee: Blake Oler
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File mongod.log    
Issue Links:
Depends
Problem/Incident
is caused by SERVER-32677 Segmentation fault converting Replica... Closed
Related
related to SERVER-33520 Enable background refreshing of the l... Closed
Operating System: ALL
Steps To Reproduce:

1. Create dbpath: mkdir cfg
2. Start a config server: mongod --replSet csrs --configsvr --dbpath cfg --logpath cfg/mongod.log

Participants:

 Description   

I get a segfault when starting a 3.6.3-rc0 config server on macOS

[tim@jazzstep dbs]$ mkdir cfg
[tim@jazzstep dbs]$ /tmp/mms-automation/test/versions/mongodb-osx-ssl-x86_64-3.6.3-rc0/bin/mongod --replSet csrs --configsvr --dbpath cfg --logpath cfg/mongod.log
Segmentation fault: 11

Logfile with stacktrace attached.



 Comments   
Comment by Esha Maharishi (Inactive) [ 21/Feb/18 ]

Symbolized stack trace from my local repro (on commit bb5a78f22349bb67cfe64271662e59ded1f86cb2 of the 3.6 branch):

src/mongo/util/stacktrace_posix.cpp:172:30: mongo::printStackTrace(std::ostream&)
src/mongo/util/signal_handlers_synchronous.cpp:180:5: mongo::(anonymous namespace)::printSignalAndBacktrace(int)
src/mongo/util/signal_handlers_synchronous.cpp:276:5: mongo::(anonymous namespace)::abruptQuitWithAddrSignal(int, siginfo_t*, void*)
 ??:0:0: ??
src/mongo/db/service_liason_mongod.cpp:89:32: mongo::ServiceLiasonMongod::scheduleJob(mongo::PeriodicRunner::PeriodicJob)
src/mongo/db/logical_session_cache_impl.cpp:69:19: mongo::LogicalSessionCacheImpl::LogicalSessionCacheImpl(std::unique_ptr<mongo::ServiceLiason, std::default_delete<mongo::ServiceLiason> >, std::shared_ptr<mongo::SessionsCollection>, std::shared_ptr<mongo::TransactionReaper>, mongo::LogicalSessionCacheImpl::Options)
 /opt/mongodbtoolchain/v2/bin/../lib/gcc/x86_64-mongodb-linux/5.4.0/../../../../include/c++/5.4.0/bits/unique_ptr.h:765:34: std::_MakeUniq<mongo::LogicalSessionCacheImpl>::__single_object std::make_unique<mongo::LogicalSessionCacheImpl, std::unique_ptr<mongo::ServiceLiasonMongod, std::default_delete<mongo::ServiceLiasonMongod> >, std::shared_ptr<mongo::SessionsCollection>, std::shared_ptr<mongo::TransactionReaper>, mongo::LogicalSessionCacheImpl::Options>(std::unique_ptr<mongo::ServiceLiasonMongod, std::default_delete<mongo::ServiceLiasonMongod> >&&, std::shared_ptr<mongo::SessionsCollection>&&, std::shared_ptr<mongo::TransactionReaper>&&, mongo::LogicalSessionCacheImpl::Options&&)
src/mongo/db/logical_session_cache_factory_mongod.cpp:86:12: mongo::makeLogicalSessionCacheD(mongo::ServiceContext*, mongo::LogicalSessionCacheServer)
src/mongo/db/s/sharding_initialization_mongod.cpp:139:25: mongo::initializeGlobalShardingStateForMongod(mongo::OperationContext*, mongo::ConnectionString const&, mongo::StringData)
src/mongo/db/db.cpp:940:13: mongo::(anonymous namespace)::_initAndListen(int)
src/mongo/db/db.cpp:1058:16: mongo::(anonymous namespace)::initAndListen(int)
src/mongo/db/db.cpp:1410:25: mongo::mongoDbMain(int, char**, char**)
src/mongo/db/dbmain.cpp:49:20: main
 /build/glibc-9tT8Do/glibc-2.23/csu/../csu/libc-start.c:291:0: __libc_start_main
 ??:0:0: _start

Comment by Blake Oler [ 16/Feb/18 ]

Verified working again.

Comment by Blake Oler [ 16/Feb/18 ]

esha.maharishi Will look into this promptly.

Comment by Esha Maharishi (Inactive) [ 16/Feb/18 ]

blake.oler, can you revert this backport from the 3.6 branch? We'll need to revisit it and re-commit with a fix, but we don't want this to hold up the release of 3.6.3 (or release 3.6.3 with this crash).

Comment by Eric Milkie [ 16/Feb/18 ]

A commit has been identified as the cause; will determine next steps shortly.
commit cad0d35091f98b5c2bb37765861841844bd9e16d

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