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

Tools do not support SSL

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.4
    • Affects Version/s: 2.5.0
    • Component/s: Tools
    • Labels:
    • Environment:
      Tested on Linux
    • ALL
    • Hide

      1) Turn on mongod with SSL
      2) Run any tool with the flag --ssl

      Show
      1) Turn on mongod with SSL 2) Run any tool with the flag --ssl

      The MongoDB tools execute themselves by first running ` mongo::runGlobalInitializersOrDie(argc, argv, envp);', then parsing their command line arguments. As the ssl arguments haven't been processed prior to initialization, the SSLManager cannot be brought up.

      This manifests with an assertation failure, when it's discovered that the pointer to the manager is NULL:
      spencer@linux:~/mongo> ./mongostat --ssl
      Tue Jun 18 11:39:16.009 Fatal Assertion 16503
      0x12356ab 0x120f1be 0x11fcf9c 0xdb1d61 0x12244d9 0xd38ce7 0xd33540 0xd33089 0xd2cb10 0x11f77c5 0xce8437 0xce849d 0x7f542bec4a15 0xce8309
      ./mongostat(_ZN5mongo15printStackTraceERSo+0x27) [0x12356ab]
      ./mongostat(_ZN5mongo10logContextEPKc+0x5e) [0x120f1be]
      ./mongostat(_ZN5mongo13fassertFailedEi+0x65) [0x11fcf9c]
      ./mongostat(_ZN5mongo7fassertEib+0x29) [0xdb1d61]
      ./mongostat(_ZN5mongo6Socket6secureEPNS_19SSLManagerInterfaceE+0x27) [0x12244d9]
      ./mongostat(_ZN5mongo13MessagingPort6secureEPNS_19SSLManagerInterfaceE+0x2f) [0xd38ce7]
      ./mongostat(_ZN5mongo18DBClientConnection8_connectERSs+0x494) [0xd33540]
      ./mongostat(_ZN5mongo18DBClientConnection7connectERKNS_11HostAndPortERSs+0x87) [0xd33089]
      ./mongostat(_ZNK5mongo16ConnectionString7connectERSsd+0x15c) [0xd2cb10]
      ./mongostat(_ZN5mongo4Tool4mainEiPPc+0xaa7) [0x11f77c5]
      ./mongostat(Z8toolMainiPPcS0+0x6b) [0xce8437]
      ./mongostat(main+0x28) [0xce849d]
      /lib64/libc.so.6(__libc_start_main+0xf5) [0x7f542bec4a15]
      ./mongostat() [0xce8309]
      Tue Jun 18 11:39:16.020

      ***aborting after fassert() failure

      Aborted

            Assignee:
            sverch Shaun Verch
            Reporter:
            spencer.jackson@mongodb.com Spencer Jackson
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: