GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-94.el7 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: . Attaching to process 27723 Reading symbols from /usr/bin/mongos...(no debugging symbols found)...done. Reading symbols from /lib64/libresolv.so.2...Reading symbols from /usr/lib/debug/usr/lib64/libresolv-2.17.so.debug...done. done. Loaded symbols for /lib64/libresolv.so.2 Reading symbols from /lib64/libcrypto.so.10...Reading symbols from /usr/lib/debug/usr/lib64/libcrypto.so.1.0.2k.debug...done. done. Loaded symbols for /lib64/libcrypto.so.10 Reading symbols from /lib64/libssl.so.10...Reading symbols from /usr/lib/debug/usr/lib64/libssl.so.1.0.2k.debug...done. done. Loaded symbols for /lib64/libssl.so.10 Reading symbols from /lib64/libdl.so.2...Reading symbols from /usr/lib/debug/usr/lib64/libdl-2.17.so.debug...done. done. Loaded symbols for /lib64/libdl.so.2 Reading symbols from /lib64/librt.so.1...Reading symbols from /usr/lib/debug/usr/lib64/librt-2.17.so.debug...done. done. Loaded symbols for /lib64/librt.so.1 Reading symbols from /lib64/libm.so.6...Reading symbols from /usr/lib/debug/usr/lib64/libm-2.17.so.debug...done. done. Loaded symbols for /lib64/libm.so.6 Reading symbols from /lib64/libgcc_s.so.1...Reading symbols from /usr/lib/debug/usr/lib64/libgcc_s-4.8.5-20150702.so.1.debug...done. done. Loaded symbols for /lib64/libgcc_s.so.1 Reading symbols from /lib64/libpthread.so.0...Reading symbols from /usr/lib/debug/usr/lib64/libpthread-2.17.so.debug...done. done. [New LWP 27782] [New LWP 27766] [New LWP 27765] [New LWP 27764] [New LWP 27761] [New LWP 27760] [New LWP 27759] [New LWP 27758] [New LWP 27757] [New LWP 27756] [New LWP 27755] [New LWP 27754] [New LWP 27753] [New LWP 27751] [New LWP 27750] [New LWP 27749] [New LWP 27748] [New LWP 27747] [New LWP 27746] [New LWP 27745] [New LWP 27744] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Loaded symbols for /lib64/libpthread.so.0 Reading symbols from /lib64/libc.so.6...Reading symbols from /usr/lib/debug/usr/lib64/libc-2.17.so.debug...done. done. Loaded symbols for /lib64/libc.so.6 Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/usr/lib64/ld-2.17.so.debug...done. done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 Reading symbols from /lib64/libz.so.1...Reading symbols from /lib64/libz.so.1...(no debugging symbols found)...done. (no debugging symbols found)...done. Loaded symbols for /lib64/libz.so.1 Reading symbols from /lib64/libgssapi_krb5.so.2...Reading symbols from /lib64/libgssapi_krb5.so.2...(no debugging symbols found)...done. (no debugging symbols found)...done. Loaded symbols for /lib64/libgssapi_krb5.so.2 Reading symbols from /lib64/libkrb5.so.3...Reading symbols from /lib64/libkrb5.so.3...(no debugging symbols found)...done. (no debugging symbols found)...done. Loaded symbols for /lib64/libkrb5.so.3 Reading symbols from /lib64/libcom_err.so.2...Reading symbols from /lib64/libcom_err.so.2...(no debugging symbols found)...done. (no debugging symbols found)...done. Loaded symbols for /lib64/libcom_err.so.2 Reading symbols from /lib64/libk5crypto.so.3...Reading symbols from /lib64/libk5crypto.so.3...(no debugging symbols found)...done. (no debugging symbols found)...done. Loaded symbols for /lib64/libk5crypto.so.3 Reading symbols from /lib64/libkrb5support.so.0...Reading symbols from /lib64/libkrb5support.so.0...(no debugging symbols found)...done. (no debugging symbols found)...done. Loaded symbols for /lib64/libkrb5support.so.0 Reading symbols from /lib64/libkeyutils.so.1...Reading symbols from /lib64/libkeyutils.so.1...(no debugging symbols found)...done. (no debugging symbols found)...done. Loaded symbols for /lib64/libkeyutils.so.1 Reading symbols from /lib64/libselinux.so.1...Reading symbols from /lib64/libselinux.so.1...(no debugging symbols found)...done. (no debugging symbols found)...done. Loaded symbols for /lib64/libselinux.so.1 Reading symbols from /lib64/libpcre.so.1...Reading symbols from /lib64/libpcre.so.1...(no debugging symbols found)...done. (no debugging symbols found)...done. Loaded symbols for /lib64/libpcre.so.1 Reading symbols from /lib64/libnss_files.so.2...Reading symbols from /usr/lib/debug/usr/lib64/libnss_files-2.17.so.debug...done. done. Loaded symbols for /lib64/libnss_files.so.2 Reading symbols from /lib64/libnss_dns.so.2...Reading symbols from /usr/lib/debug/usr/lib64/libnss_dns-2.17.so.debug...done. done. Loaded symbols for /lib64/libnss_dns.so.2 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 185 62: movl (%rsp), %edi Thread 22 (Thread 0x7f4d306b7700 (LWP 27744)): #0 0x00007f4d322b9101 in do_sigwait (sig=0x7f4d306b6b5c, set=) at ../sysdeps/unix/sysv/linux/sigwait.c:61 #1 __sigwait (set=0x7f4d35615aa0 , sig=0x7f4d306b6b5c) at ../sysdeps/unix/sysv/linux/sigwait.c:99 #2 0x00007f4d342134fd in mongo::(anonymous namespace)::signalProcessingThread(mongo::LogFileStatus) () #3 0x00007f4d34bad670 in execute_native_thread_routine () #4 0x00007f4d322b1dc5 in start_thread (arg=0x7f4d306b7700) at pthread_create.c:308 #5 0x00007f4d31fe073d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 21 (Thread 0x7f4d2feb6700 (LWP 27745)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x00007f4d34baa5fc in std::condition_variable::wait(std::unique_lock&) () #2 0x00007f4d34a1730d in std::thread::_Impl >::_M_run() () #3 0x00007f4d34bad670 in execute_native_thread_routine () #4 0x00007f4d322b1dc5 in start_thread (arg=0x7f4d2feb6700) at pthread_create.c:308 #5 0x00007f4d31fe073d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 20 (Thread 0x7f4d2f6b5700 (LWP 27746)): #0 0x00007f4d31fe0d13 in epoll_wait () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007f4d344bb8ee in asio::detail::epoll_reactor::run(long, asio::detail::op_queue&) () #2 0x00007f4d344bcf9e in asio::detail::scheduler::do_run_one(asio::detail::conditionally_enabled_mutex::scoped_lock&, asio::detail::scheduler_thread_info&, std::error_code const&) () #3 0x00007f4d344bd4f1 in asio::detail::scheduler::run(std::error_code&) () #4 0x00007f4d344c766e in asio::io_context::run() () #5 0x00007f4d342ffb0d in mongo::transport::TransportLayerASIO::ASIOReactor::run() () #6 0x00007f4d342d9ed8 in mongo::executor::NetworkInterfaceTL::_run() () #7 0x00007f4d34bad670 in execute_native_thread_routine () #8 0x00007f4d322b1dc5 in start_thread (arg=0x7f4d2f6b5700) at pthread_create.c:308 #9 0x00007f4d31fe073d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 19 (Thread 0x7f4d2eeb4700 (LWP 27747)): #0 0x00007f4d31fe0d13 in epoll_wait () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007f4d344bb8ee in asio::detail::epoll_reactor::run(long, asio::detail::op_queue&) () #2 0x00007f4d344bcf9e in asio::detail::scheduler::do_run_one(asio::detail::conditionally_enabled_mutex::scoped_lock&, asio::detail::scheduler_thread_info&, std::error_code const&) () #3 0x00007f4d344bd4f1 in asio::detail::scheduler::run(std::error_code&) () #4 0x00007f4d344c766e in asio::io_context::run() () #5 0x00007f4d342ffb0d in mongo::transport::TransportLayerASIO::ASIOReactor::run() () #6 0x00007f4d342d9ed8 in mongo::executor::NetworkInterfaceTL::_run() () #7 0x00007f4d34bad670 in execute_native_thread_routine () #8 0x00007f4d322b1dc5 in start_thread (arg=0x7f4d2eeb4700) at pthread_create.c:308 #9 0x00007f4d31fe073d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 18 (Thread 0x7f4d2e6b3700 (LWP 27748)): #0 0x00007f4d31fe0d13 in epoll_wait () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007f4d344bb8ee in asio::detail::epoll_reactor::run(long, asio::detail::op_queue&) () #2 0x00007f4d344bcf9e in asio::detail::scheduler::do_run_one(asio::detail::conditionally_enabled_mutex::scoped_lock&, asio::detail::scheduler_thread_info&, std::error_code const&) () #3 0x00007f4d344bd4f1 in asio::detail::scheduler::run(std::error_code&) () #4 0x00007f4d344c766e in asio::io_context::run() () #5 0x00007f4d342ffb0d in mongo::transport::TransportLayerASIO::ASIOReactor::run() () #6 0x00007f4d342d9ed8 in mongo::executor::NetworkInterfaceTL::_run() () #7 0x00007f4d34bad670 in execute_native_thread_routine () #8 0x00007f4d322b1dc5 in start_thread (arg=0x7f4d2e6b3700) at pthread_create.c:308 #9 0x00007f4d31fe073d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 17 (Thread 0x7f4d2deb2700 (LWP 27749)): #0 0x00007f4d31fe0d13 in epoll_wait () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007f4d344bb8ee in asio::detail::epoll_reactor::run(long, asio::detail::op_queue&) () #2 0x00007f4d344bcf9e in asio::detail::scheduler::do_run_one(asio::detail::conditionally_enabled_mutex::scoped_lock&, asio::detail::scheduler_thread_info&, std::error_code const&) () #3 0x00007f4d344bd4f1 in asio::detail::scheduler::run(std::error_code&) () #4 0x00007f4d344c766e in asio::io_context::run() () #5 0x00007f4d342ffb0d in mongo::transport::TransportLayerASIO::ASIOReactor::run() () #6 0x00007f4d342d9ed8 in mongo::executor::NetworkInterfaceTL::_run() () #7 0x00007f4d34bad670 in execute_native_thread_routine () #8 0x00007f4d322b1dc5 in start_thread (arg=0x7f4d2deb2700) at pthread_create.c:308 #9 0x00007f4d31fe073d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 16 (Thread 0x7f4d2d6b1700 (LWP 27750)): #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238 #1 0x00007f4d33ed1bf4 in mongo::ReplSetDistLockManager::doTask() () #2 0x00007f4d34bad670 in execute_native_thread_routine () #3 0x00007f4d322b1dc5 in start_thread (arg=0x7f4d2d6b1700) at pthread_create.c:308 #4 0x00007f4d31fe073d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 15 (Thread 0x7f4d2ceb0700 (LWP 27751)): #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238 #1 0x00007f4d34a17858 in mongo::ClockSource::waitForConditionUntil(std::condition_variable&, std::unique_lock&, mongo::Date_t) () #2 0x00007f4d34a04283 in mongo::OperationContext::waitForConditionOrInterruptNoAssertUntil(std::condition_variable&, std::unique_lock&, mongo::Date_t) () #3 0x00007f4d349bb563 in mongo::KeysCollectionManager::PeriodicRunner::_doPeriodicRefresh(mongo::ServiceContext*, std::__cxx11::basic_string, std::allocator >, mongo::Duration >) () #4 0x00007f4d349bbfd3 in std::thread::_Impl, std::allocator > const&, mongo::Duration >)::{lambda()#1} ()> >::_M_run() () #5 0x00007f4d34bad670 in execute_native_thread_routine () #6 0x00007f4d322b1dc5 in start_thread (arg=0x7f4d2ceb0700) at pthread_create.c:308 #7 0x00007f4d31fe073d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 14 (Thread 0x7f4d2beae700 (LWP 27753)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x00007f4d344bd15b in asio::detail::scheduler::do_run_one(asio::detail::conditionally_enabled_mutex::scoped_lock&, asio::detail::scheduler_thread_info&, std::error_code const&) () #2 0x00007f4d344bd4f1 in asio::detail::scheduler::run(std::error_code&) () #3 0x00007f4d344c766e in asio::io_context::run() () #4 0x00007f4d344b9050 in asio_detail_posix_thread_function () #5 0x00007f4d322b1dc5 in start_thread (arg=0x7f4d2beae700) at pthread_create.c:308 #6 0x00007f4d31fe073d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 13 (Thread 0x7f4d2c6af700 (LWP 27754)): #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238 #1 0x00007f4d341d6c89 in mongo::FTDCController::doLoop() () #2 0x00007f4d34bad670 in execute_native_thread_routine () #3 0x00007f4d322b1dc5 in start_thread (arg=0x7f4d2c6af700) at pthread_create.c:308 #4 0x00007f4d31fe073d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 12 (Thread 0x7f4d2b6ad700 (LWP 27755)): #0 0x00007f4d322b8bdd in nanosleep () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007f4d34aa5fa3 in mongo::sleepmicros(long long) () #2 0x00007f4d33ea6565 in mongo::ShardingUptimeReporter::startPeriodicThread()::{lambda()#1}::operator()() const [clone .isra.94] () #3 0x00007f4d34bad670 in execute_native_thread_routine () #4 0x00007f4d322b1dc5 in start_thread (arg=0x7f4d2b6ad700) at pthread_create.c:308 #5 0x00007f4d31fe073d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 11 (Thread 0x7f4d2aeac700 (LWP 27756)): #0 0x00007f4d322b8bdd in nanosleep () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007f4d34aa603b in mongo::sleepsecs(int) () #2 0x00007f4d33fd3d49 in mongo::ClusterCursorCleanupJob::run() () #3 0x00007f4d344d9af1 in mongo::BackgroundJob::jobBody() () #4 0x00007f4d34bad670 in execute_native_thread_routine () #5 0x00007f4d322b1dc5 in start_thread (arg=0x7f4d2aeac700) at pthread_create.c:308 #6 0x00007f4d31fe073d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 10 (Thread 0x7f4d2a6ab700 (LWP 27757)): #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238 #1 0x00007f4d341f71a6 in mongo::UserCacheInvalidator::run() () #2 0x00007f4d344d9af1 in mongo::BackgroundJob::jobBody() () #3 0x00007f4d34bad670 in execute_native_thread_routine () #4 0x00007f4d322b1dc5 in start_thread (arg=0x7f4d2a6ab700) at pthread_create.c:308 #5 0x00007f4d31fe073d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 9 (Thread 0x7f4d29eaa700 (LWP 27758)): #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238 #1 0x00007f4d344da994 in mongo::(anonymous namespace)::PeriodicTaskRunner::run() () #2 0x00007f4d344d9af1 in mongo::BackgroundJob::jobBody() () #3 0x00007f4d34bad670 in execute_native_thread_routine () #4 0x00007f4d322b1dc5 in start_thread (arg=0x7f4d29eaa700) at pthread_create.c:308 #5 0x00007f4d31fe073d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 8 (Thread 0x7f4d296a9700 (LWP 27759)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x00007f4d34baa5fc in std::condition_variable::wait(std::unique_lock&) () #2 0x00007f4d34443e75 in _ZNSt6thread5_ImplISt12_Bind_simpleIFZN5mongo13SessionKillerC4EPNS2_14ServiceContextESt8functionIFNS2_10StatusWithISt6vectorINS2_11HostAndPortESaIS9_EEEEPNS2_16OperationContextERKNS3_7MatcherEPSt26linear_congruential_engineImLm48271ELm0ELm2147483647EEEEEUlvE_vEEE6_M_runEv () #3 0x00007f4d34bad670 in execute_native_thread_routine () #4 0x00007f4d322b1dc5 in start_thread (arg=0x7f4d296a9700) at pthread_create.c:308 #5 0x00007f4d31fe073d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 7 (Thread 0x7f4d28ea8700 (LWP 27760)): #0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238 #1 0x00007f4d34a17858 in mongo::ClockSource::waitForConditionUntil(std::condition_variable&, std::unique_lock&, mongo::Date_t) () #2 0x00007f4d33ec9b51 in std::thread::_Impl >::_M_run() () #3 0x00007f4d34bad670 in execute_native_thread_routine () #4 0x00007f4d322b1dc5 in start_thread (arg=0x7f4d28ea8700) at pthread_create.c:308 #5 0x00007f4d31fe073d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 6 (Thread 0x7f4d286a7700 (LWP 27761)): #0 0x00007f4d31fe0d13 in epoll_wait () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007f4d344bb8ee in asio::detail::epoll_reactor::run(long, asio::detail::op_queue&) () #2 0x00007f4d344bcf9e in asio::detail::scheduler::do_run_one(asio::detail::conditionally_enabled_mutex::scoped_lock&, asio::detail::scheduler_thread_info&, std::error_code const&) () #3 0x00007f4d344bd4f1 in asio::detail::scheduler::run(std::error_code&) () #4 0x00007f4d344c766e in asio::io_context::run() () #5 0x00007f4d342f40be in std::thread::_Impl >::_M_run() () #6 0x00007f4d34bad670 in execute_native_thread_routine () #7 0x00007f4d322b1dc5 in start_thread (arg=0x7f4d286a7700) at pthread_create.c:308 #8 0x00007f4d31fe073d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 5 (Thread 0x7f4d338e3700 (LWP 27764)): #0 0x00007f4d322b88ed in recvmsg () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007f4d344c1e7a in asio::detail::socket_ops::recv(int, iovec*, unsigned long, int, std::error_code&) () #2 0x00007f4d344c1f38 in asio::detail::socket_ops::sync_recv(int, unsigned char, iovec*, unsigned long, int, bool, std::error_code&) () #3 0x00007f4d3430dabe in unsigned long asio::detail::read_buffer_sequence, asio::mutable_buffers_1, asio::mutable_buffer const*, asio::detail::transfer_all_t>(asio::basic_stream_socket&, asio::mutable_buffers_1 const&, asio::mutable_buffer const* const&, asio::detail::transfer_all_t, std::error_code&) () #4 0x00007f4d34317399 in mongo::future_details::Future mongo::transport::TransportLayerASIO::ASIOSession::opportunisticRead, asio::mutable_buffers_1>(asio::basic_stream_socket&, asio::mutable_buffers_1 const&, std::shared_ptr const&) () #5 0x00007f4d343242af in mongo::future_details::Future mongo::transport::TransportLayerASIO::ASIOSession::read(asio::mutable_buffers_1 const&, std::shared_ptr const&) () #6 0x00007f4d34327bac in mongo::transport::TransportLayerASIO::ASIOSession::sourceMessageImpl(std::shared_ptr const&) () #7 0x00007f4d34328138 in mongo::transport::TransportLayerASIO::ASIOSession::sourceMessage() () #8 0x00007f4d33ebba43 in mongo::ServiceStateMachine::_sourceMessage(mongo::ServiceStateMachine::ThreadGuard) () #9 0x00007f4d33ebc24d in mongo::ServiceStateMachine::_runNextInGuard(mongo::ServiceStateMachine::ThreadGuard) () #10 0x00007f4d33ebfa11 in std::_Function_handler::_M_invoke(std::_Any_data const&) () #11 0x00007f4d342f2605 in std::_Function_handler, mongo::transport::ServiceExecutor::ScheduleFlags, mongo::transport::ServiceExecutorTaskName)::{lambda()#1}>::_M_invoke(std::_Any_data const&) () #12 0x00007f4d34a17c94 in mongo::(anonymous namespace)::runFunc(void*) () #13 0x00007f4d322b1dc5 in start_thread (arg=0x7f4d338e3700) at pthread_create.c:308 #14 0x00007f4d31fe073d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 4 (Thread 0x7f4d276a5700 (LWP 27765)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x00007f4d344bd15b in asio::detail::scheduler::do_run_one(asio::detail::conditionally_enabled_mutex::scoped_lock&, asio::detail::scheduler_thread_info&, std::error_code const&) () #2 0x00007f4d344bd4f1 in asio::detail::scheduler::run(std::error_code&) () #3 0x00007f4d344c766e in asio::io_context::run() () #4 0x00007f4d344b9050 in asio_detail_posix_thread_function () #5 0x00007f4d322b1dc5 in start_thread (arg=0x7f4d276a5700) at pthread_create.c:308 #6 0x00007f4d31fe073d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 3 (Thread 0x7f4d26ea4700 (LWP 27766)): #0 0x00007f4d31fd5dfd in poll () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007f4d3430aa22 in mongo::transport::TransportLayerASIO::BatonASIO::run(mongo::OperationContext*, boost::optional) () #2 0x00007f4d340d2d3e in mongo::AsyncRequestsSender::_makeProgress(mongo::OperationContext*) () #3 0x00007f4d340d4bfb in mongo::AsyncRequestsSender::next() () #4 0x00007f4d33fe706b in mongo::gatherResponses(mongo::OperationContext*, mongo::StringData, mongo::ReadPreferenceSetting const&, mongo::Shard::RetryPolicy, std::vector > const&) () #5 0x00007f4d33febb7d in mongo::scatterGatherVersionedTargetByRoutingTable(mongo::OperationContext*, mongo::StringData, mongo::NamespaceString const&, mongo::CachedCollectionRoutingInfo const&, mongo::BSONObj const&, mongo::ReadPreferenceSetting const&, mongo::Shard::RetryPolicy, mongo::BSONObj const&, mongo::BSONObj const&) () #6 0x00007f4d33f3d812 in mongo::(anonymous namespace)::ClusterFindCmd::explain(mongo::OperationContext*, mongo::OpMsgRequest const&, mongo::ExplainOptions::Verbosity, mongo::BSONObjBuilder*) const () #7 0x00007f4d344eba4c in mongo::BasicCommand::Invocation::explain(mongo::OperationContext*, mongo::ExplainOptions::Verbosity, mongo::BSONObjBuilder*) () #8 0x00007f4d33f2fb1e in mongo::(anonymous namespace)::ClusterExplainCmd::Invocation::run(mongo::OperationContext*, mongo::CommandReplyBuilder*) () #9 0x00007f4d33fa37f9 in mongo::(anonymous namespace)::runCommand(mongo::OperationContext*, mongo::OpMsgRequest const&, mongo::NetworkOp, mongo::BSONObjBuilder&&) [clone .constprop.577] () #10 0x00007f4d33fa4812 in mongo::Strategy::clientCommand(mongo::OperationContext*, mongo::Message const&) () #11 0x00007f4d33ea2357 in mongo::ServiceEntryPointMongos::handleRequest(mongo::OperationContext*, mongo::Message const&) () #12 0x00007f4d33ec154a in mongo::ServiceStateMachine::_processMessage(mongo::ServiceStateMachine::ThreadGuard) () #13 0x00007f4d33ebc1c7 in mongo::ServiceStateMachine::_runNextInGuard(mongo::ServiceStateMachine::ThreadGuard) () #14 0x00007f4d33ebfa11 in std::_Function_handler::_M_invoke(std::_Any_data const&) () #15 0x00007f4d342f20a2 in mongo::transport::ServiceExecutorSynchronous::schedule(std::function, mongo::transport::ServiceExecutor::ScheduleFlags, mongo::transport::ServiceExecutorTaskName) () #16 0x00007f4d33eba3b0 in mongo::ServiceStateMachine::_scheduleNextWithGuard(mongo::ServiceStateMachine::ThreadGuard, mongo::transport::ServiceExecutor::ScheduleFlags, mongo::transport::ServiceExecutorTaskName, mongo::ServiceStateMachine::Ownership) () #17 0x00007f4d33ebd595 in mongo::ServiceStateMachine::_sourceCallback(mongo::Status) () #18 0x00007f4d33ebb907 in mongo::ServiceStateMachine::_sourceMessage(mongo::ServiceStateMachine::ThreadGuard) () #19 0x00007f4d33ebc24d in mongo::ServiceStateMachine::_runNextInGuard(mongo::ServiceStateMachine::ThreadGuard) () #20 0x00007f4d33ebfa11 in std::_Function_handler::_M_invoke(std::_Any_data const&) () #21 0x00007f4d342f2605 in std::_Function_handler, mongo::transport::ServiceExecutor::ScheduleFlags, mongo::transport::ServiceExecutorTaskName)::{lambda()#1}>::_M_invoke(std::_Any_data const&) () #22 0x00007f4d34a17c94 in mongo::(anonymous namespace)::runFunc(void*) () #23 0x00007f4d322b1dc5 in start_thread (arg=0x7f4d26ea4700) at pthread_create.c:308 #24 0x00007f4d31fe073d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 2 (Thread 0x7f4d26ca2700 (LWP 27782)): #0 0x00007f4d322b88ed in recvmsg () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007f4d344c1e7a in asio::detail::socket_ops::recv(int, iovec*, unsigned long, int, std::error_code&) () #2 0x00007f4d344c1f38 in asio::detail::socket_ops::sync_recv(int, unsigned char, iovec*, unsigned long, int, bool, std::error_code&) () #3 0x00007f4d3430dabe in unsigned long asio::detail::read_buffer_sequence, asio::mutable_buffers_1, asio::mutable_buffer const*, asio::detail::transfer_all_t>(asio::basic_stream_socket&, asio::mutable_buffers_1 const&, asio::mutable_buffer const* const&, asio::detail::transfer_all_t, std::error_code&) () #4 0x00007f4d34317399 in mongo::future_details::Future mongo::transport::TransportLayerASIO::ASIOSession::opportunisticRead, asio::mutable_buffers_1>(asio::basic_stream_socket&, asio::mutable_buffers_1 const&, std::shared_ptr const&) () #5 0x00007f4d343242af in mongo::future_details::Future mongo::transport::TransportLayerASIO::ASIOSession::read(asio::mutable_buffers_1 const&, std::shared_ptr const&) () #6 0x00007f4d34327bac in mongo::transport::TransportLayerASIO::ASIOSession::sourceMessageImpl(std::shared_ptr const&) () #7 0x00007f4d34328138 in mongo::transport::TransportLayerASIO::ASIOSession::sourceMessage() () #8 0x00007f4d33ebba43 in mongo::ServiceStateMachine::_sourceMessage(mongo::ServiceStateMachine::ThreadGuard) () #9 0x00007f4d33ebc24d in mongo::ServiceStateMachine::_runNextInGuard(mongo::ServiceStateMachine::ThreadGuard) () #10 0x00007f4d33ebfa11 in std::_Function_handler::_M_invoke(std::_Any_data const&) () #11 0x00007f4d342f2605 in std::_Function_handler, mongo::transport::ServiceExecutor::ScheduleFlags, mongo::transport::ServiceExecutorTaskName)::{lambda()#1}>::_M_invoke(std::_Any_data const&) () #12 0x00007f4d34a17c94 in mongo::(anonymous namespace)::runFunc(void*) () #13 0x00007f4d322b1dc5 in start_thread (arg=0x7f4d26ca2700) at pthread_create.c:308 #14 0x00007f4d31fe073d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 1 (Thread 0x7f4d338e4a40 (LWP 27723)): #0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185 #1 0x00007f4d34baa5fc in std::condition_variable::wait(std::unique_lock&) () #2 0x00007f4d34a9905f in mongo::waitForShutdown() () #3 0x00007f4d33ea040c in mongo::(anonymous namespace)::mongoSMain(int, char**, char**) () #4 0x00007f4d33e515f9 in main () Missing separate debuginfos, use: debuginfo-install mongodb-org-mongos-4.0.5-1.el7.x86_64 (gdb) (gdb) quit A debugging session is active. Inferior 1 [process 27723] will be detached. Quit anyway? (y or n) EOF [assumed Y] Detaching from program: /usr/bin/mongos, process 27723