[SERVER-6341] Large number of databases causes seg fault in mongotop Created: 07/Jul/12  Updated: 11/Jul/16  Resolved: 10/Jul/12

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: 2.1.2
Fix Version/s: 2.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Daniel Pasette (Inactive) Assignee: Daniel Pasette (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

regression from 2.0.6


Issue Links:
Depends
Operating System: ALL
Participants:

 Description   

Create 85 databases with a single doc.

var numDbs = 85;
 
// insert 1 single doc in each db
for ( i=0; i<numDbs; i++ ) {
    t = db.getSisterDB('boom-' + i)['boom'];
    t.drop();
    t.insert({_id:1, x:1});
}

then run mongotop with no args (--locks doesn't crash)

dan:(git)mongo[master]/$ ./mongotop
connected to: 127.0.0.1
Segmentation fault



 Comments   
Comment by auto [ 10/Jul/12 ]

Author:

{u'date': u'2012-07-09T09:14:19-07:00', u'name': u'Dan Pasette', u'email': u'dan@10gen.com'}

Message: SERVER-6341 - moved getOwned() correct line.
Branch: master
https://github.com/mongodb/mongo/commit/c63594e2e06da782e4db695a36d9f932703629e3

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