[LLVMbugs] [Bug 13495] New: llc holding on to MDNode during shutdown

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 31 15:03:27 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13495

             Bug #: 13495
           Summary: llc holding on to MDNode during shutdown
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8974
  --> http://llvm.org/bugs/attachment.cgi?id=8974
testcase

The attached .ll file is a bugpoint reduction from a file in OpenCV built by
clang with -gline-tables-only. 

nlewycky at ducttape:~$ llvm/Debug+Asserts/bin/llc bug-debug.ll
While deleting: metadata %
An asserting value handle still pointed to this value!
UNREACHABLE executed at Value.cpp:620!
0  llc             0x000000000151a4b5
1  llc             0x000000000151aac8
2  libpthread.so.0 0x00007f634129b8f0
3  libc.so.6       0x00007f634058aa75 gsignal + 53
4  libc.so.6       0x00007f634058e5c0 abort + 384
5  llc             0x00000000014ff1fe
6  llc             0x00000000014aefae
llvm::ValueHandleBase::ValueIsDeleted(llvm::Value*) + 750
7  llc             0x00000000014aeaff llvm::Value::~Value() + 63
8  llc             0x000000000147663b llvm::MDNode::~MDNode() + 315
9  llc             0x00000000014767db llvm::MDNode::destroy() + 59
10 llc             0x000000000146944e llvm::LLVMContextImpl::~LLVMContextImpl()
+ 1390
11 llc             0x0000000001467e9d llvm::LLVMContext::~LLVMContext() + 45
12 llc             0x00000000014689aa
13 llc             0x0000000001504f0b llvm::ManagedStaticBase::destroy() const
+ 155
14 llc             0x0000000001504f51 llvm::llvm_shutdown() + 33
15 llc             0x0000000000606af1
16 llc             0x00000000005f6ba5
17 llc             0x00000000005f46bb main + 6347
18 libc.so.6       0x00007f6340575c4d __libc_start_main + 253
19 llc             0x00000000005f0cc9
Stack dump:
0.      Program arguments: llvm/Debug+Asserts/bin/llc bug-debug.ll 
Aborted

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list