[LLVMbugs] [Bug 5770] New: Assertion in leak checker

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Dec 12 11:09:19 PST 2009


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

           Summary: Assertion in leak checker
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: asl at math.spbu.ru
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=3940)
 --> (http://llvm.org/bugs/attachment.cgi?id=3940)
Testcase

Consider the attached testcase.

Running llc yields:

$ ./llc sh.ll 
llc: /home/asl/proj/llvm/src/lib/VMCore/LeaksContext.h:50: void
LeakDetectorImpl<T>::addGarbage(const T*) [with T = void]: Assertion
`Ts.count(Cache) == 0 && "Object already in set!"' failed.

running llc under valgrind hides the problem (no warnings / errors as well)

It seems that something does not clean all the used stuff - assertion goes
aways, when few functions are removed from the .ll file....


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