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

Fix CodeFragment::toString()

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • None
    • None
    • Fully Compatible
    • QE 2022-06-27, QE 2022-07-11, QE 2022-07-25

    Description

      The VM bytecode toString() function does not work when certain instructions are present (fillEmptyConst, getFieldConst, traversePConst, traverseFConst, and others). This is because the instruction pointer does not advance correctly. We should fix this, and add a sanity test for toString().

      https://github.com/mongodb/mongo/blob/6bd5618937542267553791332394c571973740eb/src/mongo/db/exec/sbe/vm/vm.cpp#L175

      Attachments

        Activity

          People

            parker.felix@mongodb.com Parker Felix
            ian.boros@mongodb.com Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: