[LLVMbugs] [Bug 20448] New: Crash during compile

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 25 01:34:59 PDT 2014


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

            Bug ID: 20448
           Summary: Crash during compile
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jpakkane at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The backtrace looks like this:

[1/390] Building CXX object
CMakeFiles/unity-scopes-obj.dir/src/scopes/internal/zmq_middleware/ObjectAdapter.cpp.o
FAILED: /var/src/llvm/build/bin/clang++    -fsanitize=undefined
-fsanitize=address -fno-omit-frame-pointer -fvisibility=default -std=c++11
-pedantic -Wall -Wextra -g -I../include -Iinclude -Isrc -I/usr/include/jsoncpp 
  -fPIC -MMD -MT
CMakeFiles/unity-scopes-obj.dir/src/scopes/internal/zmq_middleware/ObjectAdapter.cpp.o
-MF
"CMakeFiles/unity-scopes-obj.dir/src/scopes/internal/zmq_middleware/ObjectAdapter.cpp.o.d"
-o
CMakeFiles/unity-scopes-obj.dir/src/scopes/internal/zmq_middleware/ObjectAdapter.cpp.o
-c ../src/scopes/internal/zmq_middleware/ObjectAdapter.cpp
clang-3.5: ../tools/clang/lib/AST/ASTContext.cpp:3040: clang::QualType
clang::ASTContext::getSubstTemplateTypeParmType(const
clang::TemplateTypeParmType*, clang::QualType) const: Assertion
`Replacement.isCanonical() && "replacement types must always be canonical"'
failed.
0  clang-3.5       0x0000000000fbaf02 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  clang-3.5       0x0000000000fbab24
2  libpthread.so.0 0x00007fd82ee13320
3  libc.so.6       0x00007fd82e02f117 gsignal + 55
4  libc.so.6       0x00007fd82e030808 abort + 328
5  libc.so.6       0x00007fd82e027fc6
6  libc.so.6       0x00007fd82e028072
7  clang-3.5       0x0000000001e1f456
clang::ASTContext::getSubstTemplateTypeParmType(clang::TemplateTypeParmType
const*, clang::QualType) const + 534
8  clang-3.5       0x0000000001b55b60
9  clang-3.5       0x0000000001b62628
10 clang-3.5       0x0000000001b638c3
11 clang-3.5       0x0000000001b6ddbe
12 clang-3.5       0x0000000001b70e30
13 clang-3.5       0x0000000001b6cc7e
14 clang-3.5       0x0000000001b6d6f4
15 clang-3.5       0x0000000001b6314f
16 clang-3.5       0x0000000001b638c3
17 clang-3.5       0x0000000001b6655d
18 clang-3.5       0x0000000001b6783b clang::Sema::SubstType(clang::QualType,
clang::MultiLevelTemplateArgumentList const&, clang::SourceLocation,
clang::DeclarationName) + 123
19 clang-3.5       0x0000000001af6221
clang::Sema::CheckTemplateIdType(clang::TemplateName, clang::SourceLocation,
clang::TemplateArgumentListInfo&) + 1313
20 clang-3.5       0x0000000001af673a
clang::Sema::ActOnTemplateIdType(clang::CXXScopeSpec&, clang::SourceLocation,
clang::OpaquePtr<clang::TemplateName>, clang::SourceLocation,
clang::SourceLocation, llvm::MutableArrayRef<clang::ParsedTemplateArgument>,
clang::SourceLocation, bool) + 202
21 clang-3.5       0x00000000017995f3
clang::Parser::AnnotateTemplateIdTokenAsType() + 115
22 clang-3.5       0x000000000174f6b9
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*) + 681
23 clang-3.5       0x0000000001751428
clang::Parser::ParseSpecifierQualifierList(clang::DeclSpec&,
clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 72
24 clang-3.5       0x0000000001749b1c
clang::Parser::ParseTypeName(clang::SourceRange*,
clang::Declarator::TheContext, clang::AccessSpecifier, clang::Decl**,
clang::ParsedAttributes*) + 604
25 clang-3.5       0x00000000017591a3
clang::Parser::ParseTrailingReturnType(clang::SourceRange&) + 51
26 clang-3.5       0x0000000001755c33
clang::Parser::ParseFunctionDeclarator(clang::Declarator&,
clang::ParsedAttributes&, clang::BalancedDelimiterTracker&, bool, bool) + 2691
27 clang-3.5       0x0000000001756394
clang::Parser::ParseDirectDeclarator(clang::Declarator&) + 612
28 clang-3.5       0x0000000001749105
clang::Parser::ParseDeclaratorInternal(clang::Declarator&, void
(clang::Parser::*)(clang::Declarator&)) + 213
29 clang-3.5       0x00000000017498b2
clang::Parser::ParseDeclarator(clang::Declarator&) + 18
30 clang-3.5       0x000000000179d7a2
clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
clang::Parser::ParsedTemplateInfo const&, clang::ParsingDeclRAIIObject&,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 1634
31 clang-3.5       0x000000000179e693
clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 995
32 clang-3.5       0x000000000179e91a
clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 138
33 clang-3.5       0x0000000001753bc4
clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 500
34 clang-3.5       0x000000000173f84e
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 398
35 clang-3.5       0x000000000175db14
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&) + 404
36 clang-3.5       0x000000000175e1d1 clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 1569
37 clang-3.5       0x0000000001753bee
clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 542
38 clang-3.5       0x000000000173f84e
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 398
39 clang-3.5       0x000000000175db14
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&) + 404
40 clang-3.5       0x000000000175e1d1 clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 1569
41 clang-3.5       0x0000000001753bee
clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 542
42 clang-3.5       0x000000000173f84e
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 398
43 clang-3.5       0x000000000173fec0
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 448
44 clang-3.5       0x00000000017394ab clang::ParseAST(clang::Sema&, bool, bool)
+ 283
45 clang-3.5       0x000000000136f24e clang::CodeGenAction::ExecuteAction() +
78
46 clang-3.5       0x000000000111b656 clang::FrontendAction::Execute() + 118
47 clang-3.5       0x00000000010fbf80
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 320
48 clang-3.5       0x000000000118ee1e
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2014
49 clang-3.5       0x000000000080eb48 cc1_main(char const**, char const**, char
const*, void*) + 968
50 clang-3.5       0x00000000007f3653 main + 7699
51 libc.so.6       0x00007fd82e019ec5 __libc_start_main + 245
52 clang-3.5       0x000000000080c6c9
Stack dump:
0.    Program arguments: /var/src/llvm/build/bin/clang-3.5 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
ObjectAdapter.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim
-fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
-fuse-init-array -target-cpu x86-64 -g -dwarf-column-info -coverage-file
/home/jpakkane/workspace/unity-scopes-api/buildclang/CMakeFiles/unity-scopes-obj.dir/src/scopes/internal/zmq_middleware/ObjectAdapter.cpp.o
-resource-dir /var/src/llvm/build/bin/../lib/clang/3.5.0 -dependency-file
CMakeFiles/unity-scopes-obj.dir/src/scopes/internal/zmq_middleware/ObjectAdapter.cpp.o.d
-MT
CMakeFiles/unity-scopes-obj.dir/src/scopes/internal/zmq_middleware/ObjectAdapter.cpp.o
-I ../include -I include -I src -I /usr/include/jsoncpp -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/x86_64-linux-gnu
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/backward
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/x86_64-linux-gnu/c++/4.9
-internal-isystem /usr/local/include -internal-isystem
/var/src/llvm/build/bin/../lib/clang/3.5.0/include -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -Wall -Wextra -pedantic -std=c++11
-fdeprecated-macro -fdebug-compilation-dir
/home/jpakkane/workspace/unity-scopes-api/buildclang -ferror-limit 19
-fmessage-length 0 -fvisibility default
-fsanitize=address,alignment,array-bounds,bool,enum,float-cast-overflow,float-divide-by-zero,function,integer-divide-by-zero,null,object-size,return,shift,signed-integer-overflow,unreachable,vla-bound,vptr
-fsanitize-blacklist=/var/src/llvm/build/bin/../lib/clang/3.5.0/asan_blacklist.txt
-mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -o
CMakeFiles/unity-scopes-obj.dir/src/scopes/internal/zmq_middleware/ObjectAdapter.cpp.o
-x c++ ../src/scopes/internal/zmq_middleware/ObjectAdapter.cpp 
1.    /usr/include/kj/tuple.h:270:8: at annotation token
2.    /usr/include/kj/tuple.h:45:1: parsing namespace 'kj'
3.    /usr/include/kj/tuple.h:46:1: parsing namespace '_'
clang-3.5: error: unable to execute command: Aborted (core dumped)
clang-3.5: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.5.0 (213926)
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/20140725/1746545b/attachment.html>


More information about the llvm-bugs mailing list