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

IndexAccessMethod can be destructed during index build bulk load yield

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

      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.

        1. SERVER-59190.diff
          3 kB
          Gregory Noma

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

              Created:
              Updated:
              Resolved: