Bug#703790: smaller test case

Peter Palfrader weasel at debian.org
Tue Mar 26 08:34:30 UTC 2013


weasel at dixie:~/tmp$ cat conftst.c
#include <stdint.h>
typedef unsigned uint128_t __attribute__((mode(TI)));
int main() {
  uint64_t a = ((uint64_t)2000000000) * 1000000000;
  uint64_t b = ((uint64_t)1234567890) << 24;
  uint128_t c = ((uint128_t)a) * b;
  return 0;
}
weasel at dixie:~/tmp$ schroot -r -c $chroot -- clang  -o conftest conftst.c
0  libLLVM-3.0.so.1 0xf70f0fc8
1  libLLVM-3.0.so.1 0xf70f14e4
2                   0xf7796400 __kernel_sigreturn + 0
3  libLLVM-3.0.so.1 0xf7021c17 llvm::SelectionDAG::getNode(unsigned int, llvm::DebugLoc, llvm::EVT, llvm::SDValue) + 2071
4  libLLVM-3.0.so.1 0xf703525d
5  libLLVM-3.0.so.1 0xf70345ca
6  libLLVM-3.0.so.1 0xf703c73a llvm::TargetLowering::LowerCallTo(llvm::SDValue, llvm::Type*, bool, bool, bool, bool, unsigned int, llvm::CallingConv::ID, bool, bool, llvm::SDValue, std::vector<llvm::TargetLowering::ArgListEntry, std::allocator<llvm::TargetLowering::ArgListEntry> >&, llvm::SelectionDAG&, llvm::DebugLoc) const + 4986
7  libLLVM-3.0.so.1 0xf6fcd9dc
8  libLLVM-3.0.so.1 0xf6fb9f1d
9  libLLVM-3.0.so.1 0xf6fca092
10 libLLVM-3.0.so.1 0xf6fd23b1
11 libLLVM-3.0.so.1 0xf6fd351a llvm::SelectionDAG::LegalizeTypes() + 490
12 libLLVM-3.0.so.1 0xf7073783 llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 211
13 libLLVM-3.0.so.1 0xf7074ca8 llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) + 168
14 libLLVM-3.0.so.1 0xf70753f6 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1846
15 libLLVM-3.0.so.1 0xf7076da9 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 409
16 libLLVM-3.0.so.1 0xf6a4a77e llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 126
17 libLLVM-3.0.so.1 0xf6beadcc llvm::FPPassManager::runOnFunction(llvm::Function&) + 652
18 libLLVM-3.0.so.1 0xf6beae2c llvm::FPPassManager::runOnModule(llvm::Module&) + 76
19 libLLVM-3.0.so.1 0xf6bea9f4 llvm::MPPassManager::runOnModule(llvm::Module&) + 500
20 libLLVM-3.0.so.1 0xf6beaae0 llvm::PassManagerImpl::run(llvm::Module&) + 128
21 libLLVM-3.0.so.1 0xf6beab36 llvm::PassManager::run(llvm::Module&) + 38
22 clang            0x0831e725 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 2133
23 clang            0x0831c8ab clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 267
24 clang            0x08443141 clang::ParseAST(clang::Sema&, bool) + 465
25 clang            0x08221c17 clang::ASTFrontendAction::ExecuteAction() + 103
26 clang            0x0831b772 clang::CodeGenAction::ExecuteAction() + 66
27 clang            0x08222200 clang::FrontendAction::Execute() + 240
28 clang            0x082094f7 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 327
29 clang            0x081f32b0 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1072
30 clang            0x081ec5da cc1_main(char const**, char const**, char const*, void*) + 874
31 clang            0x081eb4d0 main + 6880
32 libc.so.6        0xf60f1e16 __libc_start_main + 230
33 clang            0x081ec0c9
Stack dump:
0.      Program arguments: /usr/bin/clang -cc1 -triple i386-pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name conftst.c -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu pentium4 -target-linker-version 2.22 -momit-leaf-frame-pointer -resource-dir /usr/bin/../lib/clang/3.0 -fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.0/include -internal-externc-isystem /usr/include/i486-linux-gnu -internal-externc-isystem /usr/include -ferror-limit 19 -fmessage-length 115 -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/conftst-fVO3C8.o -x c conftst.c 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'conftst.c'.
4.      Running pass 'X86 DAG->DAG Instruction Selection' on function '@main'
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal 2 (use -v to see invocation)
clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information.
clang: note: diagnostic msg: Preprocessed source(s) are located at:
clang: note: diagnostic msg: /tmp/conftst-6g27T9.i
e254:weasel at dixie:~/tmp$ 

-- 
                           |  .''`.       ** Debian **
      Peter Palfrader      | : :' :      The  universal
 http://www.palfrader.org/ | `. `'      Operating System
                           |   `-    http://www.debian.org/



More information about the Pkg-llvm-team mailing list