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

Mongo crashes if query for collection in new db

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Blocker - P1 Blocker - P1
    • 2.2.0-rc0
    • Affects Version/s: 2.1.2
    • Component/s: None
    • None
    • Environment:
      Win2008, Win7
    • ALL

      A new db is used and a query is executed against it causing the mongod process to crash.

      Step to repro:

      1. Initiate mongo console to mongod
      2. Type "use foo" where "foo" is a new database name (never used before)
      3. Type "db.Bar.find()"
      4. Watch process die horribly...

      NOTE: I made sure to clear out all data files to be sure I wasn't using a previously existant db.

        1. run-mongod.bat
          0.1 kB
        2. run-mongod.bat
          0.1 kB
        3. mongo.log
          5 kB

            benjamin.becker Ben Becker
            davidmohara David O'Hara
            0 Vote for this issue
            4 Start watching this issue