IndexAccessMethod can be destructed during index build bulk load yield

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.4.10, 5.0.4, 5.1.0-rc0
    • Affects Version/s: 5.1.0
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v5.0, v4.4
    • Execution Team 2021-08-23, Execution Team 2021-09-06
    • 137
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Yuhong Zhang
            Reporter:
            Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: