Bug#699866: clang crashes while translating a trivial C++ program

Galin Hristov monoclr at abv.bg
Wed Feb 27 21:51:14 UTC 2013


Here is the output of:
clang++ test.cpp
on debian emulated ppc (Linux debian 3.2.0-4-powerpc #1 Debian 3.2.35-2 ppc GNU/Linux). Hope it helps.

test at tester:~$ clang++ test.cpp 
0
 libLLVM-3.0.so.1 0x0fa74548
1
 libLLVM-3.0.so.1 0x0fa74c8c
2

















 0x00100364 __kernel_sigtramp32 + 0
3

















 0x10e9d9a8 __kernel_sigtramp32 + 282711620
4
 clang










 0x109d80f0 clang::Lexer::LexTokenInternal(clang::Token&) + 996
5
 clang










 0x10409120 clang::Preprocessor::Lex(clang::Token&) + 176
6
 clang










 0x109d9be0 clang::Lexer::LexTokenInternal(clang::Token&) + 7892
7
 clang










 0x10409120 clang::Preprocessor::Lex(clang::Token&) + 176
8
 clang










 0x109d9acc clang::Lexer::LexTokenInternal(clang::Token&) + 7616
9
 clang










 0x103ea544 clang::Parser::ConsumeToken() + 244
10 clang










 0x103ea60c clang::Parser::ConsumeAnyToken() + 152
11 clang










 0x10403644 clang::Parser::ExpectAndConsume(clang::tok::TokenKind, unsigned int, char const*, clang::tok::TokenKind) + 724
12 clang










 0x10416bf8 clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int, bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 2336
13 clang










 0x1041a890 clang::Parser::ParseSimpleDeclaration(clang::ASTOwningVector &, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, bool, clang::Parser::ForRangeInit*) + 556
14 clang










 0x1041aaac clang::Parser::ParseDeclaration(clang::ASTOwningVector &, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 196
15 clang










 0x104059f0 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 1084
16 clang










 0x1040668c clang::Parser::ParseTopLevelDecl(clang::OpaquePtr &) + 208
17 clang










 0x103dec70 clang::ParseAST(clang::Sema&, bool) + 304
18 clang










 0x101cf25c clang::ASTFrontendAction::ExecuteAction() + 240
19 clang










 0x102c08d8 clang::CodeGenAction::ExecuteAction() + 92
20 clang










 0x101cfd64 clang::FrontendAction::Execute() + 320
21 clang










 0x101b8780 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 356
22 clang










 0x101a1340 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1044
23 clang










 0x1019a3e0 cc1_main(char const**, char const**, char const*, void*) + 724
24 clang










 0x101984ac main + 1772
25 libc.so.6






 0x0e8bfd4c
26 libc.so.6






 0x0e8bff10
Stack dump:
0.


 Program arguments: /usr/bin/clang -cc1 -triple powerpc-unknown-linux-gnu -S -disable-free -disable-llvm-verifier -main-file-name test.cpp -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -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/include/c++/4.6 -internal-isystem /usr/include/c++/4.6/powerpc-linux-gnu -internal-isystem /usr/include/c++/4.6/backward -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.0/include -internal-externc-isystem /usr/include/powerpc-linux-gnu -internal-externc-isystem /usr/include -fdeprecated-macro -ferror-limit 19 -fmessage-length 211 -fno-signed-char -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/test-OeylKc.s -x c++ test.cpp 
1.


   parser at unknown location
clang: error: unable to execute command: Illegal instruction
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: error: unable to execute command: Illegal instruction
clang: note: diagnostic msg: Error generating preprocessed source(s).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20130227/888b6aea/attachment.html>


More information about the Pkg-llvm-team mailing list