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

MongoDB Server Crashes on Windows Server 2019 with Unhandled Exception After Restarting

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 8.0.3
    • Component/s: WiredTiger
    • Environment:
    • ALL
    • Hide

      Steps to reproduce. 

      Installed MongoDB into the location D:\opt\app\MongoDB 
        - Compass installed separately because server is behind locked down corporate network.

      Start server.

      Insert data. Documents stored were about 93kb of JSON data.

      Stop server. 

      Start server again. 

      Using compass or code (Java in our case), attempt to read or insert data. 

      Server crashes with unhandled exception.

      Show
      Steps to reproduce.  Installed MongoDB into the location D:\opt\app\MongoDB    - Compass installed separately because server is behind locked down corporate network. Start server. Insert data. Documents stored were about 93kb of JSON data. Stop server.  Start server again.  Using compass or code (Java in our case), attempt to read or insert data.  Server crashes with unhandled exception.

      Using the MongoDB Community version 8.0.3 Server on Windows Server 2019 Standard, the will start and run as expected. Data can be inserted and retrieved with no problems. 

      Once the MongoDB server is shutdown and restarted, it will crash when trying to access the data created from the original session. 

      It doesn't matter if the server is installed and run as a Windows service or if just the binaries are installed and the server is run from the command interpreter.

      The server will start back up without crashing if we delete the following files:

      <data_dir>\WiredTiger
      <data_dir>\WiredTiger.lock
      <data_dir>\WiredTiger.turtle
      <data_dir>\WiredTiger.wt
      <data_dir>\WiredTigerHS.wt

      The entire <data_dir>\journal\ folder

      However, all of the previously inserted data is then missing.

      We have duplicated this behavior in both MongoDB 8.0.3 and MongoDB 8.04.

      Exception from dump file:

          • WARNING: Unable to verify timestamp for ntdll.dll
            ntdll+0xa1d44:
            00007ffa`5e8a1d44 c3              ret
            0:000> .ecxr.
            Unable to load image c:\MongoDB\bin\mongod.exe, Win32 error 0n2
          • WARNING: Unable to verify timestamp for mongod.exe
            rax=0000000000000008 rbx=0000022cb35190b7 rcx=00007ff64a2ccb40
            rdx=0000000000000001 rsi=0000022cb351a0cb rdi=000000da819fa540
            rip=00007ff6496c208f rsp=000000da819fa470 rbp=000000000000003d
            r8=0000000000000020  r9=0000000000000000 r10=00007ffa53280000
            r11=0000022cb35190b6 r12=0000022cb351a050 r13=0000000000000004
            r14=000000000000003d r15=000000da819fa518
            iopl=0         nv up ei pl zr na po nc
            cs=0033  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00010246
            mongod+0x28c208f:
            00007ff6`496c208f c46278f533      bzhi    r14d,dword ptr [rbx],eax ds:0000022c`b35190b7=6d630343

      After restarting MongoDB Server, the console output when server crashes:

      {"t":\{"$date":"2024-12-13T14:13:43.314-05:00"}

      ,"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn4","msg":"Frame","attr":{"frame":

      {"a":"7FF7BF3E3C44","module":"mongod.exe","file":".../src/mongo/util/future_impl.h","line":1000,"s":"`mongo::future_details::FutureImpl<std::unique_ptr<mongo::transport::SessionWorkflow::Impl::WorkItem,std::default_delete<mongo::transport::SessionWorkflow::Impl::WorkItem> > >::then<mongo::CleanupFuturePolicy<0>,`mongo::transport::SessionWorkflow::Impl::_doOneIteration'::`2'::<lambda_1> >'::`7'::<lambda_1>::operator()","s+":"44"}

      }}

      {"t":\{"$date":"2024-12-13T14:13:43.315-05:00"}

      ,"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn4","msg":"Frame","attr":{"frame":

      {"a":"7FF7BF3E2DD9","module":"mongod.exe","file":".../src/mongo/util/future_impl.h","line":1287,"s":"mongo::future_details::FutureImpl<std::unique_ptr<mongo::transport::SessionWorkflow::Impl::WorkItem,std::default_delete<mongo::transport::SessionWorkflow::Impl::WorkItem> > >::generalImpl<`mongo::future_details::FutureImpl<std::unique_ptr<mongo::transport::SessionWorkflow::Impl::WorkItem,std::default_delete<mongo::transport::SessionWorkflow::Impl::WorkItem> > >::then<mongo::CleanupFuturePolicy<0>,`mongo::transport::SessionWorkflow::Impl::_doOneIteration'::`2'::<lambda_1> >'::`7'::<lambda_1>,`mongo::future_details::FutureImpl<std::unique_ptr<mongo::transport::SessionWorkflow::Impl::WorkItem,std::default_delete<mongo::transport::SessionWorkflow::Impl::WorkItem> > >::then<mongo::CleanupFuturePolicy<0>,`mongo::transport::SessionWorkflow::Impl::_doOneIteration'::`2'::<lambda_1> >'::`7'::<lambda_2>,`mongo::future_details::FutureImpl<std::unique_ptr<mongo::transport::SessionWorkflow::Impl::WorkItem,std::default_delete<mongo::transport::SessionWorkflow::Impl::WorkItem> > >::then<mongo::CleanupFuturePolicy<0>,`mongo::","s+":"129"}

      }}

      {"t":\{"$date":"2024-12-13T14:13:43.322-05:00"}

      ,"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn4","msg":"Frame","attr":{"frame":

      {"a":"7FF7BF3E4C85","module":"mongod.exe","file":".../src/mongo/transport/session_workflow.cpp","line":776,"s":"mongo::transport::SessionWorkflow::Impl::_doOneIteration","s+":"D5"}

      }}

      {"t":\{"$date":"2024-12-13T14:13:43.323-05:00"}

      ,"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn4","msg":"Frame","attr":{"frame":

      {"a":"7FF7BF3E3AA4","module":"mongod.exe","file":".../src/mongo/transport/session_workflow.cpp","line":806,"s":"`mongo::transport::SessionWorkflow::Impl::_scheduleIteration'::`3'::<lambda_1>::operator()","s+":"74"}

      }}

      {"t":\{"$date":"2024-12-13T14:13:43.324-05:00"}

      ,"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn4","msg":"Frame","attr":{"frame":

      {"a":"7FF7BF3E5731","module":"mongod.exe","file":".../src/mongo/util/functional.h","line":254,"s":"`mongo::unique_function<void __cdecl(mongo::Status)>::makeImpl<`mongo::transport::SessionWorkflow::Impl::_scheduleIteration'::`3'::<lambda_1> >'::`2'::SpecificImpl::call","s+":"21"}

      }}

      {"t":\{"$date":"2024-12-13T14:13:43.324-05:00"}

      ,"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn4","msg":"Frame","attr":{"frame":

      {"a":"7FF7BF3E392D","module":"mongod.exe","file":".../src/mongo/transport/session_workflow.cpp","line":480,"s":"`mongo::transport::SessionWorkflow::Impl::_captureContext'::`2'::<lambda_1>::operator()","s+":"8D"}

      }}

      {"t":\{"$date":"2024-12-13T14:13:43.325-05:00"}

      ,"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn4","msg":"Frame","attr":{"frame":

      {"a":"7FF7BF3E5701","module":"mongod.exe","file":".../src/mongo/util/functional.h","line":254,"s":"`mongo::unique_function<void __cdecl(mongo::Status)>::makeImpl<`mongo::transport::SessionWorkflow::Impl::_captureContext'::`2'::<lambda_1> >'::`2'::SpecificImpl::call","s+":"21"}

      }}

      {"t":\{"$date":"2024-12-13T14:13:43.326-05:00"}

      ,"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn4","msg":"Frame","attr":{"frame":

      {"a":"7FF7BF5354FA","module":"mongod.exe","file":".../src/mongo/transport/service_executor_synchronous.cpp","line":154,"s":"`mongo::transport::service_executor_synchronous_detail::ServiceExecutorSyncImpl::SharedState::schedule'::`2'::<lambda_1>::operator()","s+":"CA"}

      }}

      {"t":\{"$date":"2024-12-13T14:13:43.327-05:00"}

      ,"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn4","msg":"Frame","attr":{"frame":

      {"a":"7FF7BF534252","module":"mongod.exe","file":"C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.31.31103/include/thread","line":55,"s":"std::thread::_Invoke<std::tuple<`mongo::stdx::thread::thread<`mongo::transport::launchServiceWorkerThread'::`3'::<lambda_1>,0>'::`1'::<lambda_7_> >,0>","s+":"32"}

      }}

      {"t":\{"$date":"2024-12-13T14:13:43.328-05:00"}

      ,"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn4","msg":"Frame","attr":{"frame":

      {"a":"7FFD20F1268A","module":"ucrtbase.dll","s":"o_exp","s+":"5A"}

      }}

      {"t":\{"$date":"2024-12-13T14:13:43.328-05:00"}

      ,"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"conn4","msg":"Frame","attr":{"frame":

      {"a":"7FFD23537AC4","module":"KERNEL32.DLL","s":"BaseThreadInitThunk","s+":"14"}

      }}

      {"t":\{"$date":"2024-12-13T14:13:43.337-05:00"}

      ,"s":"I",  "c":"CONTROL",  "id":23132,   "ctx":"conn4","msg":"Writing minidump diagnostic file","attr":{"dumpName":"D:\\opt\\app\\MongoDB\\Server\\8.0\\bin
      mongod.2024-12-13T19-13-43.mdmp"}}

      {"t":\{"$date":"2024-12-13T14:13:43.543-05:00"}

      ,"s":"F",  "c":"CONTROL",  "id":23137,   "ctx":"conn4","msg":"*** immediate exit due to unhandled exception"}

       

            Assignee:
            chris.kelly@mongodb.com Chris Kelly
            Reporter:
            anthony.peterson@elevancehealth.com Tony Peterson
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: