Invariant if Ctrl+C handler runs before certain mongo initializers have run

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If Ctrl+C is pressed before the mongo initializers have run (which is pretty unlikely), mongod could fail with an invariant during thread name initialization of the Ctrl+C handler thread:

      mongod.exe!mongo::invariantFailed(const char * expr=0x00007ff7ada2bdc8, const char * file=0x00007ff7ada2bd98, unsigned int line=63) Line 152
      mongod.exe!mongo::setThreadName(mongo::StringData name) Line 63
      mongod.exe!mongo::Client::initThread(const char * desc=0x00007ff7ada64050, mongo::ServiceContext * service=0x000000ed0714db30, mongo::AbstractMessagingPort * mp=0x0000000000000000) Line 89
      mongod.exe!mongo::Client::initThread(const char * desc=0x00007ff7ada64050, mongo::AbstractMessagingPort * mp=0x0000000000000000) Line 70
      mongod.exe!mongo::`anonymous namespace'::consoleTerminate(const char * controlCodeName=0x00007ff7ada640a8) Line 94
      mongod.exe!mongo::`anonymous namespace'::CtrlHandler(unsigned long fdwCtrlType=0) Line 103
      KERNELBASE.dll!CtrlRoutine()
      kernel32.dll!BaseThreadInitThunk()
      ntdll.dll!RtlUserThreadStart()
      

            Assignee:
            DO NOT USE - Backlog - Platform Team
            Reporter:
            Kaloian Manassiev
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: