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

shell crashes when calling next() on a cursor that's at the end

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 1.1.0
    • Affects Version/s: 1.0.0
    • Component/s: None
    • None
    • Environment:
      WinXP

      see transcript below:

      > db.test.find()
      > db.test.save(

      {a: 1, b:2, c:3}

      )
      > db.test.save(

      {r: 4, s:5, t:6}

      )
      > db.test.find()

      {"_id" : ObjectId( "4aa12a88820c00000000615a") , "a" : 1 , "b" : 2 , "c" : 3} {"_id" : ObjectId( "4aa12a94820c00000000615b") , "r" : 4 , "s" : 5 , "t" : 6}

      > k=db.test.find()

      {"_id" : ObjectId( "4aa12a88820c00000000615a") , "a" : 1 , "b" : 2 , "c" : 3} {"_id" : ObjectId( "4aa12a94820c00000000615b") , "r" : 4 , "s" : 5 , "t" : 6}

      > k
      > k.hasNext()
      false
      > k.next()
      /* CRASH */

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            jmsachs Jason Sachs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: