Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.

BitCoin: Support importing TypeAliasTemplate #140

Closed
szepet opened this issue Jun 6, 2017 · 13 comments
Closed

BitCoin: Support importing TypeAliasTemplate #140

szepet opened this issue Jun 6, 2017 · 13 comments
Assignees
Milestone

Comments

@szepet
Copy link

szepet commented Jun 6, 2017

AST node TypeAliasTemplate importing is not supported but an experimental version already can be found here: https://github.com/haoNoQ/clang/blob/summary-ipa-draft/lib/AST/ASTImporter.cpp#L3194

@Xazax-hun
Copy link

This is also C++11 feature.

@dkrupp dkrupp added this to the sept 26 milestone Sep 12, 2017
@dkrupp dkrupp modified the milestones: sept 26, October 6 Sep 29, 2017
@dkrupp
Copy link
Member

dkrupp commented Oct 6, 2017

work in progress implementation can be found here:
https://github.com/gerazo/clang/tree/astimport-type-alias-template

@dkrupp dkrupp modified the milestones: October 6, October 13 Oct 6, 2017
@gerazo
Copy link
Collaborator

gerazo commented Oct 11, 2017

So progress: we have tests (see commits) for correctly testing the added functions, namely importing TypeAliasTemplate and PackExpansion.

@gerazo
Copy link
Collaborator

gerazo commented Oct 11, 2017

We still have the assertion however for a lot of files:
clang/lib/AST/DeclBase.cpp:1328: void clang::DeclContext::removeDecl(clang::Decl*): Assertion '(D->NextInContextAndBits.getPointer() || D == LastDecl) && "decl is not in decls list"' failed.

The below code's new call (in stdlib new allocator) triggers the problem in c++11 while old c++ works:
`

#if __cplusplus >= 201103L
      template<typename _Up, typename... _Args>
        void
        construct(_Up* __p, _Args&&... __args)
	{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
      template<typename _Up>
        void 
        destroy(_Up* __p) { __p->~_Up(); }
#else
      // _GLIBCXX_RESOLVE_LIB_DEFECTS
      // 402. wrong new expression in [some_] allocator::construct
      void 
      construct(pointer __p, const _Tp& __val) 
      { ::new((void *)__p) _Tp(__val); }
      void 
      destroy(pointer __p) { __p->~_Tp(); }
#endif

@gerazo
Copy link
Collaborator

gerazo commented Oct 11, 2017

The problem: the assertion usually comes when already being in a TypeAliasTemplate visitation, like:

clang-5.0: /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/DeclBase.cpp:1328: void clang::DeclContext::removeDecl(clang::Decl*): Assertion `(D->NextInContextAndBits.getPointer() || D == LastDecl) && "decl is not in decls list"' failed.
#0 0x00007ff25a22208a llvm::sys::PrintStackTrace(llvm::raw_ostream&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/lib/Support/Unix/Signals.inc:402:0
#1 0x00007ff25a21febe llvm::sys::RunSignalHandlers() /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/lib/Support/Signals.cpp:50:0
#2 0x00007ff25a220032 SignalHandler(int) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/lib/Support/Unix/Signals.inc:242:0
#3 0x00007ff258bd14b0 (/lib/x86_64-linux-gnu/libc.so.6+0x354b0)
#4 0x00007ff258bd1428 gsignal /build/glibc-bfm8X4/glibc-2.23/signal/../sysdeps/unix/sysv/linux/raise.c:54:0
#5 0x00007ff258bd302a abort /build/glibc-bfm8X4/glibc-2.23/stdlib/abort.c:91:0
#6 0x00007ff258bc9bd7 __assert_fail_base /build/glibc-bfm8X4/glibc-2.23/assert/assert.c:92:0
#7 0x00007ff258bc9c82 (/lib/x86_64-linux-gnu/libc.so.6+0x2dc82)
#8 0x00007ff2574412e9 llvm::SmallVectorImplclang::NamedDecl*::erase(clang::NamedDecl* const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/ADT/SmallVector.h:451:0
#9 0x00007ff2574412e9 clang::StoredDeclsList::remove(clang::NamedDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/include/clang/AST/DeclContextInternals.h:117:0
#10 0x00007ff2574412e9 clang::DeclContext::removeDecl(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/DeclBase.cpp:1364:0
#11 0x00007ff2573cfe7b clang::ASTNodeImporter::ImportDeclContext(clang::DeclContext*, bool, clang::DeclContext*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1010:0
#12 0x00007ff2573d105b clang::ASTNodeImporter::ImportDefinition(clang::RecordDecl*, clang::RecordDecl*, clang::ASTNodeImporter::ImportDefinitionKind) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1132:0
#13 0x00007ff2573da070 clang::ASTNodeImporter::VisitClassTemplateSpecializationDecl(clang::ClassTemplateSpecializationDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:4101:0
#14 0x00007ff2573bef2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#15 0x00007ff2573cfde7 llvm::SmallVectorTemplateBase<clang::Decl*, true>::push_back(clang::Decl* const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/ADT/SmallVector.h:307:0
#16 0x00007ff2573cfde7 clang::ASTNodeImporter::ImportDeclContext(clang::DeclContext*, bool, clang::DeclContext*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1007:0
#17 0x00007ff2573d29c2 clang::ASTNodeImporter::VisitNamespaceDecl(clang::NamespaceDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1553:0
#18 0x00007ff2573bef2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#19 0x00007ff2573cfaac llvm::cast_retty<clang::DeclContext, clang::Decl*>::ret_type llvm::cast_or_null<clang::DeclContext, clang::Decl>(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:298:0
#20 0x00007ff2573cfaac clang::ASTImporter::ImportContext(clang::DeclContext*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6440:0
#21 0x00007ff2573d147e clang::ASTNodeImporter::ImportDeclParts(clang::NamedDecl*, clang::DeclContext*&, clang::DeclContext*&, clang::DeclarationName&, clang::NamedDecl*&, clang::SourceLocation&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:914:0
#22 0x00007ff2573d15ee clang::ASTNodeImporter::VisitTypeAliasTemplateDecl(clang::TypeAliasTemplateDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1689:0
#23 0x00007ff2573bef2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#24 0x00007ff2573c5800 llvm::cast_retty<clang::TemplateDecl, clang::Decl*>::ret_type llvm::cast_or_null<clang::TemplateDecl, clang::Decl>(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:298:0
#25 0x00007ff2573c5800 clang::ASTImporter::Import(clang::TemplateName) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6646:0
#26 0x00007ff2573c6056 clang::ASTNodeImporter::VisitTemplateSpecializationType(clang::TemplateSpecializationType const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:792:0
#27 0x00007ff2573c20b5 clang::TypeVisitor<clang::ASTNodeImporter, clang::QualType>::Visit(clang::Type const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/include/clang/AST/TypeNodes.def:98:0
#28 0x00007ff2573c2337 clang::ASTImporter::Import(clang::QualType) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6355:0
#29 0x00007ff2573c5bfd clang::ASTNodeImporter::ImportTemplateArgument(clang::TemplateArgument const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1215:0
#30 0x00007ff2573c6b91 clang::ASTNodeImporter::ImportTemplateArgumentLoc(clang::TemplateArgumentLoc const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1280:0
#31 0x00007ff2573da13b clang::ASTNodeImporter::VisitClassTemplateSpecializationDecl(clang::ClassTemplateSpecializationDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:4037:0
#32 0x00007ff2573bef2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#33 0x00007ff2573cfde7 llvm::SmallVectorTemplateBase<clang::Decl*, true>::push_back(clang::Decl* const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/ADT/SmallVector.h:307:0
#34 0x00007ff2573cfde7 clang::ASTNodeImporter::ImportDeclContext(clang::DeclContext*, bool, clang::DeclContext*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1007:0
#35 0x00007ff2573d29c2 clang::ASTNodeImporter::VisitNamespaceDecl(clang::NamespaceDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1553:0
#36 0x00007ff2573bef2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#37 0x00007ff2573cfaac llvm::cast_retty<clang::DeclContext, clang::Decl*>::ret_type llvm::cast_or_null<clang::DeclContext, clang::Decl>(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:298:0
#38 0x00007ff2573cfaac clang::ASTImporter::ImportContext(clang::DeclContext*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6440:0
#39 0x00007ff2573d147e clang::ASTNodeImporter::ImportDeclParts(clang::NamedDecl*, clang::DeclContext*&, clang::DeclContext*&, clang::DeclarationName&, clang::NamedDecl*&, clang::SourceLocation&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:914:0
#40 0x00007ff2573d3acd clang::ASTNodeImporter::VisitRecordDecl(clang::RecordDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1868:0
#41 0x00007ff2573bef2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#42 0x00007ff2573bf4e7 llvm::cast_retty<clang::RecordDecl, clang::Decl*>::ret_type llvm::dyn_cast_or_null<clang::RecordDecl, clang::Decl>(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:359:0
#43 0x00007ff2573bf4e7 clang::ASTNodeImporter::VisitRecordType(clang::RecordType const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:723:0
#44 0x00007ff2573c2125 clang::TypeVisitor<clang::ASTNodeImporter, clang::QualType>::Visit(clang::Type const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/include/clang/AST/TypeNodes.def:91:0
#45 0x00007ff2573c2337 clang::ASTImporter::Import(clang::QualType) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6355:0
#46 0x00007ff2573c304c clang::ASTNodeImporter::VisitFunctionProtoType(clang::FunctionProtoType const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:578:0
#47 0x00007ff2573c21d5 clang::TypeVisitor<clang::ASTNodeImporter, clang::QualType>::Visit(clang::Type const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/include/clang/AST/TypeNodes.def:79:0
#48 0x00007ff2573c2337 clang::ASTImporter::Import(clang::QualType) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6355:0
#49 0x00007ff2573be15c clang::ASTNodeImporter::VisitFunctionDecl(clang::FunctionDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:2210:0
#50 0x00007ff2573bef2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#51 0x00007ff2573cfde7 llvm::SmallVectorTemplateBase<clang::Decl*, true>::push_back(clang::Decl* const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/ADT/SmallVector.h:307:0
#52 0x00007ff2573cfde7 clang::ASTNodeImporter::ImportDeclContext(clang::DeclContext*, bool, clang::DeclContext*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1007:0
#53 0x00007ff2573d105b clang::ASTNodeImporter::ImportDefinition(clang::RecordDecl*, clang::RecordDecl*, clang::ASTNodeImporter::ImportDefinitionKind) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1132:0
#54 0x00007ff2573da070 clang::ASTNodeImporter::VisitClassTemplateSpecializationDecl(clang::ClassTemplateSpecializationDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:4101:0
#55 0x00007ff2573bef2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#56 0x00007ff2573cfde7 llvm::SmallVectorTemplateBase<clang::Decl*, true>::push_back(clang::Decl* const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/ADT/SmallVector.h:307:0
#57 0x00007ff2573cfde7 clang::ASTNodeImporter::ImportDeclContext(clang::DeclContext*, bool, clang::DeclContext*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1007:0
#58 0x00007ff2573d29c2 clang::ASTNodeImporter::VisitNamespaceDecl(clang::NamespaceDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1553:0
#59 0x00007ff2573bef2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#60 0x00007ff2573cfaac llvm::cast_retty<clang::DeclContext, clang::Decl*>::ret_type llvm::cast_or_null<clang::DeclContext, clang::Decl>(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:298:0
#61 0x00007ff2573cfaac clang::ASTImporter::ImportContext(clang::DeclContext*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6440:0
#62 0x00007ff2573d147e clang::ASTNodeImporter::ImportDeclParts(clang::NamedDecl*, clang::DeclContext*&, clang::DeclContext*&, clang::DeclarationName&, clang::NamedDecl*&, clang::SourceLocation&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:914:0
#63 0x00007ff2573d2492 clang::ASTNodeImporter::VisitClassTemplateDecl(clang::ClassTemplateDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:3888:0
#64 0x00007ff2573bef2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#65 0x00007ff2573d23cd clang::ASTNodeImporter::VisitClassTemplateDecl(clang::ClassTemplateDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:3877:0
#66 0x00007ff2573bef2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#67 0x00007ff2573cfde7 llvm::SmallVectorTemplateBase<clang::Decl*, true>::push_back(clang::Decl* const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/ADT/SmallVector.h:307:0
#68 0x00007ff2573cfde7 clang::ASTNodeImporter::ImportDeclContext(clang::DeclContext*, bool, clang::DeclContext*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1007:0
#69 0x00007ff2573d29c2 clang::ASTNodeImporter::VisitNamespaceDecl(clang::NamespaceDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1553:0
#70 0x00007ff2573bef2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#71 0x00007ff2573cfaac llvm::cast_retty<clang::DeclContext, clang::Decl*>::ret_type llvm::cast_or_null<clang::DeclContext, clang::Decl>(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:298:0
#72 0x00007ff2573cfaac clang::ASTImporter::ImportContext(clang::DeclContext*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6440:0
#73 0x00007ff2573d147e clang::ASTNodeImporter::ImportDeclParts(clang::NamedDecl*, clang::DeclContext*&, clang::DeclContext*&, clang::DeclarationName&, clang::NamedDecl*&, clang::SourceLocation&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:914:0
#74 0x00007ff2573d1f5e clang::ASTNodeImporter::VisitFunctionTemplateDecl(clang::FunctionTemplateDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:4315:0
#75 0x00007ff2573bef2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#76 0x00007ff2573c78b8 llvm::cast_retty<clang::NamedDecl, clang::Decl*>::ret_type llvm::cast_or_null<clang::NamedDecl, clang::Decl>(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:298:0
#77 0x00007ff2573c78b8 clang::ASTNodeImporter::VisitUnresolvedLookupExpr(clang::UnresolvedLookupExpr*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6044:0
#78 0x00007ff2573c0bff clang::ASTImporter::Import(clang::Stmt*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6510:0
#79 0x00007ff2573c1bfe llvm::cast_retty<clang::Expr, clang::Stmt*>::ret_type llvm::cast_or_null<clang::Expr, clang::Stmt>(clang::Stmt*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:298:0
#80 0x00007ff2573c1bfe clang::ASTImporter::Import(clang::Expr*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6495:0
#81 0x00007ff2573cd4f9 clang::ASTNodeImporter::VisitCallExpr(clang::CallExpr*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6159:0
#82 0x00007ff2573c0bff clang::ASTImporter::Import(clang::Stmt*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6510:0
#83 0x00007ff2573c1bfe llvm::cast_retty<clang::Expr, clang::Stmt*>::ret_type llvm::cast_or_null<clang::Expr, clang::Stmt>(clang::Stmt*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:298:0
#84 0x00007ff2573c1bfe clang::ASTImporter::Import(clang::Expr*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6495:0
#85 0x00007ff2573ce604 clang::ASTNodeImporter::VisitIfStmt(clang::IfStmt*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:4579:0
#86 0x00007ff2573c0bff clang::ASTImporter::Import(clang::Stmt*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6510:0
#87 0x00007ff2573c0e97 llvm::cast_retty<clang::Stmt, clang::Stmt*>::ret_type llvm::cast_or_null<clang::Stmt, clang::Stmt>(clang::Stmt*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:298:0
#88 0x00007ff2573c0e97 bool clang::ASTNodeImporter::ImportArrayChecked<clang::Stmt**, clang::Stmt**>(clang::Stmt**, clang::Stmt**, clang::Stmt**)::{lambda(clang::Stmt*)#1}::operator()(clang::Stmt*) const /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:325:0
#89 0x00007ff2573c0e97 clang::Stmt** std::transform<clang::Stmt**, clang::Stmt**, bool clang::ASTNodeImporter::ImportArrayChecked<clang::Stmt**, clang::Stmt**>(clang::Stmt**, clang::Stmt**, clang::Stmt**)::{lambda(clang::Stmt*)#1}>(clang::Stmt**, clang::Stmt**, clang::Stmt**, bool clang::ASTNodeImporter::ImportArrayChecked<clang::Stmt**, clang::Stmt**>(clang::Stmt**, clang::Stmt**, clang::Stmt**)::{lambda(clang::Stmt*)#1}) /usr/include/c++/5/bits/stl_algo.h:4175:0
#90 0x00007ff2573c0e97 bool clang::ASTNodeImporter::ImportArrayChecked<clang::Stmt**, clang::Stmt**>(clang::Stmt**, clang::Stmt**, clang::Stmt**) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:322:0
#91 0x00007ff2573c0e97 bool clang::ASTNodeImporter::ImportContainerChecked<llvm::iterator_rangeclang::Stmt**, llvm::SmallVector<clang::Stmt*, 8u> >(llvm::iterator_rangeclang::Stmt** const&, llvm::SmallVector<clang::Stmt*, 8u>&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:337:0
#92 0x00007ff2573c0e97 clang::ASTNodeImporter::VisitCompoundStmt(clang::CompoundStmt*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:4494:0
#93 0x00007ff2573c0bff clang::ASTImporter::Import(clang::Stmt*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6510:0
#94 0x00007ff2573be616 clang::ASTNodeImporter::VisitFunctionDecl(clang::FunctionDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:2319:0
#95 0x00007ff2573bef2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#96 0x00007ff2573cfde7 llvm::SmallVectorTemplateBase<clang::Decl*, true>::push_back(clang::Decl* const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/ADT/SmallVector.h:307:0
#97 0x00007ff2573cfde7 clang::ASTNodeImporter::ImportDeclContext(clang::DeclContext*, bool, clang::DeclContext*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1007:0
#98 0x00007ff2573d105b clang::ASTNodeImporter::ImportDefinition(clang::RecordDecl*, clang::RecordDecl*, clang::ASTNodeImporter::ImportDefinitionKind) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1132:0
#99 0x00007ff2573da070 clang::ASTNodeImporter::VisitClassTemplateSpecializationDecl(clang::ClassTemplateSpecializationDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:4101:0
#100 0x00007ff2573bef2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#101 0x00007ff2573cfde7 llvm::SmallVectorTemplateBase<clang::Decl*, true>::push_back(clang::Decl* const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/ADT/SmallVector.h:307:0
#102 0x00007ff2573cfde7 clang::ASTNodeImporter::ImportDeclContext(clang::DeclContext*, bool, clang::DeclContext*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1007:0
#103 0x00007ff2573d29c2 clang::ASTNodeImporter::VisitNamespaceDecl(clang::NamespaceDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1553:0
#104 0x00007ff2573bef2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#105 0x00007ff2573cfaac llvm::cast_retty<clang::DeclContext, clang::Decl*>::ret_type llvm::cast_or_null<clang::DeclContext, clang::Decl>(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:298:0
#106 0x00007ff2573cfaac clang::ASTImporter::ImportContext(clang::DeclContext*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6440:0
#107 0x00007ff2573d147e clang::ASTNodeImporter::ImportDeclParts(clang::NamedDecl*, clang::DeclContext*&, clang::DeclContext*&, clang::DeclarationName&, clang::NamedDecl*&, clang::SourceLocation&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:914:0
#108 0x00007ff2573d2492 clang::ASTNodeImporter::VisitClassTemplateDecl(clang::ClassTemplateDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:3888:0
#109 0x00007ff2573bef2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#110 0x00007ff2573d9c3c llvm::cast_retty<clang::ClassTemplateDecl, clang::Decl*>::ret_type llvm::cast_or_null<clang::ClassTemplateDecl, clang::Decl>(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:298:0
#111 0x00007ff2573d9c3c clang::ASTNodeImporter::VisitClassTemplateSpecializationDecl(clang::ClassTemplateSpecializationDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:3983:0
#112 0x00007ff2573bef2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#113 0x00007ff2573bf4e7 llvm::cast_retty<clang::RecordDecl, clang::Decl*>::ret_type llvm::dyn_cast_or_null<clang::RecordDecl, clang::Decl>(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:359:0
#114 0x00007ff2573bf4e7 clang::ASTNodeImporter::VisitRecordType(clang::RecordType const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:723:0
#115 0x00007ff2573c2125 clang::TypeVisitor<clang::ASTNodeImporter, clang::QualType>::Visit(clang::Type const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/include/clang/AST/TypeNodes.def:91:0
#116 0x00007ff2573c2337 clang::ASTImporter::Import(clang::QualType) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6355:0
#117 0x00007ff2573c5bfd clang::ASTNodeImporter::ImportTemplateArgument(clang::TemplateArgument const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1215:0
#118 0x00007ff2573c5fad clang::ASTNodeImporter::ImportTemplateArguments(clang::TemplateArgument const*, unsigned int, llvm::SmallVectorImplclang::TemplateArgument&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1307:0
#119 0x00007ff2573d9d03 clang::ASTNodeImporter::VisitClassTemplateSpecializationDecl(clang::ClassTemplateSpecializationDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:4005:0
#120 0x00007ff2573bef2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#121 0x00007ff2573bf4e7 llvm::cast_retty<clang::RecordDecl, clang::Decl*>::ret_type llvm::dyn_cast_or_null<clang::RecordDecl, clang::Decl>(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:359:0
#122 0x00007ff2573bf4e7 clang::ASTNodeImporter::VisitRecordType(clang::RecordType const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:723:0
#123 0x00007ff2573c2125 clang::TypeVisitor<clang::ASTNodeImporter, clang::QualType>::Visit(clang::Type const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/include/clang/AST/TypeNodes.def:91:0
#124 0x00007ff2573c2337 clang::ASTImporter::Import(clang::QualType) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6355:0
#125 0x00007ff2573c616c clang::ASTNodeImporter::VisitTemplateSpecializationType(clang::TemplateSpecializationType const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:804:0
#126 0x00007ff2573c20b5 clang::TypeVisitor<clang::ASTNodeImporter, clang::QualType>::Visit(clang::Type const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/include/clang/AST/TypeNodes.def:98:0
#127 0x00007ff2573c2337 clang::ASTImporter::Import(clang::QualType) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6355:0
#128 0x00007ff2573c66a0 clang::ASTNodeImporter::VisitElaboratedType(clang::ElaboratedType const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:822:0
#129 0x00007ff2573c2105 clang::TypeVisitor<clang::ASTNodeImporter, clang::QualType>::Visit(clang::Type const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/include/clang/AST/TypeNodes.def:93:0
#130 0x00007ff2573c2337 clang::ASTImporter::Import(clang::QualType) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6355:0
#131 0x00007ff2573c8253 clang::ASTNodeImporter::VisitCXXConstructExpr(clang::CXXConstructExpr*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:5819:0
#132 0x00007ff2573c0bff clang::ASTImporter::Import(clang::Stmt*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6510:0
#133 0x00007ff2573c1bfe llvm::cast_retty<clang::Expr, clang::Stmt*>::ret_type llvm::cast_or_null<clang::Expr, clang::Stmt>(clang::Stmt*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:298:0
#134 0x00007ff2573c1bfe clang::ASTImporter::Import(clang::Expr*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6495:0
#135 0x00007ff2573cf17d clang::ASTImporter::Import(clang::CXXCtorInitializer*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6803:0
#136 0x00007ff2573be808 llvm::cast_retty<clang::CXXCtorInitializer, clang::CXXCtorInitializer*>::ret_type llvm::cast_or_null<clang::CXXCtorInitializer, clang::CXXCtorInitializer>(clang::CXXCtorInitializer*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:298:0
#137 0x00007ff2573be808 clang::ASTNodeImporter::VisitFunctionDecl(clang::FunctionDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:2240:0
#138 0x00007ff2573bef2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#139 0x00007ff2558b5a74 llvm::isa_impl_cl<clang::FunctionDecl, clang::Decl const*>::doit(clang::Decl const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:106:0
#140 0x00007ff2558b5a74 llvm::isa_impl_wrap<clang::FunctionDecl, clang::Decl const*, clang::Decl const*>::doit(clang::Decl const* const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:133:0
#141 0x00007ff2558b5a74 llvm::isa_impl_wrap<clang::FunctionDecl, clang::Decl* const, clang::Decl const*>::doit(clang::Decl* const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:125:0
#142 0x00007ff2558b5a74 bool llvm::isa<clang::FunctionDecl, clang::Decl*>(clang::Decl* const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:144:0
#143 0x00007ff2558b5a74 llvm::cast_retty<clang::FunctionDecl, clang::Decl*>::ret_type llvm::cast<clang::FunctionDecl, clang::Decl>(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:255:0
#144 0x00007ff2558b5a74 clang::tooling::CrossTranslationUnit::getCrossTUDefinition(clang::FunctionDecl const*, llvm::StringRef, llvm::StringRef, llvm::StringRef) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/Tooling/CrossTranslationUnit.cpp:197:0
#145 0x00007ff2559707a8 clang::ento::AnyFunctionCall::getRuntimeDefinition() const /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp:388:0
#146 0x00007ff2559d709b clang::ento::ExprEngine::defaultEvalCall(clang::ento::NodeBuilder&, clang::ento::ExplodedNode*, clang::ento::CallEvent const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp:917:0
#147 0x00007ff2559cf327 llvm::SmallPtrSetIteratorclang::ento::ExplodedNode*::operator++() /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/ADT/SmallPtrSet.h:296:0
#148 0x00007ff2559cf327 clang::ento::ExprEngine::VisitCXXConstructExpr(clang::CXXConstructExpr const*, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp:344:0
#149 0x00007ff2559bcd09 clang::ento::ExprEngine::Visit(clang::Stmt const*, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp:1247:0
#150 0x00007ff2559bd72b clang::ento::ExprEngine::ProcessStmt(clang::CFGStmt, clang::ento::ExplodedNode*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp:548:0
#151 0x00007ff2559bd974 clang::ento::ExprEngine::processCFGElement(clang::CFGElement, clang::ento::ExplodedNode*, unsigned int, clang::ento::NodeBuilderContext*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp:395:0
#152 0x00007ff25598b40a clang::ento::CoreEngine::HandlePostStmt(clang::CFGBlock const*, unsigned int, clang::ento::ExplodedNode*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp:532:0
#153 0x00007ff25598b73c clang::ento::CoreEngine::dispatchWorkItem(clang::ento::ExplodedNode*, clang::ProgramPoint, clang::ento::WorkListUnit const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp:279:0
#154 0x00007ff25598b86e clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp:216:0
#155 0x00007ff255fdba06 llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>::release() /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:189:0
#156 0x00007ff255fdba06 llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>::~IntrusiveRefCntPtr() /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:157:0
#157 0x00007ff255fdba06 clang::ento::ExprEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h:114:0
#158 0x00007ff255fdba06 (anonymous namespace)::AnalysisConsumer::ActionExprEngine(clang::Decl*, bool, clang::ento::ExprEngine::InliningModes, llvm::DenseSet<clang::Decl const*, llvm::DenseMapInfo<clang::Decl const*> >) [clone .part.4463] [clone .constprop.4611] /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:742:0
#159 0x00007ff255fdc1eb RunPathSensitiveChecks /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:761:0
#160 0x00007ff255fdc1eb (anonymous namespace)::AnalysisConsumer::HandleCode(clang::Decl
, unsigned int, clang::ento::ExprEngine::InliningModes, llvm::DenseSet<clang::Decl const*, llvm::DenseMapInfo<clang::Decl const*> >) [clone .constprop.4607] /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:708:0
#161 0x00007ff255feb9d5 llvm::DenseMapBase<llvm::DenseMap<clang::Decl const
, llvm::detail::DenseSetEmpty, llvm::DenseMapInfo<clang::Decl const*>, llvm::detail::DenseSetPair<clang::Decl const*> >, clang::Decl const*, llvm::detail::DenseSetEmpty, llvm::DenseMapInfo<clang::Decl const*>, llvm::detail::DenseSetPair<clang::Decl const*> >::begin() /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/ADT/DenseMap.h:71:0
#162 0x00007ff255feb9d5 llvm::detail::DenseSetImpl<clang::Decl const*, llvm::DenseMap<clang::Decl const*, llvm::detail::DenseSetEmpty, llvm::DenseMapInfo<clang::Decl const*>, llvm::detail::DenseSetPair<clang::Decl const*> >, llvm::DenseMapInfo<clang::Decl const*> >::begin() /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/ADT/DenseSet.h:159:0
#163 0x00007ff255feb9d5 HandleDeclsCallGraph /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:525:0
#164 0x00007ff255feb9d5 (anonymous namespace)::AnalysisConsumer::HandleTranslationUnit(clang::ASTContext&) [clone .part.4513] [clone .constprop.4555] /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:573:0
#165 0x00007ff256e5cf28 void std::swap(bool&, bool&) /usr/include/c++/5/bits/move.h:187:0
#166 0x00007ff256e5cf28 clang::ParseAST(clang::Sema&, bool, bool) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/Parse/ParseAST.cpp:161:0
#167 0x00007ff2593e65d6 clang::FrontendAction::Execute() /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/Frontend/FrontendAction.cpp:902:0
#168 0x00007ff2593ad2b6 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/Frontend/CompilerInstance.cpp:981:0
#169 0x00007ff25931a6aa clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:251:0
#170 0x000000000040f978 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/tools/driver/cc1_main.cpp:221:0
#171 0x000000000040b1a1 ExecuteCC1Tool /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/tools/driver/driver.cpp:306:0
#172 0x000000000040b1a1 main /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/tools/driver/driver.cpp:387:0
#173 0x00007ff258bbc830 __libc_start_main /build/glibc-bfm8X4/glibc-2.23/csu/../csu/libc-start.c:325:0
#174 0x000000000040c499 _start (/home/gerazo/repos/codechecker_dev_env/samsungXTU/buildreldebass/bin/clang-5.0+0x40c499)
Stack dump:
0. Program arguments: /home/gerazo/repos/codechecker_dev_env/samsungXTU/buildreldebass/bin/clang-5.0 -cc1 -triple x86_64-unknown-linux-gnu -analyze -disable-free -main-file-name accounting_tests.cpp -analyzer-store=region -analyzer-opt-analyze-nested-blocks -analyzer-eagerly-assume -analyzer-output plist -w -mrelocation-model pic -pic-level 2 -pic-is-pie -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -momit-leaf-frame-pointer -dwarf-column-info -debugger-tuning=gdb -coverage-notes-file /home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin/_ctu1/accounting_tests.cpp_4402b26c53300af7d9e19d4cd67940cb.gcno -resource-dir /home/gerazo/repos/codechecker_dev_env/samsungXTU/buildreldebass/lib/clang/5.0.0 -D HAVE_CONFIG_H -I /home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin/src -I /home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin/src/config -U _FORTIFY_SOURCE -D _FORTIFY_SOURCE=2 -I /home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin/src -I /home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin/src/obj -D BOOST_SP_USE_STD_ATOMIC -D BOOST_AC_USE_STD_ATOMIC -I /usr/include -I /home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin/src/leveldb/include -I /home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin/src/leveldb/helpers/memenv -I /home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin/src/secp256k1/include -I /home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin/src/univalue/include -I /home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin/src/test -I /usr/include/c++/5 -I /usr/include/x86_64-linux-gnu/c++/5 -I /usr/include/c++/5/backward -I /usr/local/include -I /usr/include/x86_64-linux-gnu -I /usr/include -D BOOST_TEST_DYN_LINK -D HAVE_BUILD_INFO -D __STDC_FORMAT_MACROS -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/x86_64-linux-gnu/c++/5.4.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/x86_64-linux-gnu/c++/5.4.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/backward -internal-isystem /usr/local/include -internal-isystem /home/gerazo/repos/codechecker_dev_env/samsungXTU/buildreldebass/lib/clang/5.0.0/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -Wno-unused-parameter -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin -ferror-limit 19 -fmessage-length 0 -stack-protector 3 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-loops -vectorize-slp -analyzer-opt-analyze-headers -analyzer-output=plist-multi-file -analyzer-disable-checker alpha.clone.CloneChecker -analyzer-disable-checker alpha.core.BoolAssignment -analyzer-disable-checker alpha.core.CallAndMessageUnInitRefArg -analyzer-disable-checker alpha.core.CastSize -analyzer-disable-checker alpha.core.CastToStruct -analyzer-disable-checker alpha.core.Conversion -analyzer-disable-checker alpha.core.DynamicTypeChecker -analyzer-disable-checker alpha.core.FixedAddr -analyzer-disable-checker alpha.core.IdenticalExpr -analyzer-disable-checker alpha.core.PointerArithm -analyzer-disable-checker alpha.core.PointerSub -analyzer-disable-checker alpha.core.SizeofPtr -analyzer-disable-checker alpha.core.TestAfterDivZero -analyzer-disable-checker alpha.cplusplus.IteratorRange -analyzer-disable-checker alpha.cplusplus.MisusedMovedObject -analyzer-disable-checker alpha.deadcode.UnreachableCode -analyzer-disable-checker alpha.osx.cocoa.DirectIvarAssignment -analyzer-disable-checker alpha.osx.cocoa.DirectIvarAssignmentForAnnotatedFunctions -analyzer-disable-checker alpha.osx.cocoa.InstanceVariableInvalidation -analyzer-disable-checker alpha.osx.cocoa.MissingInvalidationMethod -analyzer-disable-checker alpha.osx.cocoa.localizability.PluralMisuseChecker -analyzer-disable-checker alpha.security.ArrayBound -analyzer-disable-checker alpha.security.ArrayBoundV2 -analyzer-disable-checker alpha.security.MallocOverflow -analyzer-disable-checker alpha.security.ReturnPtrRange -analyzer-disable-checker alpha.security.taint.TaintPropagation -analyzer-disable-checker alpha.unix.BlockInCriticalSection -analyzer-disable-checker alpha.unix.Chroot -analyzer-disable-checker alpha.unix.PthreadLock -analyzer-disable-checker alpha.unix.SimpleStream -analyzer-disable-checker alpha.unix.Stream -analyzer-disable-checker alpha.unix.cstring.BufferOverlap -analyzer-disable-checker alpha.unix.cstring.NotNullTerminated -analyzer-disable-checker alpha.unix.cstring.OutOfBounds -analyzer-disable-checker apiModeling.google.GTest -analyzer-checker=core.CallAndMessage -analyzer-checker=core.DivideZero -analyzer-checker=core.DynamicTypePropagation -analyzer-checker=core.NonNullParamChecker -analyzer-checker=core.NullDereference -analyzer-checker=core.StackAddressEscape -analyzer-checker=core.UndefinedBinaryOperatorResult -analyzer-checker=core.VLASize -analyzer-checker=core.builtin.BuiltinFunctions -analyzer-checker=core.builtin.NoReturnFunctions -analyzer-checker=core.uninitialized.ArraySubscript -analyzer-checker=core.uninitialized.Assign -analyzer-checker=core.uninitialized.Branch -analyzer-checker=core.uninitialized.CapturedBlockVariable -analyzer-checker=core.uninitialized.UndefReturn -analyzer-checker=cplusplus.NewDelete -analyzer-checker=cplusplus.NewDeleteLeaks -analyzer-checker=cplusplus.SelfAssignment -analyzer-checker=deadcode.DeadStores -analyzer-disable-checker debug.AnalysisOrder -analyzer-disable-checker debug.ConfigDumper -analyzer-disable-checker debug.DumpBugHash -analyzer-disable-checker debug.DumpCFG -analyzer-disable-checker debug.DumpCallGraph -analyzer-disable-checker debug.DumpCalls -analyzer-disable-checker debug.DumpDominators -analyzer-disable-checker debug.DumpLiveVars -analyzer-disable-checker debug.DumpTraversal -analyzer-disable-checker debug.ExprInspection -analyzer-disable-checker debug.Stats -analyzer-disable-checker debug.TaintTest -analyzer-disable-checker debug.ViewCFG -analyzer-disable-checker debug.ViewCallGraph -analyzer-disable-checker debug.ViewExplodedGraph -analyzer-disable-checker llvm.Conventions -analyzer-disable-checker nullability.NullPassedToNonnull -analyzer-disable-checker nullability.NullReturnedFromNonnull -analyzer-disable-checker nullability.NullableDereferenced -analyzer-disable-checker nullability.NullablePassedToNonnull -analyzer-disable-checker nullability.NullableReturnedFromNonnull -analyzer-disable-checker optin.cplusplus.VirtualCall -analyzer-disable-checker optin.mpi.MPI-Checker -analyzer-disable-checker optin.osx.cocoa.localizability.EmptyLocalizationContextChecker -analyzer-disable-checker optin.osx.cocoa.localizability.NonLocalizedStringChecker -analyzer-disable-checker optin.performance.Padding -analyzer-disable-checker optin.portability.UnixAPI -analyzer-disable-checker osx.API -analyzer-disable-checker osx.NumberObjectConversion -analyzer-disable-checker osx.ObjCProperty -analyzer-disable-checker osx.SecKeychainAPI -analyzer-disable-checker osx.cocoa.AtSync -analyzer-disable-checker osx.cocoa.ClassRelease -analyzer-disable-checker osx.cocoa.Dealloc -analyzer-disable-checker osx.cocoa.IncompatibleMethodTypes -analyzer-disable-checker osx.cocoa.Loops -analyzer-disable-checker osx.cocoa.MissingSuperCall -analyzer-disable-checker osx.cocoa.NSAutoreleasePool -analyzer-disable-checker osx.cocoa.NSError -analyzer-disable-checker osx.cocoa.NilArg -analyzer-disable-checker osx.cocoa.NonNilReturnValue -analyzer-disable-checker osx.cocoa.ObjCGenerics -analyzer-disable-checker osx.cocoa.RetainCount -analyzer-disable-checker osx.cocoa.SelfInit -analyzer-disable-checker osx.cocoa.SuperDealloc -analyzer-disable-checker osx.cocoa.UnusedIvars -analyzer-disable-checker osx.cocoa.VariadicMethodTypes -analyzer-disable-checker osx.coreFoundation.CFError -analyzer-disable-checker osx.coreFoundation.CFNumber -analyzer-disable-checker osx.coreFoundation.CFRetainRelease -analyzer-disable-checker osx.coreFoundation.containers.OutOfBounds -analyzer-disable-checker osx.coreFoundation.containers.PointerSizedValues -analyzer-disable-checker security.FloatLoopCounter -analyzer-checker=security.insecureAPI.UncheckedReturn -analyzer-checker=security.insecureAPI.getpw -analyzer-checker=security.insecureAPI.gets -analyzer-checker=security.insecureAPI.mkstemp -analyzer-checker=security.insecureAPI.mktemp -analyzer-disable-checker security.insecureAPI.rand -analyzer-disable-checker security.insecureAPI.strcpy -analyzer-checker=security.insecureAPI.vfork -analyzer-checker=unix.API -analyzer-checker=unix.Malloc -analyzer-checker=unix.MallocSizeof -analyzer-checker=unix.MismatchedDeallocator -analyzer-checker=unix.StdCLibraryFunctions -analyzer-checker=unix.Vfork -analyzer-checker=unix.cstring.BadSizeArg -analyzer-checker=unix.cstring.NullArg -analyzer-disable-checker valist.CopyToSelf -analyzer-disable-checker valist.Uninitialized -analyzer-disable-checker valist.Unterminated -analyzer-config xtu-dir=/home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin/_ctu1/ctu-dir/x86_64 -o /home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin/_ctu1/accounting_tests.cpp_4402b26c53300af7d9e19d4cd67940cb.plist -x c++ /home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin/src/wallet/test/accounting_tests.cpp

  1. parser at end of file
  2. While analyzing stack:
    #0 template<> void construct<const CTransaction, >(const CTransaction *__p, CMutableTransaction &&__args)
    file analysis order not calculated correctly #1 template<> static void construct<const CTransaction, >(std::allocator_traits<std::allocator >::allocator_type &__a, const CTransaction *__p, CMutableTransaction &&__args)
    phase out OUT_DIR env variable #2 template<> _Sp_counted_ptr_inplace<>(std::allocator __a, CMutableTransaction &&__args) : _Sp_counted_base<(__gnu_cxx::_Lock_policy)2U>(), _M_impl(__a) {}
  3. /usr/include/c++/5/ext/new_allocator.h:120:23: Error evaluating statement
  4. /usr/include/c++/5/ext/new_allocator.h:120:23: Error evaluating statement
    clang-5.0: error: unable to execute command: Aborted (core dumped)
    clang-5.0: error: clang frontend command failed due to signal (use -v to see invocation)
    clang version 5.0.0 ([email protected]:Ericsson/clang.git ed19c1a) (https://github.com/llvm-mirror/llvm.git 657c31173ea30090583e40c7a9204561d9c2d8c4)
    Target: x86_64-unknown-linux-gnu
    Thread model: posix
    InstalledDir: /home/gerazo/repos/codechecker_dev_env/samsungXTU/buildreldebass/bin
    clang-5.0: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
    clang-5.0: note: diagnostic msg:

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-5.0: note: diagnostic msg: /tmp/accounting_tests-5782cb.cpp
clang-5.0: note: diagnostic msg: /tmp/accounting_tests-5782cb.sh
clang-5.0: note: diagnostic msg:


@gerazo
Copy link
Collaborator

gerazo commented Oct 11, 2017

However, sometimes we get this error without the TypeAliasTemplate:

clang-5.0: /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/DeclBase.cpp:1328: void clang::DeclContext::removeDecl(clang::Decl*): Assertion `(D->NextInContextAndBits.getPointer() || D == LastDecl) && "decl is not in decls list"' failed.
#0 0x00007fb90561d08a llvm::sys::PrintStackTrace(llvm::raw_ostream&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/lib/Support/Unix/Signals.inc:402:0
#1 0x00007fb90561aebe llvm::sys::RunSignalHandlers() /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/lib/Support/Signals.cpp:50:0
#2 0x00007fb90561b032 SignalHandler(int) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/lib/Support/Unix/Signals.inc:242:0
#3 0x00007fb903fcc4b0 (/lib/x86_64-linux-gnu/libc.so.6+0x354b0)
#4 0x00007fb903fcc428 gsignal /build/glibc-bfm8X4/glibc-2.23/signal/../sysdeps/unix/sysv/linux/raise.c:54:0
#5 0x00007fb903fce02a abort /build/glibc-bfm8X4/glibc-2.23/stdlib/abort.c:91:0
#6 0x00007fb903fc4bd7 __assert_fail_base /build/glibc-bfm8X4/glibc-2.23/assert/assert.c:92:0
#7 0x00007fb903fc4c82 (/lib/x86_64-linux-gnu/libc.so.6+0x2dc82)
#8 0x00007fb90283c2e9 llvm::SmallVectorImplclang::NamedDecl*::erase(clang::NamedDecl* const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/ADT/SmallVector.h:451:0
#9 0x00007fb90283c2e9 clang::StoredDeclsList::remove(clang::NamedDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/include/clang/AST/DeclContextInternals.h:117:0
#10 0x00007fb90283c2e9 clang::DeclContext::removeDecl(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/DeclBase.cpp:1364:0
#11 0x00007fb9027cae7b clang::ASTNodeImporter::ImportDeclContext(clang::DeclContext*, bool, clang::DeclContext*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1010:0
#12 0x00007fb9027cc05b clang::ASTNodeImporter::ImportDefinition(clang::RecordDecl*, clang::RecordDecl*, clang::ASTNodeImporter::ImportDefinitionKind) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1132:0
#13 0x00007fb9027d5070 clang::ASTNodeImporter::VisitClassTemplateSpecializationDecl(clang::ClassTemplateSpecializationDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:4101:0
#14 0x00007fb9027b9f2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#15 0x00007fb9027cade7 llvm::SmallVectorTemplateBase<clang::Decl*, true>::push_back(clang::Decl* const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/ADT/SmallVector.h:307:0
#16 0x00007fb9027cade7 clang::ASTNodeImporter::ImportDeclContext(clang::DeclContext*, bool, clang::DeclContext*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1007:0
#17 0x00007fb9027cd9c2 clang::ASTNodeImporter::VisitNamespaceDecl(clang::NamespaceDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1553:0
#18 0x00007fb9027b9f2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#19 0x00007fb9027caaac llvm::cast_retty<clang::DeclContext, clang::Decl*>::ret_type llvm::cast_or_null<clang::DeclContext, clang::Decl>(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:298:0
#20 0x00007fb9027caaac clang::ASTImporter::ImportContext(clang::DeclContext*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6440:0
#21 0x00007fb9027cc47e clang::ASTNodeImporter::ImportDeclParts(clang::NamedDecl*, clang::DeclContext*&, clang::DeclContext*&, clang::DeclarationName&, clang::NamedDecl*&, clang::SourceLocation&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:914:0
#22 0x00007fb9027d0132 clang::ASTNodeImporter::VisitTypedefNameDecl(clang::TypedefNameDecl*, bool) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1600:0
#23 0x00007fb9027b9f2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#24 0x00007fb9027ba440 llvm::cast_retty<clang::TypedefNameDecl, clang::Decl*>::ret_type llvm::dyn_cast_or_null<clang::TypedefNameDecl, clang::Decl>(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:359:0
#25 0x00007fb9027ba440 clang::ASTNodeImporter::VisitTypedefType(clang::TypedefType const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:638:0
#26 0x00007fb9027bd195 clang::TypeVisitor<clang::ASTNodeImporter, clang::QualType>::Visit(clang::Type const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/include/clang/AST/TypeNodes.def:83:0
#27 0x00007fb9027bd337 clang::ASTImporter::Import(clang::QualType) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6355:0
#28 0x00007fb9027c16a0 clang::ASTNodeImporter::VisitElaboratedType(clang::ElaboratedType const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:822:0
#29 0x00007fb9027bd105 clang::TypeVisitor<clang::ASTNodeImporter, clang::QualType>::Visit(clang::Type const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/include/clang/AST/TypeNodes.def:93:0
#30 0x00007fb9027bd337 clang::ASTImporter::Import(clang::QualType) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6355:0
#31 0x00007fb9027d03dc clang::ASTNodeImporter::VisitTypedefNameDecl(clang::TypedefNameDecl*, bool) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1649:0
#32 0x00007fb9027b9f2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#33 0x00007fb9027cade7 llvm::SmallVectorTemplateBase<clang::Decl*, true>::push_back(clang::Decl* const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/ADT/SmallVector.h:307:0
#34 0x00007fb9027cade7 clang::ASTNodeImporter::ImportDeclContext(clang::DeclContext*, bool, clang::DeclContext*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1007:0
#35 0x00007fb9027cc05b clang::ASTNodeImporter::ImportDefinition(clang::RecordDecl*, clang::RecordDecl*, clang::ASTNodeImporter::ImportDefinitionKind) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1132:0
#36 0x00007fb9027d5070 clang::ASTNodeImporter::VisitClassTemplateSpecializationDecl(clang::ClassTemplateSpecializationDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:4101:0
#37 0x00007fb9027b9f2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#38 0x00007fb9027ba4e7 llvm::cast_retty<clang::RecordDecl, clang::Decl*>::ret_type llvm::dyn_cast_or_null<clang::RecordDecl, clang::Decl>(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:359:0
#39 0x00007fb9027ba4e7 clang::ASTNodeImporter::VisitRecordType(clang::RecordType const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:723:0
#40 0x00007fb9027bd125 clang::TypeVisitor<clang::ASTNodeImporter, clang::QualType>::Visit(clang::Type const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/include/clang/AST/TypeNodes.def:91:0
#41 0x00007fb9027bd337 clang::ASTImporter::Import(clang::QualType) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6355:0
#42 0x00007fb9027c116c clang::ASTNodeImporter::VisitTemplateSpecializationType(clang::TemplateSpecializationType const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:804:0
#43 0x00007fb9027bd0b5 clang::TypeVisitor<clang::ASTNodeImporter, clang::QualType>::Visit(clang::Type const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/include/clang/AST/TypeNodes.def:98:0
#44 0x00007fb9027bd337 clang::ASTImporter::Import(clang::QualType) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6355:0
#45 0x00007fb9027cbf3d clang::ASTNodeImporter::ImportDefinition(clang::RecordDecl*, clang::RecordDecl*, clang::ASTNodeImporter::ImportDefinitionKind) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1106:0
#46 0x00007fb9027d5070 clang::ASTNodeImporter::VisitClassTemplateSpecializationDecl(clang::ClassTemplateSpecializationDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:4101:0
#47 0x00007fb9027b9f2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#48 0x00007fb9027ba4e7 llvm::cast_retty<clang::RecordDecl, clang::Decl*>::ret_type llvm::dyn_cast_or_null<clang::RecordDecl, clang::Decl>(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:359:0
#49 0x00007fb9027ba4e7 clang::ASTNodeImporter::VisitRecordType(clang::RecordType const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:723:0
#50 0x00007fb9027bd125 clang::TypeVisitor<clang::ASTNodeImporter, clang::QualType>::Visit(clang::Type const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/include/clang/AST/TypeNodes.def:91:0
#51 0x00007fb9027bd337 clang::ASTImporter::Import(clang::QualType) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6355:0
#52 0x00007fb9027c0bfd clang::ASTNodeImporter::ImportTemplateArgument(clang::TemplateArgument const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1215:0
#53 0x00007fb9027c0fad clang::ASTNodeImporter::ImportTemplateArguments(clang::TemplateArgument const*, unsigned int, llvm::SmallVectorImplclang::TemplateArgument&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1307:0
#54 0x00007fb9027d4d03 clang::ASTNodeImporter::VisitClassTemplateSpecializationDecl(clang::ClassTemplateSpecializationDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:4005:0
#55 0x00007fb9027b9f2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#56 0x00007fb9027ba4e7 llvm::cast_retty<clang::RecordDecl, clang::Decl*>::ret_type llvm::dyn_cast_or_null<clang::RecordDecl, clang::Decl>(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:359:0
#57 0x00007fb9027ba4e7 clang::ASTNodeImporter::VisitRecordType(clang::RecordType const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:723:0
#58 0x00007fb9027bd125 clang::TypeVisitor<clang::ASTNodeImporter, clang::QualType>::Visit(clang::Type const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/include/clang/AST/TypeNodes.def:91:0
#59 0x00007fb9027bd337 clang::ASTImporter::Import(clang::QualType) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6355:0
#60 0x00007fb9027c116c clang::ASTNodeImporter::VisitTemplateSpecializationType(clang::TemplateSpecializationType const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:804:0
#61 0x00007fb9027bd0b5 clang::TypeVisitor<clang::ASTNodeImporter, clang::QualType>::Visit(clang::Type const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/include/clang/AST/TypeNodes.def:98:0
#62 0x00007fb9027bd337 clang::ASTImporter::Import(clang::QualType) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6355:0
#63 0x00007fb9027c16a0 clang::ASTNodeImporter::VisitElaboratedType(clang::ElaboratedType const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:822:0
#64 0x00007fb9027bd105 clang::TypeVisitor<clang::ASTNodeImporter, clang::QualType>::Visit(clang::Type const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/include/clang/AST/TypeNodes.def:93:0
#65 0x00007fb9027bd337 clang::ASTImporter::Import(clang::QualType) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6355:0
#66 0x00007fb9027d1e3d clang::ASTNodeImporter::VisitFieldDecl(clang::FieldDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:2404:0
#67 0x00007fb9027b9f2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#68 0x00007fb9027cade7 llvm::SmallVectorTemplateBase<clang::Decl*, true>::push_back(clang::Decl* const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/ADT/SmallVector.h:307:0
#69 0x00007fb9027cade7 clang::ASTNodeImporter::ImportDeclContext(clang::DeclContext*, bool, clang::DeclContext*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1007:0
#70 0x00007fb9027cc05b clang::ASTNodeImporter::ImportDefinition(clang::RecordDecl*, clang::RecordDecl*, clang::ASTNodeImporter::ImportDefinitionKind) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1132:0
#71 0x00007fb9027ced0a clang::ASTNodeImporter::VisitRecordDecl(clang::RecordDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:2051:0
#72 0x00007fb9027b9f2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#73 0x00007fb9027cade7 llvm::SmallVectorTemplateBase<clang::Decl*, true>::push_back(clang::Decl* const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/ADT/SmallVector.h:307:0
#74 0x00007fb9027cade7 clang::ASTNodeImporter::ImportDeclContext(clang::DeclContext*, bool, clang::DeclContext*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1007:0
#75 0x00007fb9027cd9c2 clang::ASTNodeImporter::VisitNamespaceDecl(clang::NamespaceDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1553:0
#76 0x00007fb9027b9f2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#77 0x00007fb9027caaac llvm::cast_retty<clang::DeclContext, clang::Decl*>::ret_type llvm::cast_or_null<clang::DeclContext, clang::Decl>(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:298:0
#78 0x00007fb9027caaac clang::ASTImporter::ImportContext(clang::DeclContext*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6440:0
#79 0x00007fb9027cc47e clang::ASTNodeImporter::ImportDeclParts(clang::NamedDecl*, clang::DeclContext*&, clang::DeclContext*&, clang::DeclarationName&, clang::NamedDecl*&, clang::SourceLocation&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:914:0
#80 0x00007fb9027ceacd clang::ASTNodeImporter::VisitRecordDecl(clang::RecordDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1868:0
#81 0x00007fb9027b9f2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#82 0x00007fb9027ba4e7 llvm::cast_retty<clang::RecordDecl, clang::Decl*>::ret_type llvm::dyn_cast_or_null<clang::RecordDecl, clang::Decl>(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:359:0
#83 0x00007fb9027ba4e7 clang::ASTNodeImporter::VisitRecordType(clang::RecordType const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:723:0
#84 0x00007fb9027bd125 clang::TypeVisitor<clang::ASTNodeImporter, clang::QualType>::Visit(clang::Type const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/include/clang/AST/TypeNodes.def:91:0
#85 0x00007fb9027bd337 clang::ASTImporter::Import(clang::QualType) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6355:0
#86 0x00007fb9027bda80 clang::ASTNodeImporter::VisitPointerType(clang::PointerType const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:434:0
#87 0x00007fb9027bd025 clang::TypeVisitor<clang::ASTNodeImporter, clang::QualType>::Visit(clang::Type const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/include/clang/AST/TypeNodes.def:64:0
#88 0x00007fb9027bd337 clang::ASTImporter::Import(clang::QualType) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6355:0
#89 0x00007fb9027d1e3d clang::ASTNodeImporter::VisitFieldDecl(clang::FieldDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:2404:0
#90 0x00007fb9027b9f2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#91 0x00007fb9027cade7 llvm::SmallVectorTemplateBase<clang::Decl*, true>::push_back(clang::Decl* const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/ADT/SmallVector.h:307:0
#92 0x00007fb9027cade7 clang::ASTNodeImporter::ImportDeclContext(clang::DeclContext*, bool, clang::DeclContext*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1007:0
#93 0x00007fb9027cc05b clang::ASTNodeImporter::ImportDefinition(clang::RecordDecl*, clang::RecordDecl*, clang::ASTNodeImporter::ImportDefinitionKind) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1132:0
#94 0x00007fb9027ced0a clang::ASTNodeImporter::VisitRecordDecl(clang::RecordDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:2051:0
#95 0x00007fb9027b9f2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#96 0x00007fb9027cade7 llvm::SmallVectorTemplateBase<clang::Decl*, true>::push_back(clang::Decl* const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/ADT/SmallVector.h:307:0
#97 0x00007fb9027cade7 clang::ASTNodeImporter::ImportDeclContext(clang::DeclContext*, bool, clang::DeclContext*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1007:0
#98 0x00007fb9027cd9c2 clang::ASTNodeImporter::VisitNamespaceDecl(clang::NamespaceDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:1553:0
#99 0x00007fb9027b9f2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#100 0x00007fb9027caaac llvm::cast_retty<clang::DeclContext, clang::Decl*>::ret_type llvm::cast_or_null<clang::DeclContext, clang::Decl>(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:298:0
#101 0x00007fb9027caaac clang::ASTImporter::ImportContext(clang::DeclContext*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6440:0
#102 0x00007fb9027cc4ba clang::ASTNodeImporter::ImportDeclParts(clang::NamedDecl*, clang::DeclContext*&, clang::DeclContext*&, clang::DeclarationName&, clang::NamedDecl*&, clang::SourceLocation&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:920:0
#103 0x00007fb9027b8cde clang::ASTNodeImporter::VisitFunctionDecl(clang::FunctionDecl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:2122:0
#104 0x00007fb9027b9f2a clang::ASTImporter::Import(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/AST/ASTImporter.cpp:6405:0
#105 0x00007fb900cb0a74 llvm::isa_impl_cl<clang::FunctionDecl, clang::Decl const*>::doit(clang::Decl const*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:106:0
#106 0x00007fb900cb0a74 llvm::isa_impl_wrap<clang::FunctionDecl, clang::Decl const*, clang::Decl const*>::doit(clang::Decl const* const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:133:0
#107 0x00007fb900cb0a74 llvm::isa_impl_wrap<clang::FunctionDecl, clang::Decl* const, clang::Decl const*>::doit(clang::Decl* const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:125:0
#108 0x00007fb900cb0a74 bool llvm::isa<clang::FunctionDecl, clang::Decl*>(clang::Decl* const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:144:0
#109 0x00007fb900cb0a74 llvm::cast_retty<clang::FunctionDecl, clang::Decl*>::ret_type llvm::cast<clang::FunctionDecl, clang::Decl>(clang::Decl*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/Support/Casting.h:255:0
#110 0x00007fb900cb0a74 clang::tooling::CrossTranslationUnit::getCrossTUDefinition(clang::FunctionDecl const*, llvm::StringRef, llvm::StringRef, llvm::StringRef) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/Tooling/CrossTranslationUnit.cpp:197:0
#111 0x00007fb900d6b7a8 clang::ento::AnyFunctionCall::getRuntimeDefinition() const /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp:388:0
#112 0x00007fb900d72c64 clang::ento::CXXInstanceCall::getRuntimeDefinition() const /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp:522:0
#113 0x00007fb900d72f43 clang::ento::CXXMemberCall::getRuntimeDefinition() const /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp:622:0
#114 0x00007fb900dd209b clang::ento::ExprEngine::defaultEvalCall(clang::ento::NodeBuilder&, clang::ento::ExplodedNode*, clang::ento::CallEvent const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp:917:0
#115 0x00007fb900d77f24 clang::ento::CheckerManager::runCheckersForEvalCall(clang::ento::ExplodedNodeSet&, clang::ento::ExplodedNodeSet const&, clang::ento::CallEvent const&, clang::ento::ExprEngine&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Core/CheckerManager.cpp:619:0
#116 0x00007fb900dcbfa0 clang::ento::ExprEngine::evalCall(clang::ento::ExplodedNodeSet&, clang::ento::ExplodedNode*, clang::ento::CallEvent const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp:518:0
#117 0x00007fb900dcc2bf llvm::SmallPtrSetIteratorclang::ento::ExplodedNode*::operator++() /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/ADT/SmallPtrSet.h:296:0
#118 0x00007fb900dcc2bf clang::ento::ExprEngine::VisitCallExpr(clang::CallExpr const*, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp:487:0
#119 0x00007fb900db7c81 clang::ento::NodeBuilder::addNodes(clang::ento::ExplodedNodeSet const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h:307:0
#120 0x00007fb900db7c81 clang::ento::ExprEngine::Visit(clang::Stmt const*, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp:1233:0
#121 0x00007fb900db872b clang::ento::ExprEngine::ProcessStmt(clang::CFGStmt, clang::ento::ExplodedNode*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp:548:0
#122 0x00007fb900db8974 clang::ento::ExprEngine::processCFGElement(clang::CFGElement, clang::ento::ExplodedNode*, unsigned int, clang::ento::NodeBuilderContext*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp:395:0
#123 0x00007fb900d8640a clang::ento::CoreEngine::HandlePostStmt(clang::CFGBlock const*, unsigned int, clang::ento::ExplodedNode*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp:532:0
#124 0x00007fb900d8673c clang::ento::CoreEngine::dispatchWorkItem(clang::ento::ExplodedNode*, clang::ProgramPoint, clang::ento::WorkListUnit const&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp:279:0
#125 0x00007fb900d8686e clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp:216:0
#126 0x00007fb9013d6a06 llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>::release() /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:189:0
#127 0x00007fb9013d6a06 llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>::~IntrusiveRefCntPtr() /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:157:0
#128 0x00007fb9013d6a06 clang::ento::ExprEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h:114:0
#129 0x00007fb9013d6a06 (anonymous namespace)::AnalysisConsumer::ActionExprEngine(clang::Decl*, bool, clang::ento::ExprEngine::InliningModes, llvm::DenseSet<clang::Decl const*, llvm::DenseMapInfo<clang::Decl const*> >) [clone .part.4463] [clone .constprop.4611] /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:742:0
#130 0x00007fb9013d71eb RunPathSensitiveChecks /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:761:0
#131 0x00007fb9013d71eb (anonymous namespace)::AnalysisConsumer::HandleCode(clang::Decl
, unsigned int, clang::ento::ExprEngine::InliningModes, llvm::DenseSet<clang::Decl const*, llvm::DenseMapInfo<clang::Decl const*> >) [clone .constprop.4607] /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:708:0
#132 0x00007fb9013e69d5 llvm::DenseMapBase<llvm::DenseMap<clang::Decl const
, llvm::detail::DenseSetEmpty, llvm::DenseMapInfo<clang::Decl const*>, llvm::detail::DenseSetPair<clang::Decl const*> >, clang::Decl const*, llvm::detail::DenseSetEmpty, llvm::DenseMapInfo<clang::Decl const*>, llvm::detail::DenseSetPair<clang::Decl const*> >::begin() /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/ADT/DenseMap.h:71:0
#133 0x00007fb9013e69d5 llvm::detail::DenseSetImpl<clang::Decl const*, llvm::DenseMap<clang::Decl const*, llvm::detail::DenseSetEmpty, llvm::DenseMapInfo<clang::Decl const*>, llvm::detail::DenseSetPair<clang::Decl const*> >, llvm::DenseMapInfo<clang::Decl const*> >::begin() /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/include/llvm/ADT/DenseSet.h:159:0
#134 0x00007fb9013e69d5 HandleDeclsCallGraph /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:525:0
#135 0x00007fb9013e69d5 (anonymous namespace)::AnalysisConsumer::HandleTranslationUnit(clang::ASTContext&) [clone .part.4513] [clone .constprop.4555] /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp:573:0
#136 0x00007fb902257f28 void std::swap(bool&, bool&) /usr/include/c++/5/bits/move.h:187:0
#137 0x00007fb902257f28 clang::ParseAST(clang::Sema&, bool, bool) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/Parse/ParseAST.cpp:161:0
#138 0x00007fb9047e15d6 clang::FrontendAction::Execute() /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/Frontend/FrontendAction.cpp:902:0
#139 0x00007fb9047a82b6 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/Frontend/CompilerInstance.cpp:981:0
#140 0x00007fb9047156aa clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:251:0
#141 0x000000000040f978 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/tools/driver/cc1_main.cpp:221:0
#142 0x000000000040b1a1 ExecuteCC1Tool /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/tools/driver/driver.cpp:306:0
#143 0x000000000040b1a1 main /home/gerazo/repos/codechecker_dev_env/samsungXTU/llvm/tools/clang/tools/driver/driver.cpp:387:0
#144 0x00007fb903fb7830 __libc_start_main /build/glibc-bfm8X4/glibc-2.23/csu/../csu/libc-start.c:325:0
#145 0x000000000040c499 _start (/home/gerazo/repos/codechecker_dev_env/samsungXTU/buildreldebass/bin/clang-5.0+0x40c499)
Stack dump:
0. Program arguments: /home/gerazo/repos/codechecker_dev_env/samsungXTU/buildreldebass/bin/clang-5.0 -cc1 -triple x86_64-unknown-linux-gnu -analyze -disable-free -main-file-name block.cc -analyzer-store=region -analyzer-opt-analyze-nested-blocks -analyzer-eagerly-assume -analyzer-output plist -w -mrelocation-model pic -pic-level 2 -pic-is-pie -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -momit-leaf-frame-pointer -dwarf-column-info -debugger-tuning=gdb -coverage-notes-file /home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin/_ctu1/block.cc_cc66396c0b49e22427fa620534a21f88.gcno -resource-dir /home/gerazo/repos/codechecker_dev_env/samsungXTU/buildreldebass/lib/clang/5.0.0 -D HAVE_CONFIG_H -I /home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin/src -I /home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin/src/config -U _FORTIFY_SOURCE -D _FORTIFY_SOURCE=2 -I /home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin/src/leveldb -D OS_LINUX -D LEVELDB_ATOMIC_PRESENT -D __STDC_LIMIT_MACROS -D LEVELDB_PLATFORM_POSIX -I /home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin/src/leveldb/include -I /home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin/src/leveldb/helpers/memenv -I /usr/include/c++/5 -I /usr/include/x86_64-linux-gnu/c++/5 -I /usr/include/c++/5/backward -I /usr/local/include -I /usr/include/x86_64-linux-gnu -I /usr/include -D HAVE_BUILD_INFO -D __STDC_FORMAT_MACROS -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/x86_64-linux-gnu/c++/5.4.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/x86_64-linux-gnu/c++/5.4.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/backward -internal-isystem /usr/local/include -internal-isystem /home/gerazo/repos/codechecker_dev_env/samsungXTU/buildreldebass/lib/clang/5.0.0/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -Wno-unused-parameter -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin -ferror-limit 19 -fmessage-length 0 -stack-protector 3 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-loops -vectorize-slp -analyzer-opt-analyze-headers -analyzer-output=plist-multi-file -analyzer-disable-checker alpha.clone.CloneChecker -analyzer-disable-checker alpha.core.BoolAssignment -analyzer-disable-checker alpha.core.CallAndMessageUnInitRefArg -analyzer-disable-checker alpha.core.CastSize -analyzer-disable-checker alpha.core.CastToStruct -analyzer-disable-checker alpha.core.Conversion -analyzer-disable-checker alpha.core.DynamicTypeChecker -analyzer-disable-checker alpha.core.FixedAddr -analyzer-disable-checker alpha.core.IdenticalExpr -analyzer-disable-checker alpha.core.PointerArithm -analyzer-disable-checker alpha.core.PointerSub -analyzer-disable-checker alpha.core.SizeofPtr -analyzer-disable-checker alpha.core.TestAfterDivZero -analyzer-disable-checker alpha.cplusplus.IteratorRange -analyzer-disable-checker alpha.cplusplus.MisusedMovedObject -analyzer-disable-checker alpha.deadcode.UnreachableCode -analyzer-disable-checker alpha.osx.cocoa.DirectIvarAssignment -analyzer-disable-checker alpha.osx.cocoa.DirectIvarAssignmentForAnnotatedFunctions -analyzer-disable-checker alpha.osx.cocoa.InstanceVariableInvalidation -analyzer-disable-checker alpha.osx.cocoa.MissingInvalidationMethod -analyzer-disable-checker alpha.osx.cocoa.localizability.PluralMisuseChecker -analyzer-disable-checker alpha.security.ArrayBound -analyzer-disable-checker alpha.security.ArrayBoundV2 -analyzer-disable-checker alpha.security.MallocOverflow -analyzer-disable-checker alpha.security.ReturnPtrRange -analyzer-disable-checker alpha.security.taint.TaintPropagation -analyzer-disable-checker alpha.unix.BlockInCriticalSection -analyzer-disable-checker alpha.unix.Chroot -analyzer-disable-checker alpha.unix.PthreadLock -analyzer-disable-checker alpha.unix.SimpleStream -analyzer-disable-checker alpha.unix.Stream -analyzer-disable-checker alpha.unix.cstring.BufferOverlap -analyzer-disable-checker alpha.unix.cstring.NotNullTerminated -analyzer-disable-checker alpha.unix.cstring.OutOfBounds -analyzer-disable-checker apiModeling.google.GTest -analyzer-checker=core.CallAndMessage -analyzer-checker=core.DivideZero -analyzer-checker=core.DynamicTypePropagation -analyzer-checker=core.NonNullParamChecker -analyzer-checker=core.NullDereference -analyzer-checker=core.StackAddressEscape -analyzer-checker=core.UndefinedBinaryOperatorResult -analyzer-checker=core.VLASize -analyzer-checker=core.builtin.BuiltinFunctions -analyzer-checker=core.builtin.NoReturnFunctions -analyzer-checker=core.uninitialized.ArraySubscript -analyzer-checker=core.uninitialized.Assign -analyzer-checker=core.uninitialized.Branch -analyzer-checker=core.uninitialized.CapturedBlockVariable -analyzer-checker=core.uninitialized.UndefReturn -analyzer-checker=cplusplus.NewDelete -analyzer-checker=cplusplus.NewDeleteLeaks -analyzer-checker=cplusplus.SelfAssignment -analyzer-checker=deadcode.DeadStores -analyzer-disable-checker debug.AnalysisOrder -analyzer-disable-checker debug.ConfigDumper -analyzer-disable-checker debug.DumpBugHash -analyzer-disable-checker debug.DumpCFG -analyzer-disable-checker debug.DumpCallGraph -analyzer-disable-checker debug.DumpCalls -analyzer-disable-checker debug.DumpDominators -analyzer-disable-checker debug.DumpLiveVars -analyzer-disable-checker debug.DumpTraversal -analyzer-disable-checker debug.ExprInspection -analyzer-disable-checker debug.Stats -analyzer-disable-checker debug.TaintTest -analyzer-disable-checker debug.ViewCFG -analyzer-disable-checker debug.ViewCallGraph -analyzer-disable-checker debug.ViewExplodedGraph -analyzer-disable-checker llvm.Conventions -analyzer-disable-checker nullability.NullPassedToNonnull -analyzer-disable-checker nullability.NullReturnedFromNonnull -analyzer-disable-checker nullability.NullableDereferenced -analyzer-disable-checker nullability.NullablePassedToNonnull -analyzer-disable-checker nullability.NullableReturnedFromNonnull -analyzer-disable-checker optin.cplusplus.VirtualCall -analyzer-disable-checker optin.mpi.MPI-Checker -analyzer-disable-checker optin.osx.cocoa.localizability.EmptyLocalizationContextChecker -analyzer-disable-checker optin.osx.cocoa.localizability.NonLocalizedStringChecker -analyzer-disable-checker optin.performance.Padding -analyzer-disable-checker optin.portability.UnixAPI -analyzer-disable-checker osx.API -analyzer-disable-checker osx.NumberObjectConversion -analyzer-disable-checker osx.ObjCProperty -analyzer-disable-checker osx.SecKeychainAPI -analyzer-disable-checker osx.cocoa.AtSync -analyzer-disable-checker osx.cocoa.ClassRelease -analyzer-disable-checker osx.cocoa.Dealloc -analyzer-disable-checker osx.cocoa.IncompatibleMethodTypes -analyzer-disable-checker osx.cocoa.Loops -analyzer-disable-checker osx.cocoa.MissingSuperCall -analyzer-disable-checker osx.cocoa.NSAutoreleasePool -analyzer-disable-checker osx.cocoa.NSError -analyzer-disable-checker osx.cocoa.NilArg -analyzer-disable-checker osx.cocoa.NonNilReturnValue -analyzer-disable-checker osx.cocoa.ObjCGenerics -analyzer-disable-checker osx.cocoa.RetainCount -analyzer-disable-checker osx.cocoa.SelfInit -analyzer-disable-checker osx.cocoa.SuperDealloc -analyzer-disable-checker osx.cocoa.UnusedIvars -analyzer-disable-checker osx.cocoa.VariadicMethodTypes -analyzer-disable-checker osx.coreFoundation.CFError -analyzer-disable-checker osx.coreFoundation.CFNumber -analyzer-disable-checker osx.coreFoundation.CFRetainRelease -analyzer-disable-checker osx.coreFoundation.containers.OutOfBounds -analyzer-disable-checker osx.coreFoundation.containers.PointerSizedValues -analyzer-disable-checker security.FloatLoopCounter -analyzer-checker=security.insecureAPI.UncheckedReturn -analyzer-checker=security.insecureAPI.getpw -analyzer-checker=security.insecureAPI.gets -analyzer-checker=security.insecureAPI.mkstemp -analyzer-checker=security.insecureAPI.mktemp -analyzer-disable-checker security.insecureAPI.rand -analyzer-disable-checker security.insecureAPI.strcpy -analyzer-checker=security.insecureAPI.vfork -analyzer-checker=unix.API -analyzer-checker=unix.Malloc -analyzer-checker=unix.MallocSizeof -analyzer-checker=unix.MismatchedDeallocator -analyzer-checker=unix.StdCLibraryFunctions -analyzer-checker=unix.Vfork -analyzer-checker=unix.cstring.BadSizeArg -analyzer-checker=unix.cstring.NullArg -analyzer-disable-checker valist.CopyToSelf -analyzer-disable-checker valist.Uninitialized -analyzer-disable-checker valist.Unterminated -analyzer-config xtu-dir=/home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin/_ctu1/ctu-dir/x86_64 -o /home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin/_ctu1/block.cc_cc66396c0b49e22427fa620534a21f88.plist -x c++ /home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin/src/leveldb/table/block.cc

  1. parser at end of file
  2. While analyzing stack:
    #0 bool ok() const
  3. /home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin/src/leveldb/include/leveldb/table_builder.h:78:28: Error evaluating statement
  4. /home/gerazo/repos/codechecker_dev_env/samsungXTU/bitcoin/src/leveldb/include/leveldb/table_builder.h:78:28: Error evaluating statement
    clang-5.0: error: unable to execute command: Aborted (core dumped)
    clang-5.0: error: clang frontend command failed due to signal (use -v to see invocation)
    clang version 5.0.0 ([email protected]:Ericsson/clang.git ed19c1a) (https://github.com/llvm-mirror/llvm.git 657c31173ea30090583e40c7a9204561d9c2d8c4)
    Target: x86_64-unknown-linux-gnu
    Thread model: posix
    InstalledDir: /home/gerazo/repos/codechecker_dev_env/samsungXTU/buildreldebass/bin
    clang-5.0: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
    clang-5.0: note: diagnostic msg:

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-5.0: note: diagnostic msg: /tmp/block-862533.cpp
clang-5.0: note: diagnostic msg: /tmp/block-862533.sh
clang-5.0: note: diagnostic msg:


@Xazax-hun
Copy link

Could you dump the Decl which could not be removed? Maybe it could give us some hints.

@dkrupp
Copy link
Member

dkrupp commented Oct 13, 2017

create a pull request and a phabricator ticket.

@dkrupp dkrupp modified the milestones: October 13, okt 20 Oct 13, 2017
@gerazo
Copy link
Collaborator

gerazo commented Oct 16, 2017

PR: #202

@gerazo
Copy link
Collaborator

gerazo commented Oct 17, 2017

PR was reopened here: #203
If everything goes fine, next step is phabricator.

@Xazax-hun
Copy link

Add patch to phabricator.

@Xazax-hun Xazax-hun modified the milestones: okt 20, Okt. 27. Oct 20, 2017
@gerazo
Copy link
Collaborator

gerazo commented Oct 24, 2017

@dkrupp dkrupp modified the milestones: Okt. 27., Nov 10 Nov 3, 2017
@dkrupp dkrupp modified the milestones: Nov 10, Nov 17 Nov 10, 2017
@dkrupp
Copy link
Member

dkrupp commented Nov 10, 2017

can we close this issue?

@gerazo gerazo closed this as completed Nov 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants