https://bugs.kde.org/show_bug.cgi?id=397045

--- Comment #6 from Guillaume Racicot <gufi...@gmail.com> ---
The crash still happens with clang 7. The backtrace when opening my project is
similar:

#0  0x00007fffb27107b0 in clang::Decl::setInvalidDecl(bool) () at
/usr/lib/../lib/libclangAST.so.7
#1  0x00007fffb27107fc in clang::Decl::setInvalidDecl(bool) () at
/usr/lib/../lib/libclangAST.so.7
#2  0x00007fffb10e9c18 in clang::ASTDeclReader::VisitDecl(clang::Decl*) () at
/usr/lib/../lib/../lib/libclangSerialization.so.7
#3  0x00007fffb10ea4e2 in
clang::ASTDeclReader::VisitNamedDecl(clang::NamedDecl*) () at
/usr/lib/../lib/../lib/libclangSerialization.so.7
#4  0x00007fffb10eaa02 in
clang::ASTDeclReader::VisitValueDecl(clang::ValueDecl*) () at
/usr/lib/../lib/../lib/libclangSerialization.so.7
#5  0x00007fffb10eaa96 in
clang::ASTDeclReader::VisitDeclaratorDecl(clang::DeclaratorDecl*) () at
/usr/lib/../lib/../lib/libclangSerialization.so.7
#6  0x00007fffb10f913e in
clang::ASTDeclReader::VisitVarDeclImpl(clang::VarDecl*) () at
/usr/lib/../lib/../lib/libclangSerialization.so.7
#7  0x00007fffb10fa044 in
clang::ASTDeclReader::VisitDecompositionDecl(clang::DecompositionDecl*) () at
/usr/lib/../lib/../lib/libclangSerialization.so.7
#8  0x00007fffb1100346 in clang::ASTDeclReader::Visit(clang::Decl*) () at
/usr/lib/../lib/../lib/libclangSerialization.so.7
#9  0x00007fffb1100ae0 in clang::ASTReader::ReadDeclRecord(unsigned int) () at
/usr/lib/../lib/../lib/libclangSerialization.so.7
#10 0x00007fffb10b75a6 in clang::ASTReader::GetDecl(unsigned int) () at
/usr/lib/../lib/../lib/libclangSerialization.so.7
#11 0x00007fffb1102563 in clang::ASTStmtReader::VisitDeclStmt(clang::DeclStmt*)
() at /usr/lib/../lib/../lib/libclangSerialization.so.7
#12 0x00007fffb1117885 in
clang::ASTReader::ReadStmtFromStream(clang::serialization::ModuleFile&) () at
/usr/lib/../lib/../lib/libclangSerialization.so.7
#13 0x00007fffb10bd6c3 in clang::ASTReader::GetExternalDeclStmt(unsigned long)
() at /usr/lib/../lib/../lib/libclangSerialization.so.7
#14 0x00007fffb270806c in clang::FunctionDecl::getBody(clang::FunctionDecl
const*&) const () at /usr/lib/../lib/libclangAST.so.7
#15 0x00007fffb2939c6c in clang_getCursorDefinition () at
/usr/lib/libclang.so.7
#16 0x00007fffb2939fcb in clang_isCursorDefinition () at /usr/lib/libclang.so.7
#17 0x00007fffb2a7bd3d in (anonymous
namespace)::Visitor::dispatchCursor<(CXCursorKind)30, (Decision)0, (Decision)2>
(cursor=..., this=0x7fff82ffc170, parent=...) at
/home/master/prog/kdevelop/plugins/clang/duchain/builder.cpp:919
#18 0x00007fffb2a7bd3d in (anonymous
namespace)::Visitor::dispatchCursor<(CXCursorKind)30> (parent=..., cursor=...,
this=0x7fff82ffc170) at
/home/master/prog/kdevelop/plugins/clang/duchain/builder.cpp:912
#19 0x00007fffb2a7bd3d in (anonymous namespace)::visitCursor(CXCursor,
CXCursor, CXClientData) (cursor=..., parent=..., data=0x7fff82ffc170) at
/home/master/prog/kdevelop/plugins/clang/duchain/builder.cpp:1541
#20 0x00007fffb2941025 in  () at /usr/lib/libclang.so.7
#21 0x00007fffb294306e in  () at /usr/lib/libclang.so.7
#22 0x00007fffb294316c in  () at /usr/lib/libclang.so.7
#23 0x00007fffb2940b03 in  () at /usr/lib/libclang.so.7
#24 0x00007fffb2948c81 in clang_visitChildren () at /usr/lib/libclang.so.7
#25 0x00007fffb2a670e1 in (anonymous
namespace)::Visitor::buildDeclaration<(CXCursorKind)2,
KDevelop::ClassDeclaration, true> (cursor=..., this=0x7fff82ffc170) at
/usr/include/c++/8.2.1/bits/move.h:99
#26 0x00007fffb2a670e1 in (anonymous
namespace)::Visitor::dispatchCursor<(CXCursorKind)2, (Decision)0, (Decision)0>
(parent=..., cursor=..., this=0x7fff82ffc170) at
/home/master/prog/kdevelop/plugins/clang/duchain/builder.cpp:950
#27 0x00007fffb2a670e1 in (anonymous
namespace)::Visitor::dispatchCursor<(CXCursorKind)2, (Decision)0,
(Decision)2>(CXCursor, CXCursor) (this=0x7fff82ffc170, cursor=..., parent=...)
at /home/master/prog/kdevelop/plugins/clang/duchain/builder.cpp:924
#28 0x00007fffb2a7e551 in (anonymous
namespace)::Visitor::dispatchCursor<(CXCursorKind)2> (parent=..., cursor=...,
this=0x7fff82ffc170) at
/home/master/prog/kdevelop/plugins/clang/duchain/builder.cpp:448
#29 0x00007fffb2a7e551 in (anonymous namespace)::visitCursor(CXCursor,
CXCursor, CXClientData) (cursor=..., parent=..., data=0x7fff82ffc170) at
/home/master/prog/kdevelop/plugins/clang/duchain/builder.cpp:1522
#30 0x00007fffb2941025 in  () at /usr/lib/libclang.so.7
#31 0x00007fffb294306e in  () at /usr/lib/libclang.so.7
#32 0x00007fffb294316c in  () at /usr/lib/libclang.so.7
#33 0x00007fffb2940b03 in  () at /usr/lib/libclang.so.7
#34 0x00007fffb2948c81 in clang_visitChildren () at /usr/lib/libclang.so.7
#35 0x00007fffb2a6c4c1 in (anonymous
namespace)::Visitor::buildDeclaration<(CXCursorKind)22, KDevelop::Declaration,
true>(CXCursor) (this=this@entry=0x7fff82ffc170, cursor=...) at
/usr/include/c++/8.2.1/bits/move.h:99
#36 0x00007fffb2a7a536 in (anonymous
namespace)::Visitor::dispatchCursor<(CXCursorKind)22> (cursor=...,
this=0x7fff82ffc170, parent=...) at
/home/master/prog/kdevelop/plugins/clang/duchain/builder.cpp:931
#37 0x00007fffb2a7a536 in (anonymous namespace)::visitCursor(CXCursor,
CXCursor, CXClientData) (cursor=..., parent=..., data=0x7fff82ffc170) at
/home/master/prog/kdevelop/plugins/clang/duchain/builder.cpp:1533
#38 0x00007fffb2941025 in  () at /usr/lib/libclang.so.7
#39 0x00007fffb294306e in  () at /usr/lib/libclang.so.7
#40 0x00007fffb294316c in  () at /usr/lib/libclang.so.7
#41 0x00007fffb2940e04 in  () at /usr/lib/libclang.so.7
#42 0x00007fffb2948c81 in clang_visitChildren () at /usr/lib/libclang.so.7
#43 0x00007fffb2a63d47 in (anonymous namespace)::Visitor::Visitor
(update=<optimized out>, includes=..., file=<optimized out>, tu=<optimized
out>, this=0x7fff82ffc170) at
/home/master/prog/kdevelop/plugins/clang/duchain/builder.cpp:1448
#44 0x00007fffb2a63d47 in Builder::visit(CXTranslationUnitImpl*, void*,
QHash<void*, KDevelop::ReferencedTopDUContext> const&, bool) (tu=<optimized
out>, file=<optimized out>, includes=..., update=<optimized out>) at
/home/master/prog/kdevelop/plugins/clang/duchain/builder.cpp:1590
#45 0x00007fffb2a8b3bd in ClangHelpers::buildDUChain(void*, QMultiHash<void*,
Import> const&, ParseSession const&, KDevelop::TopDUContext::Features,
QHash<void*, KDevelop::ReferencedTopDUContext>&, ClangIndex*,
std::function<bool ()> const&)
    (file=<optimized out>, imports=..., session=..., features=<optimized out>,
includedFiles=..., index=0x5555583228a0, abortFunction=...) at
/home/master/prog/kdevelop/plugins/clang/duchain/clanghelpers.cpp:189
#46 0x00007fffb2a8ac20 in ClangHelpers::buildDUChain(void*, QMultiHash<void*,
Import> const&, ParseSession const&, KDevelop::TopDUContext::Features,
QHash<void*, KDevelop::ReferencedTopDUContext>&, ClangIndex*,
std::function<bool ()> const&)
    (file=<optimized out>, imports=..., session=...,
features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses,
includedFiles=..., index=0x5555583228a0, abortFunction=...) at
/home/master/prog/kdevelop/plugins/clang/duchain/clanghelpers.cpp:121
#47 0x00007fffb2a8ac20 in ClangHelpers::buildDUChain(void*, QMultiHash<void*,
Import> const&, ParseSession const&, KDevelop::TopDUContext::Features,
QHash<void*, KDevelop::ReferencedTopDUContext>&, ClangIndex*,
std::function<bool ()> const&)
    (file=<optimized out>, imports=..., session=...,
features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses,
includedFiles=..., index=0x5555583228a0, abortFunction=...) at
/home/master/prog/kdevelop/plugins/clang/duchain/clanghelpers.cpp:121
#48 0x00007fffb2a8ac20 in ClangHelpers::buildDUChain(void*, QMultiHash<void*,
Import> const&, ParseSession const&, KDevelop::TopDUContext::Features,
QHash<void*, KDevelop::ReferencedTopDUContext>&, ClangIndex*,
std::function<bool ()> const&)
    (file=<optimized out>, imports=..., session=...,
features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses,
includedFiles=..., index=0x5555583228a0, abortFunction=...) at
/home/master/prog/kdevelop/plugins/clang/duchain/clanghelpers.cpp:121
#49 0x00007fffb2af71df in
ClangParseJob::run(QSharedPointer<ThreadWeaver::JobInterface>,
ThreadWeaver::Thread*) (this=0x555558497cb0) at
/home/master/prog/kdevelop/plugins/clang/clangparsejob.cpp:217
#50 0x00007ffff6cc45ab in
ThreadWeaver::IdDecorator::run(QSharedPointer<ThreadWeaver::JobInterface>,
ThreadWeaver::Thread*) () at /usr/lib/libKF5ThreadWeaver.so.5
#51 0x00007ffff6cc4b38 in
ThreadWeaver::Executor::run(QSharedPointer<ThreadWeaver::JobInterface> const&,
ThreadWeaver::Thread*) () at /usr/lib/libKF5ThreadWeaver.so.5
#52 0x00007ffff6cc3901 in
ThreadWeaver::Job::execute(QSharedPointer<ThreadWeaver::JobInterface> const&,
ThreadWeaver::Thread*) () at /usr/lib/libKF5ThreadWeaver.so.5
#53 0x00007ffff6cc343c in ThreadWeaver::Thread::run() () at
/usr/lib/libKF5ThreadWeaver.so.5
#54 0x00007ffff4296f65 in  () at /usr/lib/libQt5Core.so.5
#55 0x00007ffff2e2ba9d in start_thread () at /usr/lib/libpthread.so.0
#56 0x00007ffff3ddaa43 in clone () at /usr/lib/libc.so.6

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to