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

Tools: --port prints stack trace on invalid port

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.5
    • Component/s: Tools
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL

      Description

      [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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: