MongoDB Windows Service crashes unexpectedly

I installed MongoDB as windows services. But sometimes, it crashes unexpectedly.
I use Windows Server version 1809 (OS Build 17763.3406)
Mongo.log

":{"$date":"2023-09-30T10:01:13.290+08:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"ftdc","msg":"Frame","attr":{"frame":{"a":"7FF765174FF9","module":"mongod.exe","file":".../src/mongo/util/signal_handlers_synchronous.cpp","line":101,"s":"mongo::`anonymous namespace'::endProcessWithSignal","s+":"19"}}}
{"t":{"$date":"2023-09-30T10:01:13.291+08:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"ftdc","msg":"Frame","attr":{"frame":{"a":"7FF765175806","module":"mongod.exe","file":".../src/mongo/util/signal_handlers_synchronous.cpp","line":245,"s":"mongo::`anonymous namespace'::myTerminate","s+":"E6"}}}
{"t":{"$date":"2023-09-30T10:01:13.291+08:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"ftdc","msg":"Frame","attr":{"frame":{"a":"7FF765245FD7","module":"mongod.exe","file":".../src/mongo/stdx/set_terminate_internals.cpp","line":88,"s":"mongo::stdx::dispatch_impl","s+":"17"}}}
{"t":{"$date":"2023-09-30T10:01:13.291+08:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"ftdc","msg":"Frame","attr":{"frame":{"a":"7FF765245FB9","module":"mongod.exe","file":".../src/mongo/stdx/set_terminate_internals.cpp","line":92,"s":"mongo::stdx::TerminateHandlerDetailsInterface::dispatch","s+":"9"}}}
{"t":{"$date":"2023-09-30T10:01:13.291+08:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"ftdc","msg":"Frame","attr":{"frame":{"a":"7FF804FCDE58","module":"ucrtbase.dll","s":"terminate","s+":"18"}}}
{"t":{"$date":"2023-09-30T10:01:13.291+08:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"ftdc","msg":"Frame","attr":{"frame":{"a":"7FFFF87F1AAB","module":"VCRUNTIME140_1.dll","s":"_NLG_Return2","s+":"95B"}}}
{"t":{"$date":"2023-09-30T10:01:13.291+08:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"ftdc","msg":"Frame","attr":{"frame":{"a":"7FFFF87F2317","module":"VCRUNTIME140_1.dll","s":"_NLG_Return2","s+":"11C7"}}}
{"t":{"$date":"2023-09-30T10:01:13.291+08:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"ftdc","msg":"Frame","attr":{"frame":{"a":"7FFFF87F4119","module":"VCRUNTIME140_1.dll","s":"_CxxFrameHandler4","s+":"A9"}}}
{"t":{"$date":"2023-09-30T10:01:13.292+08:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"ftdc","msg":"Frame","attr":{"frame":{"a":"7FF76546AAC8","module":"mongod.exe","file":"d:/a01/_work/43/s/src/vctools/crt/vcstartup/src/gs/amd64/gshandlereh4.cpp","line":86,"s":"__GSHandlerCheck_EH4","s+":"64"}}}
{"t":{"$date":"2023-09-30T10:01:13.292+08:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"ftdc","msg":"Frame","attr":{"frame":{"a":"7FF80823575F","module":"ntdll.dll","s":"_chkstk","s+":"11F"}}}
{"t":{"$date":"2023-09-30T10:01:13.292+08:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"ftdc","msg":"Frame","attr":{"frame":{"a":"7FF808194CEF","module":"ntdll.dll","s":"RtlWalkFrameChain","s+":"14BF"}}}
{"t":{"$date":"2023-09-30T10:01:13.292+08:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"ftdc","msg":"Frame","attr":{"frame":{"a":"7FF808198AE6","module":"ntdll.dll","s":"RtlRaiseException","s+":"316"}}}
{"t":{"$date":"2023-09-30T10:01:13.292+08:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"ftdc","msg":"Frame","attr":{"frame":{"a":"7FF804479319","module":"KERNELBASE.dll","s":"RaiseException","s+":"69"}}}
{"t":{"$date":"2023-09-30T10:01:13.292+08:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"ftdc","msg":"Frame","attr":{"frame":{"a":"7FFFF88066C0","module":"VCRUNTIME140.dll","s":"CxxThrowException","s+":"90"}}}
{"t":{"$date":"2023-09-30T10:01:13.292+08:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"ftdc","msg":"Frame","attr":{"frame":{"a":"7FF7651EDF3D","module":"mongod.exe","file":"C:/data/mci/5397387438e517addde6ea36bfeb6ede/src/build/59f4f0dd/mongo/base/error_codes.cpp","line":2496,"s":"mongo::error_details::throwExceptionForStatus","s+":"42D"}}}
{"t":{"$date":"2023-09-30T10:01:13.293+08:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"ftdc","msg":"Frame","attr":{"frame":{"a":"7FF76517EC27","module":"mongod.exe","file":".../src/mongo/util/assert_util.cpp","line":260,"s":"mongo::uassertedWithLocation","s+":"187"}}}
{"t":{"$date":"2023-09-30T10:01:13.293+08:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"ftdc","msg":"Frame","attr":{"frame":{"a":"7FF76359CF41","module":"mongod.exe","file":".../src/mongo/db/ftdc/controller.cpp","line":254,"s":"mongo::FTDCController::doLoop","s+":"501"}}}
{"t":{"$date":"2023-09-30T10:01:13.293+08:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"ftdc","msg":"Frame","attr":{"frame":{"a":"7FF76359C8DC","module":"mongod.exe","file":"C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.31.31103/include/thread","line":56,"s":"std::thread::_Invoke<std::tuple<<lambda_726633d7e71a0bdccc2c30a401264d8c> >,0>","s+":"2C"}}}
{"t":{"$date":"2023-09-30T10:01:13.293+08:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"ftdc","msg":"Frame","attr":{"frame":{"a":"7FF804F8268A","module":"ucrtbase.dll","s":"o_exp","s+":"5A"}}}
{"t":{"$date":"2023-09-30T10:01:13.293+08:00"},"s":"I",  "c":"CONTROL",  "id":31445,   "ctx":"ftdc","msg":"Frame","attr":{"frame":{"a":"7FF805AB7974","module":"KERNEL32.DLL","s":"BaseThreadInitThunk","s+":"14"}}}
{"t":{"$date":"2023-09-30T10:01:13.295+08:00"},"s":"I",  "c":"CONTROL",  "id":23132,   "ctx":"ftdc","msg":"Writing minidump diagnostic file","attr":{"dumpName":"C:\\Program Files\\MongoDB\\Server\\6.0\\bin\\mongod.2023-09-30T02-01-13.mdmp"}}
{"t":{"$date":"2023-09-30T10:01:13.677+08:00"},"s":"F",  "c":"CONTROL",  "id":23137,   "ctx":"ftdc","msg":"*** immediate exit due to unhandled exception"}

And mdmg file:


************* Preparing the environment for Debugger Extensions Gallery repositories **************
   ExtensionRepository : Implicit
   UseExperimentalFeatureForNugetShare : true
   AllowNugetExeUpdate : true
   AllowNugetMSCredentialProviderInstall : true
   AllowParallelInitializationOfLocalRepositories : true

   -- Configuring repositories
      ----> Repository : LocalInstalled, Enabled: true
      ----> Repository : UserExtensions, Enabled: true

>>>>>>>>>>>>> Preparing the environment for Debugger Extensions Gallery repositories completed, duration 0.000 seconds

************* Waiting for Debugger Extensions Gallery to Initialize **************

>>>>>>>>>>>>> Waiting for Debugger Extensions Gallery to Initialize completed, duration 0.078 seconds
   ----> Repository : UserExtensions, Enabled: true, Packages count: 0
   ----> Repository : LocalInstalled, Enabled: true, Packages count: 36

Microsoft (R) Windows Debugger Version 10.0.25921.1001 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.


Loading Dump File [C:\Users\aaron.vo\Desktop\mongod.2023-10-03T14-24-13.mdmp]
User Mini Dump File: Only registers, stack and portions of memory are available


************* Path validation summary **************
Response                         Time (ms)     Location
Deferred                                       srv*
Symbol search path is: srv*
Executable search path is: 
Windows 10 Version 17763 MP (8 procs) Free x64
Product: Server, suite: TerminalServer DataCenter SingleUserTS
Edition build lab: 17763.1.amd64fre.rs5_release.180914-1434
Debug session time: Tue Oct  3 21:24:13.000 2023 (UTC + 7:00)
System Uptime: not available
Process Uptime: 1 days 5:12:28.000
............................................
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(3a0c.32f0): Unknown exception - code e0000001 (first/second chance not available)
For analysis of this file, run !analyze -v
ntdll!NtGetContextThread+0x14:
00007ff8`08232494 c3              ret
0:021> !analyze -v
*******************************************************************************
*                                                                             *
*                        Exception Analysis                                   *
*                                                                             *
*******************************************************************************


KEY_VALUES_STRING: 1

    Key  : Analysis.CPU.mSec
    Value: 1077

    Key  : Analysis.Elapsed.mSec
    Value: 11362

    Key  : Analysis.IO.Other.Mb
    Value: 4

    Key  : Analysis.IO.Read.Mb
    Value: 3

    Key  : Analysis.IO.Write.Mb
    Value: 19

    Key  : Analysis.Init.CPU.mSec
    Value: 1078

    Key  : Analysis.Init.Elapsed.mSec
    Value: 54456

    Key  : Analysis.Memory.CommitPeak.Mb
    Value: 77

    Key  : Failure.Bucket
    Value: APPLICATION_FAULT_e0000001_mongod.exe!Unknown

    Key  : Failure.Hash
    Value: {87ea1f7d-1c2e-882d-7844-2eb57a54811c}

    Key  : Timeline.Process.Start.DeltaSec
    Value: 105148

    Key  : WER.OS.Branch
    Value: rs5_release

    Key  : WER.OS.Version
    Value: 10.0.17763.1

    Key  : WER.Process.Version
    Value: 6.0.5.0


FILE_IN_CAB:  mongod.2023-10-03T14-24-13.mdmp

NTGLOBALFLAG:  0

CONTEXT:  (.ecxr)
rax=0000000000000000 rbx=0000000000000001 rcx=0000000000000000
rdx=0000000000000000 rsi=0000005a183feaf0 rdi=00000000ffffffff
rip=00007ff804479319 rsp=0000005a183fdff0 rbp=0000005a183fe300
 r8=0000000000000000  r9=0000000000000000 r10=00007ff763346aa0
r11=0000000000000000 r12=0000000000000000 r13=0000005a183fecb0
r14=0000005a183fe4b0 r15=0000005a183fe4e0
iopl=0         nv up ei pl nz na pe nc
cs=0033  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00000202
KERNELBASE!RaiseException+0x69:
00007ff8`04479319 0f1f440000      nop     dword ptr [rax+rax]
Resetting default scope

EXCEPTION_RECORD:  (.exr -1)
ExceptionAddress: 00007ff804479319 (KERNELBASE!RaiseException+0x0000000000000069)
   ExceptionCode: e0000001
  ExceptionFlags: 00000001
NumberParameters: 0

PROCESS_NAME:  mongod.exe

ERROR_CODE: (NTSTATUS) 0xe0000001 - <Unable to get error code text>

EXCEPTION_CODE_STR:  e0000001

STACK_TEXT:  
0000005a`183fdff0 00007ff7`65174ff9     : 00000000`00000000 00000000`00000000 00000000`00000000 00007ff7`6516016a : KERNELBASE!RaiseException+0x69
0000005a`183fe0d0 00000000`00000000     : 00000000`00000000 00000000`00000000 00007ff7`6516016a 00000000`e0000001 : mongod+0x2094ff9


SYMBOL_NAME:  mongod+2094ff9

MODULE_NAME: mongod

IMAGE_NAME:  mongod.exe

STACK_COMMAND:  ~21s; .ecxr ; kb

FAILURE_BUCKET_ID:  APPLICATION_FAULT_e0000001_mongod.exe!Unknown

OS_VERSION:  10.0.17763.1

BUILDLAB_STR:  rs5_release

OSPLATFORM_TYPE:  x64

OSNAME:  Windows 10

IMAGE_VERSION:  6.0.5.0

FAILURE_ID_HASH:  {87ea1f7d-1c2e-882d-7844-2eb57a54811c}

Followup:     MachineOwner
---------

0:021> .exr -1
ExceptionAddress: 00007ff804479319 (KERNELBASE!RaiseException+0x0000000000000069)
   ExceptionCode: e0000001
  ExceptionFlags: 00000001
NumberParameters: 0

Thank you in advanced.

Does anyone know the reason ? :sweat_smile: