[LLVMbugs] [Bug 10925] New: Segmentation fault on invalid code

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Sep 13 11:11:16 PDT 2011


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

           Summary: Segmentation fault on invalid code
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: pipping at exherbo.org
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


% clang++ -c test-edges0-memGKN2-bcpp.ii 
test-edges0-memGKN2-bcpp.ii:11:25: error: use of undeclared identifier 'std'
  template<class ctype, std::size_t mydim, std::size_t coorddim>
                        ^
test-edges0-memGKN2-bcpp.ii:11:44: error: use of undeclared identifier 'std'
  template<class ctype, std::size_t mydim, std::size_t coorddim>
                                           ^
0  libLLVM-3.0svn.so 0x00007ffff738b03f
1  libLLVM-3.0svn.so 0x00007ffff738b4e9
2  libpthread.so.0   0x00007ffff6557f70
3  clang             0x0000000000c558d8
clang::DeclarationName::getFETokenInfoAsVoid() const + 248
4  clang             0x00000000007a444e
clang::IdentifierResolver::begin(clang::DeclarationName) + 14
5  clang             0x0000000000815f45
clang::Sema::PushOnScopeChains(clang::NamedDecl*, clang::Scope*, bool) + 165
6  clang             0x0000000000867d53
clang::Sema::ActOnUsingDeclaration(clang::Scope*, clang::AccessSpecifier, bool,
clang::SourceLocation, clang::CXXScopeSpec&, clang::UnqualifiedId&,
clang::AttributeList*, bool, clang::SourceLocation) + 851
7  clang             0x000000000078081b
clang::Parser::ParseUsingDeclaration(unsigned int,
clang::Parser::ParsedTemplateInfo const&, clang::SourceLocation,
clang::SourceLocation&, clang::AccessSpecifier, clang::Decl**) + 2219
8  clang             0x00000000007845d2
clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier,
clang::Parser::ParsedTemplateInfo const&,
clang::Parser::ParsingDeclRAIIObject*) + 1538
9  clang             0x00000000007833a0
clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int,
clang::Decl*) + 1472
10 clang             0x00000000007827ee
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool) + 4750
11 clang             0x000000000077457a
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext) + 2778
12 clang             0x0000000000761828
clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
clang::Parser::ParsedTemplateInfo const&,
clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&,
clang::AccessSpecifier) + 696
13 clang             0x00000000007613a3
clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier) + 723
14 clang             0x000000000076101a
clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier) + 330
15 clang             0x0000000000773604
clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 372
16 clang             0x0000000000769aeb
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 1659
17 clang             0x000000000077f5a2
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::SourceLocation&, clang::ParsedAttributes&, clang::SourceLocation&) + 226
18 clang             0x000000000077f11f clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 3343
19 clang             0x000000000077367f
clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 495
20 clang             0x0000000000769aeb
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 1659
21 clang             0x0000000000769400
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 256
22 clang             0x0000000000751fde clang::ParseAST(clang::Sema&, bool) +
318
23 clang             0x000000000065b1ab clang::CodeGenAction::ExecuteAction() +
779
24 clang             0x000000000055ea17
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 983
25 clang             0x0000000000549920
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2832
26 clang             0x0000000000541970 cc1_main(char const**, char const**,
char const*, void*) + 6128
27 clang             0x0000000000545e48 main + 632
28 libc.so.6         0x00007ffff5861c7d __libc_start_main + 253
29 clang             0x00000000005400b9
Stack dump:
0.      Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu
-emit-obj -mrelax-all -disable-free -main-file-name test-edges0-memGKN2-bcpp.ii
-mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -target-linker-version 2.21.1
-momit-leaf-frame-pointer -coverage-file test-edges0-memGKN2-bcpp.o
-resource-dir /usr/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit 19
-fmessage-length 238 -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -o test-edges0-memGKN2-bcpp.o -x c++-cpp-output
test-edges0-memGKN2-bcpp.ii 
1.      test-edges0-memGKN2-bcpp.ii:17:3: current parser token '}'
2.      test-edges0-memGKN2-bcpp.ii:1:1: parsing namespace 'GenericGeometry'
3.      test-edges0-memGKN2-bcpp.ii:12:3: parsing struct/union/class body
'MockGeometry'
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: Error generating preprocessed source(s) - no
preprocessable inputs.
%

-- 
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