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.
- related to
SERVER-51806 bulk key insertion phase of index build holds IX lock without yielding