[LLVMbugs] [Bug 1836] New: lli interpreter crashed for integer type whose bitwidth > 64

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Dec 3 00:37:05 PST 2007


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

           Summary: lli interpreter crashed for integer type whose bitwidth
                    > 64
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Interpreter
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: zhousheng00 at gmail.com
                CC: baldrick at free.fr, llvmbugs at cs.uiuc.edu


The lli interpreter  crashed for the following case:

; ModuleID = 'x.c'
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
target triple = "i686-pc-linux-gnu"

define i32 @main() {
entry:
    %retval = alloca i32        ; <i32*> [#uses=2]
    %tmp = alloca i32       ; <i32*> [#uses=2]
    %x = alloca i75, align 16       ; <i75*> [#uses=1]
    %"alloca point" = bitcast i32 0 to i32      ; <i32> [#uses=0]
    store i75 999, i75* %x, align 16
    store i32 0, i32* %tmp, align 4
    %tmp1 = load i32* %tmp, align 4     ; <i32> [#uses=1]
    store i32 %tmp1, i32* %retval, align 4
    br label %return

return:     ; preds = %entry
    %retval2 = load i32* %retval        ; <i32> [#uses=1]
    ret i32 %retval2
}

The output is :

*** glibc detected *** lli: free(): invalid pointer: 0x088cb1d8 ***
======= Backtrace: =========
/lib/libc.so.6[0x479efd]
/lib/libc.so.6(cfree+0x90)[0x47d550]
lli(_ZN4llvm12AllocaHolderD1Ev+0x2b)[0x84bcb4d]
lli(_ZN4llvm18AllocaHolderHandleD1Ev+0x37)[0x84bcbab]
lli(_ZN4llvm16ExecutionContextD1Ev+0x14)[0x84bd780]
lli(_ZN9__gnu_cxx13new_allocatorIN4llvm16ExecutionContextEE7destroyEPS2_+0x11)[0x84bd7af]
... ...


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