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

mongo shell crashes with missing host

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.4.6, 2.5.0
    • Component/s: Shell
    • Labels:
      None
    • Environment:
      Ubuntu Precise

      Linux dev1.songza.com 2.6.32-347-ec2 #52-Ubuntu SMP Fri Jul 27 14:38:36 UTC 2012 x86_64 GNU/Linux
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      Run "mongo /anything".

      Show
      Run "mongo /anything".

      Description

      $ mongo /songza
      MongoDB shell version: 2.2.1
      connecting to: /songza
      Wed Dec 26 04:14:09 Assertion: 13110:HostAndPort: host is empty
      0x6073f1 0x5d1aa9 0x4e7a79 0x5b6262 0x6aa5ac 0x6aaec8 0x69e4e7 0x6aa13f 0x668e46 0x668ec2 0x66a2ce 0x5cbcc4 0x4b5e09 0x5b09ad 0x4a406b 0x4a67e6 0x7ff9a08f7c4d 0x49f669
      mongo(_ZN5mongo15printStackTraceERSo+0x21) [0x6073f1]
      mongo(_ZN5mongo11msgassertedEiPKc+0x99) [0x5d1aa9]
      mongo(_ZN5mongo16ConnectionString5parseERKSsRSs+0x3c9) [0x4e7a79]
      mongo(ZN5mongo26mongo_external_constructorEP9JSContextP8JSObjectjPlS4+0x132) [0x5b6262]
      mongo(js_Invoke+0x40c) [0x6aa5ac]
      mongo(js_InvokeConstructor+0x108) [0x6aaec8]
      mongo(js_Interpret+0x37c7) [0x69e4e7]
      mongo(js_Execute+0x36f) [0x6aa13f]
      mongo(JS_EvaluateUCScriptForPrincipals+0x66) [0x668e46]
      mongo(JS_EvaluateUCScript+0x22) [0x668ec2]
      mongo(JS_EvaluateScript+0x6e) [0x66a2ce]
      mongo(_ZN5mongo7SMScope4execERKNS_10StringDataERKSsbbbi+0x144) [0x5cbcc4]
      mongo(_ZN5mongo11shell_utils9initScopeERNS_5ScopeE+0x1e9) [0x4b5e09]
      mongo(_ZN5mongo12ScriptEngine8newScopeEv+0x2d) [0x5b09ad]
      mongo(_Z5_mainiPPc+0x1d1b) [0x4a406b]
      mongo(main+0x26) [0x4a67e6]
      /lib/libc.so.6(__libc_start_main+0xfd) [0x7ff9a08f7c4d]
      mongo(__gxx_personality_v0+0x2a1) [0x49f669]
      Wed Dec 26 04:14:09 Error: HostAndPort: host is empty src/mongo/shell/mongo.js:93
      exception: connect failed

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: