[LLVMbugs] [Bug 3995] New: assertion "invalid memory reference"

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Apr 15 22:41:10 PDT 2009


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

           Summary: assertion "invalid memory reference"
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicholas at mxc.ca
                CC: llvmbugs at cs.uiuc.edu, nlewycky at google.com


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

This is a recent failure.

$ llvm-as < c.ll | llc 
llc: X86ATTAsmPrinter.cpp:617: void
llvm::X86ATTAsmPrinter::printMemReference(const llvm::MachineInstr*, unsigned
int, const char*): Assertion `isMem(MI, Op) && "Invalid memory reference!"'
failed.
0   llc 0x089d33ea
1   llc 0x089d391d
2       0xffffe400 __kernel_sigreturn + 0
Stack dump:
0.      Program arguments: llvm-commit/Debug/bin/llc 
1.      Running pass 'X86 AT&T-Style Assembly Printer' on function '@test'
Aborted

#0  0xffffe425 in __kernel_vsyscall ()
#1  0xf7c61640 in *__GI_raise (sig=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2  0xf7c63008 in *__GI_abort () at abort.c:88
#3  0xf7c5a5ce in *__GI___assert_fail (
    assertion=0x8a78824 "isMem(MI, Op) && \"Invalid memory reference!\"", 
    file=0x8a7800b "X86ATTAsmPrinter.cpp", line=617, 
    function=0x8a7c9e0 "void llvm::X86ATTAsmPrinter::printMemReference(const
llvm::MachineInstr*, unsigned int, const char*)") at assert.c:78
#4  0x0838aff4 in llvm::X86ATTAsmPrinter::printMemReference (this=0x9007af0, 
    MI=0x900d68c, Op=1, Modifier=0x0) at X86ATTAsmPrinter.cpp:617
#5  0x083939f3 in llvm::X86ATTAsmPrinter::printf64mem (this=0x9007af0, 
    MI=0x900d68c, OpNo=1) at X86ATTAsmPrinter.h:88
#6  0x0838bc35 in llvm::X86ATTAsmPrinter::printInstruction (this=0x9007af0, 
    MI=0x900d68c)
    at
/home/nicholas/llvm-commit/lib/Target/X86/AsmPrinter/../X86GenAsmWriter.inc:2281
#7  0x0838d130 in llvm::X86ATTAsmPrinter::printMachineInstruction (
    this=0x9007af0, MI=0x900d68c) at X86ATTAsmPrinter.cpp:765
#8  0x0838d43c in llvm::X86ATTAsmPrinter::runOnMachineFunction (
    this=0x9007af0, MF=@0x900cfa0) at X86ATTAsmPrinter.cpp:253
#9  0x0873d1e3 in llvm::MachineFunctionPass::runOnFunction (this=0x9007af0, 
    F=@0x8fe9b90) at MachineFunction.cpp:47
#10 0x0895360a in llvm::FPPassManager::runOnFunction (this=0x8ff0e18, 
    F=@0x8fe9b90) at PassManager.cpp:1338
#11 0x089540f8 in llvm::FunctionPassManagerImpl::run (this=0x8fe7fd0, 
    F=@0x8fe9b90) at PassManager.cpp:1291
#12 0x089542c9 in llvm::FunctionPassManager::run (this=0xffb2caa8, 
    F=@0x8fe9b90) at PassManager.cpp:1233
#13 0x08049cb4 in main (argc=3, argv=0xffb2cbd4) at llc.cpp:322


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