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

Sorting with value of Infinity causes assertion

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.5.3
    • Fix Version/s: 2.5.5
    • Component/s: Querying
    • Environment:
    • Operating System:
      ALL

      Description

      Problem:
      Sorting on an element who's value is Infinity, causes an assertion.

      Reproduce:

      db.q.drop()
      db.q.insert({ "_id" : 688, "b" : Infinity })
      db.q.find(  { "b" : { $gte : 314159265019 } }  )
      db.q.find(  { "b" : { $gte : 314159265019 } }  ).sort( { "b" : 1 } )
      error: { "$err" : "assertion src/mongo/db/exec/sort.cpp:166" }

      This executes without an assertion on 2.4.5

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: