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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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@mongodb.com Kevin Cherkauer
            Reporter:
            kevin.cherkauer@mongodb.com Kevin Cherkauer
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: