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

Segfault when procesing a command with empty namespace

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 2.1.2
    • Component/s: Stability
    • Labels:
      None
    • Operating System:
      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

            Assignee:
            renctan Randolph Tan
            Reporter:
            renctan Randolph Tan
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: