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

mongo shell may crash when converting invalid regular expression

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Steps To Reproduce:
      Hide

      I have created a collection named as staffer and when i execute a simple select command db.staffers.find(), mongo shell stop executing.

      Show
      I have created a collection named as staffer and when i execute a simple select command db.staffers.find(), mongo shell stop executing.
    • Sprint:
      Server 2.7.1

      Description

      Issue Status as of Jul 22, 2014

      ISSUE SUMMARY
      If a document contains an invalid regular expression, the mongo shell may crash when trying to display such document.

      USER IMPACT
      The shell may crash with a SegmentationFault error and a stack trace. The mongod process is not affected.

      WORKAROUNDS
      N/A

      AFFECTED VERSIONS
      MongoDB production releases up to 2.6.3 are affected by this issue.

      FIX VERSION
      The fix is included in the 2.6.4 production release.

      RESOLUTION DETAILS
      Fixed as part of SERVER-14107: convert values of either type Javascript or JavascriptWithScope to a string.

      Original description

      Mongo shell version 2.6
      O.S Windows -64
      Database : MongoDB 2.6 windows version

        Attachments

        1. cmd.png
          680 kB
          rohit

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: