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

Segfault when procesing a command with empty namespace

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.1.1
    • 2.1.2
    • Stability
    • None
    • ALL

    Description

      A simple program that can make the mongod server crash:

      string errMsg;
      DBClientConnection conn;
      conn.connect( "localhost:27017", errMsg );
       
      BSONObj result;
      conn.runCommand( "", BSON( "count" << "" ), result );

      Note: v2.0.4 handles this gracefully by throwing the assertion: "User Assertion: 13074:db name can't be empty"

      Attachments

        Activity

          People

            randolph@mongodb.com Randolph Tan
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: