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

mongoed segfaults when --bind_ip or --bind_ip_all specified

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.3
    • Affects Version/s: 4.0.0
    • Component/s: None
    • None
    • ALL
    • v4.0
    • Hide
      ./mongoed --bind_ip_all
      
      Show
      ./mongoed --bind_ip_all
    • Platforms 2018-08-13, Platforms 2018-08-27, Platforms 2018-09-10, Platforms 2018-09-24

      Program received signal SIGSEGV, Segmentation fault.
      0x0000555558b0cce5 in mongo::executor::NetworkInterfaceTL::shutdown (this=0x7ffff6214c20) at src/mongo/executor/network_interface_tl.cpp:111
      111	    _reactor->stop();
      (gdb) bt
      #0  0x0000555558b0cce5 in mongo::executor::NetworkInterfaceTL::shutdown (this=0x7ffff6214c20) at src/mongo/executor/network_interface_tl.cpp:111
      #1  0x0000555558aecb04 in mongo::executor::ThreadPoolTaskExecutor::_join (this=0x7ffff5759a60, lk=...) at src/mongo/executor/thread_pool_task_executor.cpp:213
      #2  0x0000555558aec117 in mongo::executor::ThreadPoolTaskExecutor::~ThreadPoolTaskExecutor (this=0x7ffff5759a60, __in_chrg=<optimized out>) at src/mongo/executor/thread_pool_task_executor.cpp:137
      #3  0x0000555558aec22a in mongo::executor::ThreadPoolTaskExecutor::~ThreadPoolTaskExecutor (this=0x7ffff5759a60, __in_chrg=<optimized out>) at src/mongo/executor/thread_pool_task_executor.cpp:139
      #4  0x00005555587a464b in std::default_delete<mongo::executor::ThreadPoolTaskExecutor>::operator() (this=0x7fffffffc3b0, __ptr=0x7ffff5759a60) at /opt/mongodbtoolchain/v2/include/c++/5.4.0/bits/unique_ptr.h:76
      #5  0x00005555587a3679 in std::unique_ptr<mongo::executor::ThreadPoolTaskExecutor, std::default_delete<mongo::executor::ThreadPoolTaskExecutor> >::~unique_ptr (this=0x7fffffffc3b0, __in_chrg=<optimized out>) at /opt/mongodbtoolchain/v2/include/c++/5.4.0/bits/unique_ptr.h:236
      #6  0x000055555879fe6d in mongo::(anonymous namespace)::RangeDeleterExecutorHolder::getOrCreateExecutor (this=0x7ffff6100320) at src/mongo/db/s/collection_sharding_state.cpp:83
      #7  0x00005555587a0557 in mongo::CollectionShardingState::CollectionShardingState (this=0x7ffff575e2b0, sc=0x7ffff7f9a620, nss=...) at src/mongo/db/s/collection_sharding_state.cpp:172
      #8  0x00005555587a88ea in __gnu_cxx::new_allocator<mongo::CollectionShardingState>::construct<mongo::CollectionShardingState, mongo::ServiceContext*, mongo::NamespaceString>(mongo::CollectionShardingState*, mongo::ServiceContext*&&, mongo::NamespaceString&&) (this=0x7fffffffc5c7, __p=0x7ffff575e2b0) at /opt/mongodbtoolchain/v2/include/c++/5.4.0/ext/new_allocator.h:120
      #9  0x00005555587a83ca in std::allocator_traits<std::allocator<mongo::CollectionShardingState> >::construct<mongo::CollectionShardingState, mongo::ServiceContext*, mongo::NamespaceString>(std::allocator<mongo::CollectionShardingState>&, mongo::CollectionShardingState*, mongo::ServiceContext*&&, mongo::NamespaceString&&) (__a=..., __p=0x7ffff575e2b0) at /opt/mongodbtoolchain/v2/include/c++/5.4.0/bits/alloc_traits.h:530
      #10 0x00005555587a7c89 in std::_Sp_counted_ptr_inplace<mongo::CollectionShardingState, std::allocator<mongo::CollectionShardingState>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<mongo::ServiceContext*, mongo::NamespaceString>(std::allocator<mongo::CollectionShardingState>, mongo::ServiceContext*&&, mongo::NamespaceString&&) (this=0x7ffff575e2a0, __a=...) at /opt/mongodbtoolchain/v2/include/c++/5.4.0/bits/shared_ptr_base.h:522
      #11 0x00005555587a7097 in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<mongo::CollectionShardingState, std::allocator<mongo::CollectionShardingState>, mongo::ServiceContext*, mongo::NamespaceString>(std::_Sp_make_shared_tag, mongo::CollectionShardingState*, std::allocator<mongo::CollectionShardingState> const&, mongo::ServiceContext*&&, mongo::NamespaceString&&) (this=0x7fffffffc7d8, __a=...) at /opt/mongodbtoolchain/v2/include/c++/5.4.0/bits/shared_ptr_base.h:617
      #12 0x00005555587a6579 in std::__shared_ptr<mongo::CollectionShardingState, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<mongo::CollectionShardingState>, mongo::ServiceContext*, mongo::NamespaceString>(std::_Sp_make_shared_tag, std::allocator<mongo::CollectionShardingState> const&, mongo::ServiceContext*&&, mongo::NamespaceString&&) (this=0x7fffffffc7d0, __tag=..., __a=...) at /opt/mongodbtoolchain/v2/include/c++/5.4.0/bits/shared_ptr_base.h:1097
      #13 0x00005555587a5952 in std::shared_ptr<mongo::CollectionShardingState>::shared_ptr<std::allocator<mongo::CollectionShardingState>, mongo::ServiceContext*, mongo::NamespaceString>(std::_Sp_make_shared_tag, std::allocator<mongo::CollectionShardingState> const&, mongo::ServiceContext*&&, mongo::NamespaceString&&) (this=0x7fffffffc7d0, __tag=..., __a=...) at /opt/mongodbtoolchain/v2/include/c++/5.4.0/bits/shared_ptr.h:319
      #14 0x00005555587a4a92 in std::allocate_shared<mongo::CollectionShardingState, std::allocator<mongo::CollectionShardingState>, mongo::ServiceContext*, mongo::NamespaceString>(std::allocator<mongo::CollectionShardingState> const&, mongo::ServiceContext*&&, mongo::NamespaceString&&) (__a=...) at /opt/mongodbtoolchain/v2/include/c++/5.4.0/bits/shared_ptr.h:620
      #15 0x00005555587a3907 in std::make_shared<mongo::CollectionShardingState, mongo::ServiceContext*, mongo::NamespaceString>(mongo::ServiceContext*&&, mongo::NamespaceString&&) () at /opt/mongodbtoolchain/v2/include/c++/5.4.0/bits/shared_ptr.h:636
      #16 0x000055555879fff2 in mongo::(anonymous namespace)::CollectionShardingStateMap::getOrCreate (this=0x7ffff6100350, ns=...) at src/mongo/db/s/collection_sharding_state.cpp:120
      #17 0x00005555587a06db in mongo::CollectionShardingState::get (opCtx=0x7ffff55f41a0, ns=...) at src/mongo/db/s/collection_sharding_state.cpp:185
      #18 0x00005555587a061c in mongo::CollectionShardingState::get (opCtx=0x7ffff55f41a0, nss=...) at src/mongo/db/s/collection_sharding_state.cpp:176
      #19 0x0000555558797a45 in mongo::AutoGetCollectionForReadCommand::AutoGetCollectionForReadCommand (this=0x7fffffffcd98, opCtx=0x7ffff55f41a0, nsOrUUID=..., viewMode=mongo::AutoGetCollection::kViewsPermitted, deadline=...) at src/mongo/db/db_raii.cpp:264
      #20 0x0000555557a76c24 in boost::optional_detail::optional_base<mongo::AutoGetCollectionForReadCommand>::emplace_assign<mongo::OperationContext*&, mongo::NamespaceStringOrUUID, mongo::AutoGetCollection::ViewMode>(mongo::OperationContext*&, mongo::NamespaceStringOrUUID&&, mongo::AutoGetCollection::ViewMode&&) (this=0x7fffffffcd90) at src/third_party/boost-1.60.0/boost/optional/optional.hpp:494
      #21 0x0000555557a7685c in boost::optional<mongo::AutoGetCollectionForReadCommand>::emplace<mongo::OperationContext*&, mongo::NamespaceStringOrUUID, mongo::AutoGetCollection::ViewMode>(mongo::OperationContext*&, mongo::NamespaceStringOrUUID&&, mongo::AutoGetCollection::ViewMode&&) (this=0x7fffffffcd90) at src/third_party/boost-1.60.0/boost/optional/optional.hpp:981
      #22 0x0000555557a75088 in mongo::(anonymous namespace)::CmdCount::run (this=0x55555ab34880 <mongo::(anonymous namespace)::cmdCount>, opCtx=0x7ffff55f41a0, dbname=..., cmdObj=owned BSONObj 58 bytes @ 0x7ffff62a08e8, result=...) at src/mongo/db/commands/count_cmd.cpp:176
      #23 0x00005555592a4d00 in mongo::BasicCommand::Invocation::run (this=0x7ffff57ce9a0, opCtx=0x7ffff55f41a0, result=0x7fffffffd020) at src/mongo/db/commands.cpp:449
      #24 0x00005555592a038b in mongo::CommandHelpers::runCommandDirectly (opCtx=0x7ffff55f41a0, request=...) at src/mongo/db/commands.cpp:116
      #25 0x0000555559003af6 in mongo::DBDirectClient::count (this=0x7fffffffd240, ns=..., query=unowned empty BSONObj @ 0x55555968d436 <mongo::BSONObj::BSONObj()::kEmptyObjectPrototype>, options=0, limit=0, skip=0) at src/mongo/db/dbdirectclient.cpp:180
      #26 0x0000555557a5f9fe in mongo::(anonymous namespace)::checkIfReplMissingFromCommandLine (opCtx=0x7ffff55f41a0) at src/mongo/db/repair_database_and_check_version.cpp:203
      #27 0x0000555557a6116a in mongo::repairDatabasesAndCheckVersion (opCtx=0x7ffff55f41a0) at src/mongo/db/repair_database_and_check_version.cpp:371
      #28 0x000055555790b67a in mongo::embedded::initialize (yaml_config=0x7ffff625e020 "") at src/mongo/embedded/embedded.cpp:254
      #29 0x00005555578f07d6 in mongo::(anonymous namespace)::mongoedMain (argc=4, argv=0x7fffffffe5b8, envp=0x7fffffffe5e0) at src/mongo/embedded/mongoed_main.cpp:117
      #30 0x00005555578f0cae in main (argc=4, argv=0x7fffffffe5b8, envp=0x7fffffffe5e0) at src/mongo/embedded/mongoed_main.cpp:154
      

      Note: The jsCore_mobile Evergreen task doesn't encounter this issue because resmoke.py doesn't specify --bind_ip_all to mongoed since the changes from SERVER-30683. However, the MongoRunner.runMongod() function does.


      git version: 7d255086ddb335230b1373d5593e65cdc7ba45c3

            Assignee:
            henrik.edin@mongodb.com Henrik Edin
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: