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

$regexFind crash when one of the capture group doesn't match the input but pattern matches

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: 4.2.1
    • Fix Version/s: 4.2.2, 4.3.3
    • Component/s: Querying
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.2
    • Sprint:
      Query 2019-12-02
    • Case:

      Description

      When running a simple regex query against 4.2.1 the mongod will crash with:

      2019-11-14T05:52:41.884-0500 F  -        [conn1] terminate() called. An exception is active; attempting to gather more information
      2019-11-14T05:52:41.982-0500 F  -        [conn1] std::exception::what(): out of range
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: