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

mongo shell may crash when converting invalid regular expression

    • Fully Compatible
    • ALL
    • 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.
    • Server 2.7.1

      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

        1. cmd.png
          cmd.png
          680 kB
        2. dump.zip
          1 kB

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            ranarohitp rohit
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: