[LLVMbugs] [Bug 9857] New: llvm bitcode writer assertion failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 6 08:26:49 PDT 2011


           Summary: llvm bitcode writer assertion failed
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Bitcode Writer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: quickslyver at free.fr
                CC: llvmbugs at cs.uiuc.edu

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

bug.c is 990208-1.c from gcc torture suite

$clang bug.c -O2 -c -emit-llvm

clang-3.0: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:875: void
WriteConstants(unsigned int, unsigned int, const llvm::ValueEnumerator&,
llvm::BitstreamWriter&, bool): Assertion `BA->getFunction() ==
BA->getBasicBlock()->getParent() && "Malformed blockaddress"' failed.
Stack dump:
0.    Program arguments: llvm-build/bin/clang-3.0 -cc1 -triple
i386-pc-linux-gnu -emit-llvm-bc -disable-free -main-file-name bug.c
-mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-target-cpu pentium4 -momit-leaf-frame-pointer -coverage-file bug.o
-resource-dir llvm-build/bin/../lib/clang/3.0 -O2 -ferror-limit 19
-fmessage-length 117 -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o bug.o -x c bug.c 
1.    <eof> parser at end of file
2.    Per-module optimization passes
3.    Running pass 'Bitcode Writer' on module 'bug.c'.
clang-3: error: unable to execute command: Aborted
clang-3: error: clang frontend command failed due to signal 1 (use -v to see

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