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

Large number of databases causes seg fault in mongotop

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.0-rc0
    • Affects Version/s: 2.1.2
    • Component/s: Tools
    • None
    • Environment:
      regression from 2.0.6
    • ALL

      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
      

            Assignee:
            dan@mongodb.com Daniel Pasette (Inactive)
            Reporter:
            dan@mongodb.com Daniel Pasette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: