[SERVER-5926] Segfault when procesing a command with empty namespace Created: 24/May/12  Updated: 11/Jul/16  Resolved: 27/May/12

Status: Closed
Project: Core Server
Component/s: Stability
Affects Version/s: 2.1.1
Fix Version/s: 2.1.2

Type: Bug Priority: Major - P3
Reporter: Randolph Tan Assignee: Randolph Tan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 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"



 Comments   
Comment by auto [ 27/May/12 ]

Author:

{u'login': u'', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-5926 Segfault when procesing a command with empty namespace

Added proper namespace checking before processing requests on mongod. Also added some fasserts on DBLocks
Branch: master
https://github.com/mongodb/mongo/commit/08e79fde14acc9eeaaf4364f9b95a2ade60a6832

Generated at Thu Feb 08 03:10:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.