Bug#704513: clang: error: unable to execute command: Segmentation fault

Mathieu Malaterre malat at debian.org
Tue Apr 2 08:33:12 UTC 2013


Package: clang
Version: 1:3.0-6.1
Severity: important

I can get clang to segfault doing:

$ git clone git://github.com/benkard/cellspp.git
$ cd cellspp
$ make
0  libLLVM-3.0.so.1 0x00002b3cbbdf34bf
1  libLLVM-3.0.so.1 0x00002b3cbbdf3909
2  libpthread.so.0  0x00002b3cbc730030
3  clang            0x0000000000d11417 clang::Expr::hasAnyTypeDependentArguments(clang::Expr**, unsigned int) + 7
4  clang            0x00000000009715e4 clang::Sema::ActOnCallExpr(clang::Scope*, clang::Expr*, clang::SourceLocation, clang::ASTMultiPtr<clang::Expr*>, clang::SourceLocation, clang::Expr*, bool) + 516
5  clang            0x00000000008394fe clang::Parser::ParsePostfixExpressionSuffix(clang::ActionResult<clang::Expr*, true>) + 3182
6  clang            0x00000000008336fb clang::Parser::ParseCastExpression(bool, bool, bool&, bool) + 203
7  clang            0x0000000000835d1e clang::Parser::ParseCastExpression(bool, bool, bool) + 30
8  clang            0x000000000083661f clang::Parser::ParseAssignmentExpression() + 31
9  clang            0x00000000008374a9 clang::Parser::ParseExpression() + 9
10 clang            0x00000000007fe6e6 clang::Parser::ParseExprStatement(clang::ParsedAttributes&) + 70
11 clang            0x00000000007fb4b9 clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&, bool) + 2841
12 clang            0x00000000007f842c clang::Parser::ParseCompoundStatementBody(bool) + 1356
13 clang            0x00000000007ff5ed clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) + 141
14 clang            0x0000000000810403 clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&) + 963
15 clang            0x000000000081e0e3 clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int, bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 739
16 clang            0x000000000080bda5 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&, clang::AccessSpecifier) + 149
17 clang            0x000000000080c38d clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::AccessSpecifier) + 717
18 clang            0x000000000080df8b clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 2747
19 clang            0x000000000082b079 clang::Parser::ParseInnerNamespace(std::vector<clang::SourceLocation, std::allocator<clang::SourceLocation> >&, std::vector<clang::IdentifierInfo*, std::allocator<clang::IdentifierInfo*> >&, std::vector<clang::SourceLocation, std::allocator<clang::SourceLocation> >&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, clang::Parser::BalancedDelimiterTracker&) + 377
20 clang            0x000000000082bb98 clang::Parser::ParseNamespace(unsigned int, clang::SourceLocation&, clang::SourceLocation) + 1432
21 clang            0x0000000000823879 clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 601
22 clang            0x000000000080d8ab clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 987
23 clang            0x000000000080e49e clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 158
24 clang            0x00000000007e7ffd clang::ParseAST(clang::Sema&, bool) + 269
25 clang            0x00000000006da8d3 clang::CodeGenAction::ExecuteAction() + 51
26 clang            0x00000000005de983 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 307
27 clang            0x00000000005c9911 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1041
28 clang            0x00000000005c2fc4 cc1_main(char const**, char const**, char const*, void*) + 804
29 clang            0x00000000005c1f75 main + 6965
30 libc.so.6        0x00002b3cbd50dead __libc_start_main + 253
31 clang            0x00000000005c2b01
Stack dump:
0.  Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name cells-test.cpp -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.22 -momit-leaf-frame-pointer -g -resource-dir /usr/bin/../lib/clang/3.0 -fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem /usr/include/c++/v1 -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.0/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /usr/include -O0 -std=c++11 -fdeprecated-macro -ferror-limit 19 -fmessage-length 157 -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cells-test-GKCE0l.o -x c++ cells-test.cpp 
1.  ./cells-impl.hpp:96:6: current parser token ')'
2.  ./cells-impl.hpp:40:1: parsing namespace 'cells'
3.  ./cells-impl.hpp:92:63: parsing function body 'remove_dependent'
4.  ./cells-impl.hpp:92:63: in compound statement ('{}')
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/cells-test-djyWT6.ii
make: *** [cells-test] Error 254

thanks



More information about the Pkg-llvm-team mailing list