[LLVMbugs] [Bug 3113] New: "this->replaceAllUsesWith(this) is NOT valid!"

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Nov 22 15:49:51 PST 2008


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

           Summary: "this->replaceAllUsesWith(this) is NOT valid!"
           Product: libraries
           Version: 2.4
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core LLVM classes
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sliedes at cc.hut.fi
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=2235)
 --> (http://llvm.org/bugs/attachment.cgi?id=2235)
Test case

Running "opt bugpoint-reduced-simplified.bc -codegenprepare" on the attached
bitcode file produces an assertion failure in Value::replaceAllUsesWith() with
the message "this->replaceAllUsesWith(this) is NOT valid!":

------------------------------------------------------------
$ opt bugpoint-reduced-simplified.bc -codegenprepare
opt: /home/sliedes/llvm/src/llvm-2.4/lib/VMCore/Value.cpp:317: void
llvm::Value::replaceAllUsesWith(llvm::Value*): Assertion `New != this &&
"this->replaceAllUsesWith(this) is NOT valid!"' failed.
opt[0x7603af]
/lib/libc.so.6[0x7f3a05afcf60]
/lib/libc.so.6(gsignal+0x35)[0x7f3a05afced5]
/lib/libc.so.6(abort+0x183)[0x7f3a05afe3f3]
/lib/libc.so.6(__assert_fail+0xe9)[0x7f3a05af5dc9]
opt(_ZN4llvm5Value18replaceAllUsesWithEPS0_+0x16f)[0x7132df]
opt[0x4ded38]
opt[0x4df3f1]
opt[0x4dfab0]
opt(_ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE+0x15b)[0x6ff8ab]
opt(_ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE+0xa6)[0x6ffb86]
opt(_ZN4llvm13MPPassManager11runOnModuleERNS_6ModuleE+0xd0)[0x6ff3d0]
opt(_ZN4llvm15PassManagerImpl3runERNS_6ModuleE+0x86)[0x6ff686]
opt(main+0xa5f)[0x49035f]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7f3a05ae91a6]
opt(sinh+0x39)[0x485379]
Aborted
------------------------------------------------------------

Architecture is amd64.


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