Large number of databases causes seg fault in mongotop

XMLWordPrintableJSON

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

      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:
              Daniel Pasette (Inactive)
              Reporter:
              Daniel Pasette (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: