[LLVMbugs] [Bug 5278] New: Crash in BitcodeReader::ParseMetadataAttachment()

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Oct 22 14:26:02 PDT 2009


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

           Summary: Crash in BitcodeReader::ParseMetadataAttachment()
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Bitcode Reader
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: jyasskin at google.com
                CC: dpatel at apple.com, llvmbugs at cs.uiuc.edu


Created an attachment (id=3688)
 --> (http://llvm.org/bugs/attachment.cgi?id=3688)
bc that crashes lli

When called from lli, the attached bitcode file crashes in
BitcodeReader::ParseMetadataAttachment().

bugpoint also crashed on OSX trying to reduce the test case:

$ Debug/bin/bugpoint -run-jit  fib.bc 
Read input file      : 'fib.bc'
*** All input ok
Initializing execution environment: Found lli:
/Users/jyasskin/src/llvm/trunk/obj/Debug/bin/lli
Running the code generator to test for a crash: 
Generating reference output from raw program: <cbe><gcc><program>
Reference output is: bugpoint.reference.out-PpLumv

*** Checking the code generator...
<jit>
*** Input program does not match reference diff!
Debugging code generator problem!
Checking to see if the program is misoptimized when these functions are run
through the passes: fib_left fib_right fib main
<cbe><gcc>
Error running tool:
  /opt/local/bin/gcc -x c -fno-strict-aliasing bugpoint.safe.bc-qp2574.cbe.c -x
none -shared -fPIC -o bugpoint.safe.bc-qp2574.cbe.c.dylib -O2
Undefined symbols:
  "_main", referenced from:
      start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
*** Debugging code generator crash!

Checking to see if we can delete global inits: 
  - Removing all global inits hides problem!

*** Attempting to reduce the number of functions in the testcase
Checking for crash with only these functions:  fib_left fib_right fib main: 
Checking for crash with only these blocks: entry if.then if.end return entry
if.then if.end return entry if.then... <13 total>: 
Checking for crash with only 62 instructions: 

*** Attempting to reduce testcase by deleting instructions: Simplification
Level #1
Checking instruction:   %retval = alloca i32                            ;
<i32*> [#uses=3]
Checking instruction:   %i.addr = alloca i32                            ;
<i32*> [#uses=5]
Checking instruction:   store i32 %i, i32* %i.addr
Checking instruction:   %0 = bitcast i32* %i.addr to { }*               ; <{
}*> [#uses=1]invalid llvm.dbg.declare intrinsic call
  call void @llvm.dbg.declare({ }* null, metadata !0)
Broken module found, compilation aborted!
$ /opt/local/bin/gcc --version
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5488)


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