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

Tools: --port prints stack trace on invalid port

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.5.5
    • Affects Version/s: None
    • Component/s: Tools
    • Fully Compatible
    • ALL

      [pquiza@dannenstation ~]$ mongorestore --port hi
      Mon Nov 11 14:32:49.413 Assertion: 13095:HostAndPort: bad port #
      0xad6506 0xa9bd5a 0x71b211 0x71a5e4 0x6dce0b 0x6c857f 0x7fce3f6d5bc5 0x6e03c5 
       mongorestore(_ZN5mongo15printStackTraceERSo+0x26) [0xad6506]
       mongorestore(_ZN5mongo11msgassertedEiPKc+0x9a) [0xa9bd5a]
       mongorestore(_ZN5mongo11HostAndPortC1ERKSs+0x111) [0x71b211]
       mongorestore(_ZN5mongo16ConnectionString5parseERKSsRSs+0x1f4) [0x71a5e4]
       mongorestore(_ZN5mongo4Tool4mainEiPPc+0xa1b) [0x6dce0b]
       mongorestore(main+0x2f) [0x6c857f]
       /usr/lib/libc.so.6(__libc_start_main+0xf5) [0x7fce3f6d5bc5]
       mongorestore() [0x6e03c5]
      terminate called after throwing an instance of 'mongo::MsgAssertionException'
        what():  HostAndPort: bad port #
      Aborted (core dumped)
      

      Affected tools:
      mongodump
      mongorestore
      mongoexport
      mongoimport
      mongooplog
      mongotop
      mongofiles
      mongostat

            Assignee:
            sverch Shaun Verch
            Reporter:
            phillip.quiza Phillip Quiza
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: