Skip to content

Instantly share code, notes, and snippets.

@hnsl
Created December 12, 2013 05:28
Show Gist options
  • Save hnsl/7923594 to your computer and use it in GitHub Desktop.
Save hnsl/7923594 to your computer and use it in GitHub Desktop.
llvm/clang 3.3 -O1 crash when compiling librcd
clang-3.3: /home/thorwald/llvm/include/llvm/ADT/APInt.h:1196: uint64_t llvm::APInt::getZExtValue() const: Assertion `getActiveBits() <= 64 && "Too many bits for uint64_t"' failed.
0 clang-3.3 0x0000000001b2e97d llvm::sys::PrintStackTrace(_IO_FILE*) + 38
1 clang-3.3 0x0000000001b2ebfa
2 clang-3.3 0x0000000001b2e673
3 libpthread.so.0 0x00007f9f12a6b870
4 libc.so.6 0x00007f9f11cb33d9 gsignal + 57
5 libc.so.6 0x00007f9f11cb47d8 abort + 328
6 libc.so.6 0x00007f9f11cac506
7 libc.so.6 0x00007f9f11cac5b2
8 clang-3.3 0x0000000000c67b60
9 clang-3.3 0x0000000000c67f0c
10 clang-3.3 0x000000000198360a llvm::DIDescriptor::getUInt64Field(unsigned int) const + 110
11 clang-3.3 0x00000000010a4ffc
12 clang-3.3 0x0000000001201685
13 clang-3.3 0x000000000198394d llvm::DIDescriptor::isDerivedType() const + 43
14 clang-3.3 0x0000000001984306 llvm::DIDerivedType::Verify() const + 24
15 clang-3.3 0x0000000001983094 llvm::DIDescriptor::Verify() const + 208
16 clang-3.3 0x00000000019493c1
17 clang-3.3 0x000000000194962c
18 clang-3.3 0x00000000019495ac
19 clang-3.3 0x00000000019458a0
20 clang-3.3 0x0000000001949902 llvm::Module::print(llvm::raw_ostream&, llvm::AssemblyAnnotationWriter*) const + 158
21 clang-3.3 0x00000000010b813c
22 clang-3.3 0x0000000001a41334
23 clang-3.3 0x0000000001a3047a llvm::MPPassManager::runOnModule(llvm::Module&) + 556
24 clang-3.3 0x0000000001a30a70 llvm::PassManagerImpl::run(llvm::Module&) + 244
25 clang-3.3 0x0000000001a30c7b llvm::PassManager::run(llvm::Module&) + 39
26 clang-3.3 0x0000000001b682d8
27 clang-3.3 0x0000000001b68409 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 136
28 clang-3.3 0x0000000001b64238
29 clang-3.3 0x0000000001eefb74 clang::ParseAST(clang::Sema&, bool, bool) + 783
30 clang-3.3 0x0000000001df5054 clang::ASTFrontendAction::ExecuteAction() + 298
31 clang-3.3 0x0000000001b62f9b clang::CodeGenAction::ExecuteAction() + 1007
32 clang-3.3 0x0000000001df4bdb clang::FrontendAction::Execute() + 205
33 clang-3.3 0x0000000001dcecd0 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 720
34 clang-3.3 0x0000000001b337a4 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1074
35 clang-3.3 0x0000000000c29152 cc1_main(char const**, char const**, char const*, void*) + 636
36 clang-3.3 0x0000000000c22f33 main + 508
37 libc.so.6 0x00007f9f11c9fbc5 __libc_start_main + 245
38 clang-3.3 0x0000000000c217d9
Stack dump:
0. Program arguments: /usr/local/bin/clang-3.3 -cc1 -triple x86_64-unknown-linux-gnu -emit-llvm -disable-free -main-file-name src_fstring.i -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -
munwind-tables -fuse-init-array -disable-red-zone -target-cpu x86-64 -momit-leaf-frame-pointer -g -coverage-file /home/hannes/jumpstarter/librcd/- -resource-dir /usr/local/bin/../lib/clang/3.3 -O1 -Werror -Werror -std=c99 -fdebug-compilati
on-dir /home/hannes/jumpstarter/librcd -ferror-limit 19 -fmessage-length 0 -mstackrealign -fobjc-runtime=gcc -fobjc-default-synthesize-properties -fdiagnostics-show-option -backend-option -vectorize-loops -fcolor-diagnostics -o - -x cpp-ou
tput /home/hannes/.config/occ/compile_cache/librcd/_test/src_fstring.i
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'Unnamed pass: implement Pass::getPassName()' on module '/home/hannes/.config/occ/compile_cache/librcd/_test/src_fstring.i'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment