[LLVMbugs] [Bug 6653] New: LiveInterval leaks VNInfos

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 18 23:45:55 PDT 2010


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

           Summary: LiveInterval leaks VNInfos
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: jyasskin at google.com
                CC: evan.cheng at apple.com, llvmbugs at cs.uiuc.edu


LiveInterval allocates VNInfo objects with a BumpPtrAllocator. Unfortunately,
VNInfo::kills is a SmallVector<>, which needs to be destroyed.
LiveInterval::clear() helpfully destroys the VNInfos, but the crashes that
result from calling that in ~LiveInterval indicate that the same VNInfo can
wind up in two different LiveIntervals' valnos lists.

Found by valgrinding test/CodeGen/Blackfin/jumptable.ll. The crashes show up in
CodeGen/X86/2009-04-27-CoalescerAssert.ll, CodeGen/X86/i2k.ll,
CodeGen/X86/iv-users-in-other-loops.ll, and CodeGen/X86/pic.ll.

-- 
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