[llvm-bugs] [Bug 24578] New: deliberately illegal se-after-destroy in llvm/lib/IR/User.cpp

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 25 14:25:14 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24578

            Bug ID: 24578
           Summary: deliberately illegal se-after-destroy in
                    llvm/lib/IR/User.cpp
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nmusgrave at google.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150825/df90c13c/attachment.html>


More information about the llvm-bugs mailing list