[LLVMbugs] [Bug 19284] New: Crash while compiling KJ library

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Mar 30 00:18:35 PDT 2014


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

            Bug ID: 19284
           Summary: Crash while compiling KJ library
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: abyss.7 at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

clang:
/usr/local/google/home/hwennborg/chromium/src/third_party/llvm/tools/clang/lib/AST/ASTContext.cpp:3042:
clang::QualType clang::ASTContext::getSubstTemplateTypeParmType(const
clang::TemplateTypeParmType *, clang::QualType) const: Assertion
`Replacement.isCanonical() && "replacement types must always be canonical"'
failed.
0  clang     0x00000000023966d5 llvm::sys::PrintStackTrace(_IO_FILE*) + 37
1  clang     0x0000000002396e13
2  libc.so.6 0x0000003b7fa35cb0
3  libc.so.6 0x0000003b7fa35c39 gsignal + 57
4  libc.so.6 0x0000003b7fa37348 abort + 328
5  libc.so.6 0x0000003b7fa2eb96
6  libc.so.6 0x0000003b7fa2ec42
7  clang     0x00000000012d9a9b
8  clang     0x0000000000dd1b11
9  clang     0x0000000000dcfba5
10 clang     0x0000000000de0252
11 clang     0x0000000000de1966
12 clang     0x0000000000de0ee4
13 clang     0x0000000000ddd14e
14 clang     0x0000000000dd1ccb
15 clang     0x0000000000dcfba5
16 clang     0x0000000000dd4ad7 clang::Sema::SubstType(clang::QualType,
clang::MultiLevelTemplateArgumentList const&, clang::SourceLocation,
clang::DeclarationName) + 135
17 clang     0x0000000000d5a58c
clang::Sema::CheckTemplateIdType(clang::TemplateName, clang::SourceLocation,
clang::TemplateArgumentListInfo&) + 1948
18 clang     0x0000000000d5ba60
clang::Sema::ActOnTemplateIdType(clang::CXXScopeSpec&, clang::SourceLocation,
clang::OpaquePtr<clang::TemplateName>, clang::SourceLocation,
clang::SourceLocation, llvm::MutableArrayRef<clang::ParsedTemplateArgument>,
clang::SourceLocation, bool) + 624
19 clang     0x0000000000a94d13 clang::Parser::AnnotateTemplateIdTokenAsType()
+ 131
20 clang     0x0000000000a2845a
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*) + 2666
21 clang     0x0000000000a1e0d2
clang::Parser::ParseSpecifierQualifierList(clang::DeclSpec&,
clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 66
22 clang     0x0000000000a1dd73
clang::Parser::ParseTypeName(clang::SourceRange*,
clang::Declarator::TheContext, clang::AccessSpecifier, clang::Decl**,
clang::ParsedAttributes*) + 291
23 clang     0x0000000000a38e8e
clang::Parser::ParseFunctionDeclarator(clang::Declarator&,
clang::ParsedAttributes&, clang::BalancedDelimiterTracker&, bool, bool) + 2478
24 clang     0x0000000000a37662
clang::Parser::ParseDirectDeclarator(clang::Declarator&) + 4034
25 clang     0x0000000000a35d55
clang::Parser::ParseDeclaratorInternal(clang::Declarator&, void
(clang::Parser::*)(clang::Declarator&)) + 1797
26 clang     0x0000000000a90fa6
clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
clang::Parser::ParsedTemplateInfo const&, clang::ParsingDeclRAIIObject&,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 1574
27 clang     0x0000000000a90549
clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 889
28 clang     0x0000000000a8ffc0
clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 288
29 clang     0x0000000000a2756a
clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 826
30 clang     0x0000000000a174e2
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 1570
31 clang     0x0000000000a3dc31
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::BalancedDelimiterTracker&) + 305
32 clang     0x0000000000a3d209 clang::Parser::ParseNamespace(unsigned int,
clang::SourceLocation&, clang::SourceLocation) + 5449
33 clang     0x0000000000a27510
clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 736
34 clang     0x0000000000a174e2
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 1570
35 clang     0x0000000000a3dc31
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::BalancedDelimiterTracker&) + 305
36 clang     0x0000000000a3d209 clang::Parser::ParseNamespace(unsigned int,
clang::SourceLocation&, clang::SourceLocation) + 5449
37 clang     0x0000000000a27510
clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 736
38 clang     0x0000000000a174e2
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 1570
39 clang     0x0000000000a16dc8
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 504
40 clang     0x0000000000a13556 clang::ParseAST(clang::Sema&, bool, bool) + 454
41 clang     0x000000000087f88e clang::CodeGenAction::ExecuteAction() + 142
42 clang     0x00000000006d7080 clang::FrontendAction::Execute() + 112
43 clang     0x00000000006b235d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 925
44 clang     0x00000000006984cf
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2959
45 clang     0x00000000006902bc cc1_main(char const**, char const**, char
const*, void*) + 700
46 clang     0x00000000006966a0 main + 9248
47 libc.so.6 0x0000003b7fa21d65 __libc_start_main + 245
48 clang     0x000000000068ff25
Stack dump:
0.    Program arguments:
/home/ilezhankin/Projects/chromium-ash/src/third_party/llvm-build/Release+Asserts/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
module-loader.c++ -mrelocation-model static -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-target-linker-version 2.22 -momit-leaf-frame-pointer -coverage-file
/home/ilezhankin/Projects/capnproto/c++/src/capnp/compiler/module-loader.o
-resource-dir
/home/ilezhankin/Projects/chromium-ash/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.5
-dependency-file src/capnp/compiler/.deps/module-loader.Tpo -sys-header-deps
-MP -MT src/capnp/compiler/module-loader.o -D HAVE_CONFIG_H -D NDEBUG -I . -I
./src -I ./src -internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2
-internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/x86_64-redhat-linux
-internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/backward
-internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/x86_64-redhat-linux/c++/4.8.2
-internal-isystem /usr/local/include -internal-isystem
/home/ilezhankin/Projects/chromium-ash/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.5/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O2
-std=gnu++11 -fdeprecated-macro -fdebug-compilation-dir
/home/ilezhankin/Projects/capnproto/c++ -ferror-limit 19 -fmessage-length 191
-pthread -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o src/capnp/compiler/module-loader.o -x c++
src/capnp/compiler/module-loader.c++ 
1.    ./src/kj/parse/../tuple.h:270:8: at annotation token
2.    ./src/kj/parse/../tuple.h:45:1: parsing namespace 'kj'
3.    ./src/kj/parse/../tuple.h:46:1: parsing namespace '_'
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.5 (trunk 202554)
Target: x86_64-unknown-linux-gnu
Thread model: posix

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140330/9a12f0be/attachment.html>


More information about the llvm-bugs mailing list