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

IndexAccessMethod can be destructed during index build bulk load yield

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.4.10, 5.0.4, 5.1.0-rc0
    • 5.1.0
    • None
    • None
    • Fully Compatible
    • ALL
    • v5.0, v4.4
    • Execution Team 2021-08-23, Execution Team 2021-09-06
    • 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

        Activity

          People

            yuhong.zhang@mongodb.com Yuhong Zhang
            gregory.noma@mongodb.com Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: