[LLVMbugs] [Bug 10599] New: Segfault

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Aug 7 00:55:18 PDT 2011


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

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


Created an attachment (id=7021)
 --> (http://llvm.org/bugs/attachment.cgi?id=7021)
delta-reduced input (not valid code but manages to make clang++ crash)

pipping at bogus /home/pipping/reduce_3 % clang++ -c -std=c++0x reduce_me3.ii
reduce_me3.ii:8:17: error: implicit instantiation of undefined template
'std::basic_string<std::allocator<char> >'
    std::string user_key;
                ^
reduce_me3.ii:4:9: note: template is declared here
  class basic_string;
        ^
clang:
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/lib/AST/../../include/clang/AST/DeclCXX.h:522:
const struct DefinitionData &clang::CXXRecordDecl::data() const: Assertion
`DefinitionData && "queried property of class with no definition"' failed.
0  libLLVM-3.0svn.so 0x00007f6f84da8ddf
1  libLLVM-3.0svn.so 0x00007f6f84da9289
2  libpthread.so.0   0x00007f6f83fb9f10
3  libc.so.6         0x00007f6f832d85c5 gsignal + 53
4  libc.so.6         0x00007f6f832d98c5 abort + 389
5  libc.so.6         0x00007f6f832d1235 __assert_fail + 245
6  clang             0x0000000000c95853 clang::Type::isAggregateType() const +
163
7  clang             0x00000000008d2f44
clang::InitializationSequence::InitializationSequence(clang::Sema&,
clang::InitializedEntity const&, clang::InitializationKind const&,
clang::Expr**, unsigned int) + 788
8  clang             0x00000000008dd21d
clang::Sema::PerformCopyInitialization(clang::InitializedEntity const&,
clang::SourceLocation, clang::ActionResult<clang::Expr*, true>, bool) + 173
9  clang             0x0000000000928f57
clang::Sema::PerformMoveOrCopyInitialization(clang::InitializedEntity const&,
clang::VarDecl const*, clang::QualType, clang::Expr*, bool) + 695
10 clang             0x0000000000929c10
clang::Sema::ActOnReturnStmt(clang::SourceLocation, clang::Expr*) + 1760
11 clang             0x00000000007506d9
clang::Parser::ParseReturnStatement(clang::ParsedAttributes&) + 393
12 clang             0x000000000074dc65
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector<clang::Stmt*,
32u>&, bool) + 1925
13 clang             0x0000000000751df3
clang::Parser::ParseCompoundStatementBody(bool) + 1187
14 clang             0x0000000000752a7e
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 174
15 clang             0x0000000000761df1
clang::Parser::ParseLexedMethodDef(clang::Parser::LexedMethod&) + 513
16 clang             0x00000000007617c4
clang::Parser::ParseLexedMethodDefs(clang::Parser::ParsingClass&) + 132
17 clang             0x0000000000774ff7
clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int,
clang::Decl*) + 1879
18 clang             0x00000000007742d5
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool) + 4677
19 clang             0x0000000000766232
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext) + 2754
20 clang             0x0000000000753fe8
clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
clang::Parser::ParsedTemplateInfo const&,
clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&,
clang::AccessSpecifier) + 696
21 clang             0x0000000000753b63
clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier) + 723
22 clang             0x00000000007537e0
clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier) + 304
23 clang             0x00000000007652f7
clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 327
24 clang             0x000000000075c1db
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 1643
25 clang             0x000000000077116a
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&) + 186
26 clang             0x0000000000770d3e clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 3342
27 clang             0x000000000076536a
clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 442
28 clang             0x000000000075c1db
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 1643
29 clang             0x000000000075baf4
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 244
30 clang             0x0000000000744cfe clang::ParseAST(clang::Sema&, bool) +
318
31 clang             0x000000000064b1d0 clang::CodeGenAction::ExecuteAction() +
768
32 clang             0x0000000000550f77
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 983
33 clang             0x000000000053bdbb
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2779
34 clang             0x0000000000533e87 cc1_main(char const**, char const**,
char const*, void*) + 6135
35 clang             0x0000000000538348 main + 632
36 libc.so.6         0x00007f6f832c4c7d __libc_start_main + 253
37 clang             0x00000000005325c9
Stack dump:
0.      Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu
-emit-obj -mrelax-all -disable-free -main-file-name reduce_me3.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 reduce_me3.o -resource-dir
/usr/bin/../lib/clang/3.0 -std=c++0x -fdeprecated-macro -ferror-limit 19
-fmessage-length 238 -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -o reduce_me3.o -x c++-cpp-output reduce_me3.ii 
1.      reduce_me3.ii:11:49: current parser token ';'
2.      reduce_me3.ii:1:1: parsing namespace 'std'
3.      reduce_me3.ii:7:3: parsing struct/union/class body
'MakeFormatStringFetcher'
4.      reduce_me3.ii:10:68: parsing function body 'make_format_string_fetcher'
5.      reduce_me3.ii:10:68: in compound statement ('{}')
clang: error: unable to execute command: Aborted
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 and
include command line arguments and all diagnostic information.
0  libLLVM-3.0svn.so 0x00007f051cf2dddf
1  libLLVM-3.0svn.so 0x00007f051cf2e289
2  libpthread.so.0   0x00007f051c13ef10
3  clang++           0x000000000059047a
clang::driver::Driver::BuildActions(clang::driver::ToolChain const&,
clang::driver::DerivedArgList const&, llvm::SmallVector<clang::driver::Action*,
3u>&) const + 3226
4  clang++           0x0000000000590e46
clang::driver::Driver::generateCompilationDiagnostics(clang::driver::Compilation&,
clang::driver::Command const*) + 246
5  clang++           0x000000000053a630 main + 9568
6  libc.so.6         0x00007f051b449c7d __libc_start_main + 253
7  clang++           0x00000000005325c9
Stack dump:
0.      Program arguments: clang++ -c -std=c++0x reduce_me3.ii 
1.      Building compilation actions
zsh: segmentation fault  clang++ -c -std=c++0x reduce_me3.ii
pipping at bogus /home/pipping/reduce_3 %


clang version 3.0-a8e0cd8cdecc7e0ba1792e46773b884c6eed4829

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