[LLVMbugs] [Bug 7647] New: non-deterministic x86 clang crash

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jul 14 20:24:18 PDT 2010


           Summary: non-deterministic x86 clang crash
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: regehr at cs.utah.edu
                CC: llvmbugs at cs.uiuc.edu

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

Weird-- I get the various errors below if I repeatedly run this compile

  clang -Os small.c -c

clang: TargetData.cpp:446: uint64_t llvm::TargetData::getTypeSizeInBits(const
llvm::Type*) const: Assertion `Ty->isSized() && "Cannot getTypeInfo() on a type
that is unsized!"' failed.

clang: /home/regehr/z/compiler-build/llvm-r108290/include/llvm/User.h:104:
llvm::Value* llvm::User::getOperand(unsigned int) const: Assertion `i <
NumOperands && "getOperand() out of range!"' failed.

Sometimes I get neither error message! But it always crashes.

regehr at john-home:~/volatile/bugs/tmp326$ clang -v
clang version 2.8 (trunk 108290)
Target: i386-pc-linux-gnu
Thread model: posix

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