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

Fix CodeFragment::toString()

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • QE 2022-06-27, QE 2022-07-11, QE 2022-07-25

      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

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

              Created:
              Updated:
              Resolved: