[LLVMbugs] [Bug 7661] New: intermittent clang x64 failure: non-trivial casts should be done with the SCEVs directly!

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jul 17 09:13:51 PDT 2010


           Summary: intermittent clang x64 failure: non-trivial casts
                    should be done with the SCEVs directly!
           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=5237)
 --> (http://llvm.org/bugs/attachment.cgi?id=5237)
failure-inducing C

This only happens sometimes.

[regehr at gamow tmp421]$ clang -v
clang version 2.8 (trunk 108621)
Target: x86_64-unknown-linux-gnu
Thread model: posix

[regehr at gamow tmp421]$ clang -O2 small.c -w
clang: ScalarEvolutionExpander.cpp:1274: llvm::Value*
llvm::SCEVExpander::expandCodeFor(const llvm::SCEV*, const llvm::Type*):
Assertion `SE.getTypeSizeInBits(Ty) == SE.getTypeSizeInBits(SH->getType()) &&
"non-trivial casts should be done with the SCEVs directly!"' failed.
0  clang           0x00000000015f297f
1  clang           0x00000000015f4a12
2  libpthread.so.0 0x00007f006f0ed190
3  libc.so.6       0x00007f006e3f24b5 gsignal + 53
4  libc.so.6       0x00007f006e3f5f50 abort + 384
5  libc.so.6       0x00007f006e3eb481 __assert_fail + 241
6  clang           0x00000000014ac514
7  clang           0x000000000133cb87
8  clang           0x000000000133f186
9  clang           0x00000000014689be
llvm::LPPassManager::runOnFunction(llvm::Function&) + 1150
10 clang           0x0000000001575d1d
llvm::FPPassManager::runOnFunction(llvm::Function&) + 637
11 clang           0x000000000143b1fb
12 clang           0x000000000143b975
13 clang           0x000000000157581e
llvm::MPPassManager::runOnModule(llvm::Module&) + 494
14 clang           0x0000000001575997 llvm::PassManagerImpl::run(llvm::Module&)
+ 167
15 clang           0x00000000007a8837
clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&,
clang::TargetOptions const&, llvm::Module*, clang::BackendAction,
llvm::raw_ostream*) + 1639
16 clang           0x00000000007a49db
17 clang           0x00000000008b6f0f clang::ParseAST(clang::Preprocessor&,
clang::ASTConsumer*, clang::ASTContext&, bool, bool,
clang::CodeCompleteConsumer*) + 335
18 clang           0x00000000007a5954 clang::CodeGenAction::ExecuteAction() +
19 clang           0x00000000006c17a5
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 357
20 clang           0x00000000006a3f4b cc1_main(char const**, char const**, char
const*, void*) + 2651
21 clang           0x00000000006aa1b1 main + 3185
22 libc.so.6       0x00007f006e3ddabd __libc_start_main + 253
23 clang           0x00000000006a16a9
Stack dump:
0.      Program arguments:
-cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name small.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir
-O2 -w -ferror-limit 19 -fmessage-length 91 -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-pPz8I0.s -x c small.c 
1.      <eof> parser at end of file
2.      Per-module optimization passes
3.      Running pass 'CallGraph Pass Manager' on module 'small.c'.
4.      Running pass 'Loop Pass Manager' on function '@func_84'
5.      Running pass 'Canonicalize Induction Variables' on basic block
clang: error: clang frontend command failed due to signal 6 (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