[LLVMbugs] [Bug 7700] New: bugpoint crashes with Unknown constant!...BitcodeWriter.cpp:905

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jul 24 02:05:02 PDT 2010


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

           Summary: bugpoint crashes with Unknown
                    constant!...BitcodeWriter.cpp:905
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: bugpoint
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: jyasskin at google.com
                CC: llvmbugs at cs.uiuc.edu


As of r108766:

-macbookpro:~/tmp$ cat unit.ll
%rust_task = type {}
define void @_rust_main([0 x i1]*, %rust_task*) {
  ret void , !dbg !9
}
!1 = metadata !{i32 524334, void ([0 x i1]*, %rust_task*)* @_rust_main} ; [
DW_TAG_subprogram ]
!9 = metadata !{i32 11, i32 2, metadata !1, null}

-macbookpro:~/tmp$ /Users/jyasskin/src/llvm/trunk/install/bin/bugpoint -run-llc
unit.ll
Read input file      : 'unit.ll'
*** All input ok
Initializing execution environment: Found gcc: /opt/local/bin/gcc
Running the code generator to test for a crash: <llc>
Generating reference output from raw program: <llc><cbe><gcc>
Error running tool:
  /opt/local/bin/gcc -m32 -x c -fno-strict-aliasing
bugpoint-test-program.bc-rzyyXa.cbe.c -x none -o
bugpoint-test-program.bc-rzyyXa.cbe.c.gcc.exe -lm -O2
Undefined symbols:
  "_main", referenced from:
      start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
*** There is a bug running the "safe" backend.  Either debug it (for example
with the -run-cbe bugpoint option, if CBE is being used as the "safe" backend),
or fix the error some other way.
*** Debugging code generator crash!
Checking for crash with only these blocks: : Unknown constant!
UNREACHABLE executed at
/Users/jyasskin/src/llvm/trunk/src/lib/Bitcode/Writer/BitcodeWriter.cpp:905!
-macbookpro:~/tmp$

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