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

db.hostInfo() crashes mongod with: Uncaught std::exception: basic_string::_S_create

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.1, 2.3.0
    • Affects Version/s: 2.1.2, 2.2.0
    • Component/s: Diagnostics
    • None
    • Environment:
      Was able to reproduce on Mac OS X 10.7.4 (Lion) and Mac OS X 10.8.1 (Mountain Lion)
    • OS X

      Running db.hostInfo() crashes mongod (2.1.2 and 2.2.0) with

      db.hostInfo()
      Tue Sep 11 09:15:01 DBClientCursor::init call() failed
      Tue Sep 11 09:15:01 query failed : admin.$cmd { hostInfo: 1.0 } to: 127.0.0.1:30000
      Tue Sep 11 09:15:01 Error: error doing query: failed src/mongo/shell/collection.js:155
      Tue Sep 11 09:15:01 trying reconnect to 127.0.0.1:30000
      Tue Sep 11 09:15:01 reconnect 127.0.0.1:30000 failed couldn't connect to server 127.0.0.1:30000
      

      Log file says:

      Tue Sep 11 09:15:01 [conn1] runQuery called admin.$cmd { hostInfo: 1.0 }
      Tue Sep 11 09:15:01 [conn1] run command admin.$cmd { hostInfo: 1.0 }
      Tue Sep 11 09:15:01 [conn1] ERROR: Uncaught std::exception: basic_string::_S_create, terminating
      Tue Sep 11 09:15:01 dbexit: 
      Tue Sep 11 09:15:01 [conn1] shutdown: going to close listening sockets...
      

      Crashed on 3 different machines (2 MBPro, 1 MBAir), tested default port (27017) and custom port (30000), tested binary and compiled on host, replica set and single instance.

      Was not able to reproduce on two other OS X machines.

      Logfile (verbose level 5) is attached.

            Assignee:
            benjamin.becker Ben Becker
            Reporter:
            thomas.rueckstiess@mongodb.com Thomas Rueckstiess
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: