[LLVMbugs] [Bug 6068] New: clang crashes on the attached test cast, in fast-isel

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Jan 17 15:01:43 PST 2010


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

           Summary: clang crashes on the attached test cast, in fast-isel
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: daniel at zuster.org
                CC: llvmbugs at cs.uiuc.edu


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

This is a file from compiler-rt.
--
$ ddunbar at giles:tmp$ clang -m32 -g t.i
0  clang             0x000000010128ba9b PrintStackTrace(void*) + 38
1  clang             0x000000010128c029 SignalHandler(int) + 336
2  libSystem.B.dylib 0x00007fff82f1feaa _sigtramp + 26
3  libSystem.B.dylib 0x0000003f0005c870 _sigtramp + 2098448864
4  clang             0x00000001010c3645 bool llvm::isa_impl<llvm::Instruction,
llvm::Value>(llvm::Value const&) + 21
5  clang             0x0000000100e01509 llvm::isa_impl_wrap<llvm::Instruction,
llvm::Value const, llvm::Value const>::doit(llvm::Value const&) + 21
6  clang             0x00000001010c385d bool
llvm::isa_impl_cl<llvm::Value>::isa<llvm::Instruction>(llvm::Value const&) + 21
7  clang             0x0000000100f9f269 bool llvm::isa_impl_cl<llvm::Value
const>::isa<llvm::Instruction>(llvm::Value const&) + 21
8  clang             0x00000001010c3879 bool llvm::isa_impl_cl<llvm::Value
const*>::isa<llvm::Instruction>(llvm::Value const*) + 21
9  clang             0x0000000100f9f288 bool llvm::isa<llvm::Instruction,
llvm::Value const*>(llvm::Value const* const&) + 24
10 clang             0x00000001010c38c5 llvm::AllocaInst::classof(llvm::Value
const*) + 21
11 clang             0x00000001010c3909 bool llvm::isa_impl<llvm::AllocaInst,
llvm::Value>(llvm::Value const&) + 21
12 clang             0x0000000100aeedc1 llvm::isa_impl_wrap<llvm::AllocaInst,
llvm::Value const, llvm::Value const>::doit(llvm::Value const&) + 21
13 clang             0x00000001010c3925 bool
llvm::isa_impl_cl<llvm::Value>::isa<llvm::AllocaInst>(llvm::Value const&) + 21
14 clang             0x0000000100aeeddd bool
llvm::isa_impl_cl<llvm::Value*>::isa<llvm::AllocaInst>(llvm::Value*) + 21
15 clang             0x0000000100d1abd8 bool llvm::isa<llvm::AllocaInst,
llvm::Value*>(llvm::Value* const&) + 24
16 clang             0x0000000100e04eed llvm::cast_retty<llvm::AllocaInst,
llvm::Value*>::ret_type llvm::dyn_cast<llvm::AllocaInst,
llvm::Value*>(llvm::Value* const&) + 21
17 clang             0x0000000100d19126 llvm::FastISel::SelectCall(llvm::User*)
+ 292
18 clang             0x0000000100d1a438
llvm::FastISel::SelectOperator(llvm::User*, unsigned int) + 1130
19 clang             0x0000000100d1a66e
llvm::FastISel::SelectInstruction(llvm::Instruction*) + 40
20 clang             0x0000000100e13afa
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function&,
llvm::MachineFunction&, llvm::MachineModuleInfo*, llvm::DwarfWriter*,
llvm::TargetInstrInfo const&) + 1744
21 clang             0x0000000100e14c23
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 969
22 clang             0x0000000100ed1e45
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 83
23 clang             0x000000010120fbbe
llvm::FPPassManager::runOnFunction(llvm::Function&) + 336
24 clang             0x00000001012118b9
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 79
25 clang             0x0000000101211a68
llvm::FunctionPassManager::run(llvm::Function&) + 112
26 clang             0x000000010003dc12 (anonymous
namespace)::BackendConsumer::EmitAssembly() + 682
27 clang             0x000000010003dce1 (anonymous
namespace)::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 145
28 clang             0x000000010030e398 clang::ParseAST(clang::Preprocessor&,
clang::ASTConsumer*, clang::ASTContext&, bool, bool,
clang::CodeCompleteConsumer*) + 776
29 clang             0x000000010005ef1a
clang::ASTFrontendAction::ExecuteAction() + 256
30 clang             0x000000010005f00a clang::FrontendAction::Execute() + 226
31 clang             0x0000000100044554
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 726
32 clang             0x0000000100025abd cc1_main(char const**, char const**,
char const*, void*) + 1273
33 clang             0x0000000100028f5a main + 252
34 clang             0x0000000100024b88 start + 52
35 clang             0x000000000000001b start + 4294816967
Stack dump:
0.      Program arguments:
/Volumes/Data/Users/ddunbar/llvm.obj.64/Debug/bin/clang -cc1 -triple
i386-apple-darwin10.0 -S -disable-free -main-file-name t.i -pic-level 1
-mdisable-fp-elim -target-cpu yonah -g -resource-dir
/Volumes/Data/Users/ddunbar/llvm.obj.64/Debug/lib/clang/1.1 -fmessage-length 88
-stack-protector 1 -fblocks -fdiagnostics-show-option -o
/var/folders/DQ/DQ8GT3++HESEzT1obWBynE+++TI/-Tmp-/cc-oy0gny.s -x cpp-output t.i 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'X86 DAG->DAG Instruction Selection' on function
'@__divdc3'
clang: error: compiler command failed due to signal 11 (use -v to see
invocation)
ddunbar at giles: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