[LLVMbugs] [Bug 10600] New: Segfault
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Aug 7 00:56:47 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10600
Summary: Segfault
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
Created an attachment (id=7022)
--> (http://llvm.org/bugs/attachment.cgi?id=7022)
delta-reduced input (not valid code but manages to make clang++ crash)
pipping at bogus /home/pipping/reduce_2 % clang++ -c reduce_me2.ii
reduce_me2.ii:1:32: error: C++ requires a type specifier for all declarations
template<class _InputIterator> basic_string();
^~~~~~~~~~~~
reduce_me2.ii:5:1: error: explicit specialization of non-template struct 'hash'
hash<basic_string<_CharT, _Traits, _Allocator> > :
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
reduce_me2.ii:6:10: error: unknown template name 'unary_function'
public unary_function<basic_string<_CharT, _Traits, _Allocator>, size_t> {
};
^
reduce_me2.ii:6:65: error: expected '{' after base class list
public unary_function<basic_string<_CharT, _Traits, _Allocator>, size_t> {
};
^
reduce_me2.ii:6:65: error: expected ';' after struct
public unary_function<basic_string<_CharT, _Traits, _Allocator>, size_t> {
};
^
;
reduce_me2.ii:6:65: error: expected unqualified-id
reduce_me2.ii:9:7: error: explicit specialization of non-template class
'vector'
class vector<bool, _Allocator> :
^ ~~~~~~~~~~~~~~~~~~
reduce_me2.ii:10:11: error: unknown template name '__vector_base_common'
private __vector_base_common<true> {
^
reduce_me2.ii:11:17: error: too few template arguments for class template
'hash'
friend struct hash<vector>;
^
reduce_me2.ii:5:1: note: template is declared here
hash<basic_string<_CharT, _Traits, _Allocator> > :
^
clang: DeclSpec.cpp:511: bool clang::DeclSpec::SetTypeSpecType(TST,
clang::SourceLocation, clang::SourceLocation, const char *&, unsigned int &,
ParsedType): Assertion `Rep && "no type provided!"' failed.
0 libLLVM-3.0svn.so 0x00007f60eed05ddf
1 libLLVM-3.0svn.so 0x00007f60eed06289
2 libpthread.so.0 0x00007f60edf16f10
3 libc.so.6 0x00007f60ed2355c5 gsignal + 53
4 libc.so.6 0x00007f60ed2368c5 abort + 389
5 libc.so.6 0x00007f60ed22e235 __assert_fail + 245
6 clang 0x0000000000793281
7 clang 0x0000000000774359
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool) + 4809
8 clang 0x0000000000766232
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext) + 2754
9 clang 0x0000000000776242
clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier,
clang::Parser::ParsedTemplateInfo const&,
clang::Parser::ParsingDeclRAIIObject*) + 1986
10 clang 0x0000000000774e6e
clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int,
clang::Decl*) + 1486
11 clang 0x00000000007742d5
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool) + 4677
12 clang 0x0000000000766232
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext) + 2754
13 clang 0x0000000000753fe8
clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
clang::Parser::ParsedTemplateInfo const&,
clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&,
clang::AccessSpecifier) + 696
14 clang 0x0000000000753b63
clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier) + 723
15 clang 0x00000000007537e0
clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier) + 304
16 clang 0x00000000007652f7
clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 327
17 clang 0x000000000075c1db
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 1643
18 clang 0x000000000075baf4
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 244
19 clang 0x0000000000744cfe clang::ParseAST(clang::Sema&, bool) +
318
20 clang 0x000000000064b1d0 clang::CodeGenAction::ExecuteAction() +
768
21 clang 0x0000000000550f77
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 983
22 clang 0x000000000053bdbb
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2779
23 clang 0x0000000000533e87 cc1_main(char const**, char const**,
char const*, void*) + 6135
24 clang 0x0000000000538348 main + 632
25 libc.so.6 0x00007f60ed221c7d __libc_start_main + 253
26 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_me2.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_me2.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 reduce_me2.o -x c++-cpp-output reduce_me2.ii
1. reduce_me2.ii:11:29: current parser token ';'
2. reduce_me2.ii:9:1: parsing struct/union/class body 'vector'
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 0x00007fb80a595ddf
1 libLLVM-3.0svn.so 0x00007fb80a596289
2 libpthread.so.0 0x00007fb8097a6f10
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 0x00007fb808ab1c7d __libc_start_main + 253
7 clang++ 0x00000000005325c9
Stack dump:
0. Program arguments: clang++ -c reduce_me2.ii
1. Building compilation actions
zsh: segmentation fault clang++ -c reduce_me2.ii
pipping at bogus /home/pipping/reduce_2 %
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