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

           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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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

  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.

reg...@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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to