Skip to content

deliberately illegal use-after-destroy in llvm/lib/IR/User.cpp #24952

Open
@llvmbot

Description

@llvmbot
Bugzilla Link 24578
Version unspecified
OS Linux
Reporter LLVM Bugzilla Contributor
CC @eugenis,@morehouse

Extended Description

The test lvm/llvm/test:Transforms/ScalarRepl/sroa-fca.ll.test fails when running it with -fsanitize-memory-use-after-dtor, and environment option MSAN_OPTIONS=poison_in_dtor=1

Invalid access of member HasHungOffUses in definition of operator delete for user. The member is inherited from llvm::Value. During test execution, the destructor of some llvm::Value instance is invoked, and poisons its own memory. The later destruction of the User instance fails when it attempts to access the inherited member.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions