[BF-30666] sbe::UnwindStage does not correctly handle child yields

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.3.0-rc0, 7.2.0-rc2
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v7.2
    • QE 2023-11-13, QE 2023-11-27
    • 155
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      This is a previously existing latent bug that has been exposed by SERVER-80563, where sbe::UnwindStage does not correctly handle child yields and thus references memory (in UnwindStage::_inArrayAccessor) owned by a WiredTiger cursor that has been freed after a child yield event.

      Apparently the prior internal uses of sbe::UnwindStage (e.g. in the SBE $lookup implementation) did not have the possibility of a child yielding under this stage, so the yield code paths were not exercised before. It looks like the bug has been latent for ~3 years.

            Assignee:
            Kevin Cherkauer (Inactive)
            Reporter:
            Kevin Cherkauer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: