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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Internal Code
    • None
    • ALL

    Description

      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()
      

      Attachments

        Activity

          People

            backlog-server-platform DO NOT USE - Backlog - Platform Team
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: