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

Large number of databases causes seg fault in mongotop

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.2.0-rc0
    • Component/s: Tools
    • Labels:
      None
    • Environment:
      regression from 2.0.6
    • Operating System:
      ALL

      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

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: