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

Windows --dbg=on --opt=off build of mongod does not start

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.5.7
    • Fix Version/s: 3.5.7
    • Component/s: Internal Code
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      Build Windows Enterprise using this command line (the library paths are relative to my development machine):

      buildscripts\scons.py -j 12 --dbg=on --opt=off --ssl --dynamic-windows --win-version-min=ws08r2 CPPPATH="D:/workspace/libs/snmp/include D:/workspace/libs/sasl/include D:/workspace/libs/openssl/include D:/workspace/libs/curl/include" LIBPATH="D:/workspace/libs/snmp/lib D:/workspace/libs/sasl/lib D:/workspace/libs/openssl/lib D:/workspace/libs/curl/lib" VERBOSE=false mongod.exe mongos.exe mongo.exe
      

      Show
      Build Windows Enterprise using this command line (the library paths are relative to my development machine): buildscripts\scons.py -j 12 --dbg=on --opt=off --ssl --dynamic-windows --win-version-min=ws08r2 CPPPATH="D:/workspace/libs/snmp/include D:/workspace/libs/sasl/include D:/workspace/libs/openssl/include D:/workspace/libs/curl/include" LIBPATH="D:/workspace/libs/snmp/lib D:/workspace/libs/sasl/lib D:/workspace/libs/openssl/lib D:/workspace/libs/curl/lib" VERBOSE=false mongod.exe mongos.exe mongo.exe
    • Linked BF Score:
      0

      Description

      It looks like the static initializer for ResourceId runs before that of StringData::ComparatorInterface and the process won't start:

       	mongod.exe!mongo::StringData::ComparatorInterface::hash(mongo::StringData stringToHash) mongo\base\string_data_comparator_interface.h Line 98	C++
       	mongod.exe!mongo::ResourceId::ResourceId(mongo::ResourceType type, mongo::StringData ns) mongo\db\concurrency\lock_manager.cpp Line 1119	C++
       	mongod.exe!mongo::`dynamic initializer for 'resourceIdLocalDB''() mongo\db\concurrency\lock_state.cpp Line 959	C++
       	ucrtbased.dll!_initterm()	Unknown
       	mongod.exe!__scrt_common_main_seh() Line 223	C++
       	mongod.exe!__scrt_common_main() Line 296	C++
       	mongod.exe!wmainCRTStartup() Line 17	C++
       	kernel32.dll!BaseThreadInitThunk()	Unknown
       	ntdll.dll!RtlUserThreadStart()	Unknown
      

      This is most likely a result of the recent vtable changes.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: