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

IndexAccessMethod can be destructed during index build bulk load yield

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 5.1.0
    • Fix Version/s: 4.4.10, 5.0.4, 5.1.0-rc0
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v5.0, v4.4
    • Sprint:
      Execution Team 2021-08-23, Execution Team 2021-09-06
    • Linked BF Score:
      137

      Description

      If an index build is aborted while it yields its locks during the bulk load phase, the AbstractIndexAccessMethod will be destructed. Then if we read any member state after this has occurred, for instance reading the _indexCatalogEntry member, this is undefined behavior.

      Reproducer attached – run with UBSAN.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yuhong.zhang Yuhong Zhang
              Reporter:
              gregory.noma Gregory Noma
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: