Bug 425990 - Crash in KDevelop::TypeSystem::ensureFactoryLoaded
Summary: Crash in KDevelop::TypeSystem::ensureFactoryLoaded
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (Clang-based) (show other bugs)
Version: 5.5.80
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-30 14:46 UTC by Francis Herne
Modified: 2022-01-10 08:35 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francis Herne 2020-08-30 14:46:46 UTC
SUMMARY

While searching in QuickOpen, shortly after loading a session containing the KDevelop source, KDevelop crashed with the backtrace below.

I wasn't able to reproduce this by repeating a similar sequence of actions.

SOFTWARE/OS VERSIONS
KDevelop 5.6-git bd8a49a10a (5.5.80 plus a few patches since).
Arch Linux
KF 5.73.0
Qt 5.15.0


Application: KDevelop (kdevelop), signal: Aborted

[KCrash Handler]
#4  0x00007f65e40c3615 in raise () at /usr/lib/libc.so.6
#5  0x00007f65e40ac862 in abort () at /usr/lib/libc.so.6
#6  0x00007f65e461d9ac in  () at /usr/lib/libQt5Core.so.5
#7  0x00007f65e461cd59 in qt_assert_x(char const*, char const*, char const*, int) () at /usr/lib/libQt5Core.so.5
#8  0x00007f65e7524cc8 in KDevelop::TypeSystem::ensureFactoryLoaded(KDevelop::AbstractTypeData const&) const (this=0x7f65e85323e0 <KDevelop::TypeSystem::self()::system>, data=...) at /home/flh/projects/kdevelop/kdevplatform/language/duchain/types/typeregister.cpp:65
#9  0x00007f65e75249ef in KDevelop::TypeSystem::callDestructor(KDevelop::AbstractTypeData*) const (this=0x7f65e85323e0 <KDevelop::TypeSystem::self()::system>, data=0x7f64e0408bc0) at /home/flh/projects/kdevelop/kdevplatform/language/duchain/types/typeregister.cpp:36
#10 0x00007f65e752f371 in KDevelop::AbstractType::~AbstractType() (this=0x7f64e0408ba0, __in_chrg=<optimized out>) at /home/flh/projects/kdevelop/kdevplatform/language/duchain/types/abstracttype.cpp:67
#11 0x00007f65e752fd5c in KDevelop::IntegralType::~IntegralType() (this=0x7f64e0408ba0, __in_chrg=<optimized out>) at /home/flh/projects/kdevelop/kdevplatform/language/duchain/types/integraltype.cpp:75
#12 0x00007f65e752fd78 in KDevelop::IntegralType::~IntegralType() (this=0x7f64e0408ba0, __in_chrg=<optimized out>) at /home/flh/projects/kdevelop/kdevplatform/language/duchain/types/integraltype.cpp:77
#13 0x00007f650ba5f51b in QExplicitlySharedDataPointer<KDevelop::AbstractType>::~QExplicitlySharedDataPointer() (this=0x7f64f5ff8c90, __in_chrg=<optimized out>) at /usr/include/qt/QtCore/qshareddata.h:184
#14 0x00007f650ba5ed64 in KDevelop::TypePtr<KDevelop::AbstractType>::~TypePtr() (this=0x7f64f5ff8c90, __in_chrg=<optimized out>) at /home/flh/projects/kdevelop/kdevplatform/language/duchain/types/typepointer.h:39
#15 0x00007f650baa4e95 in (anonymous namespace)::Visitor::setDeclType<(CXCursorKind)6>(KDevelop::Declaration*, KDevelop::AbstractType*) (this=0x7f64f5ff9d70, decl=0x7f64e03e6790, type=0x7f64e0408ba0) at /home/flh/projects/kdevelop/plugins/clang/duchain/builder.cpp:868
#16 0x00007f650ba9b40c in (anonymous namespace)::Visitor::createDeclaration<(CXCursorKind)6, KDevelop::ClassMemberDeclaration>(CXCursor, KDevelop::Identifier const&, KDevelop::DUContext*) (this=0x7f64f5ff9d70, cursor=..., id=..., context=0x0) at /home/flh/projects/kdevelop/plugins/clang/duchain/builder.cpp:473
#17 0x00007f650ba96159 in (anonymous namespace)::Visitor::buildDeclaration<(CXCursorKind)6, KDevelop::ClassMemberDeclaration, false>(CXCursor) (this=0x7f64f5ff9d70, cursor=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/builder.cpp:1216
#18 0x00007f650ba90177 in (anonymous namespace)::Visitor::dispatchCursor<(CXCursorKind)6>(CXCursor, CXCursor) (this=0x7f64f5ff9d70, cursor=..., parent=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/builder.cpp:967
#19 0x00007f650ba8dc6a in (anonymous namespace)::visitCursor(CXCursor, CXCursor, CXClientData) (cursor=..., parent=..., data=0x7f64f5ff9d70) at /home/flh/projects/kdevelop/plugins/clang/duchain/builder.cpp:1553
#20 0x00007f6509705727 in  () at /usr/lib/libclang.so.10
#21 0x00007f65097060de in  () at /usr/lib/libclang.so.10
#22 0x00007f65097062da in  () at /usr/lib/libclang.so.10
#23 0x00007f650970520b in  () at /usr/lib/libclang.so.10
#24 0x00007f650970dddb in clang_visitChildren () at /usr/lib/libclang.so.10
#25 0x00007f650baa2c33 in (anonymous namespace)::Visitor::buildDeclaration<(CXCursorKind)2, KDevelop::ClassDeclaration, true>(CXCursor) (this=0x7f64f5ff9d70, cursor=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/builder.cpp:1213
#26 0x00007f650ba9aa29 in (anonymous namespace)::Visitor::dispatchCursor<(CXCursorKind)2, (Decision)1, (Decision)0>(CXCursor, CXCursor) (this=0x7f64f5ff9d70, cursor=..., parent=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/builder.cpp:967
#27 0x00007f650ba95bb3 in (anonymous namespace)::Visitor::dispatchCursor<(CXCursorKind)2, (Decision)1, (Decision)2>(CXCursor, CXCursor) (this=0x7f64f5ff9d70, cursor=..., parent=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/builder.cpp:942
#28 0x00007f650ba8ff6f in (anonymous namespace)::Visitor::dispatchCursor<(CXCursorKind)2>(CXCursor, CXCursor) (this=0x7f64f5ff9d70, cursor=..., parent=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/builder.cpp:931
#29 0x00007f650ba8dbb6 in (anonymous namespace)::visitCursor(CXCursor, CXCursor, CXClientData) (cursor=..., parent=..., data=0x7f64f5ff9d70) at /home/flh/projects/kdevelop/plugins/clang/duchain/builder.cpp:1549
#30 0x00007f6509705727 in  () at /usr/lib/libclang.so.10
#31 0x00007f65097060de in  () at /usr/lib/libclang.so.10
#32 0x00007f65097062da in  () at /usr/lib/libclang.so.10
#33 0x00007f650970520b in  () at /usr/lib/libclang.so.10
#34 0x00007f6509705754 in  () at /usr/lib/libclang.so.10
#35 0x00007f65097060de in  () at /usr/lib/libclang.so.10
#36 0x00007f65097062da in  () at /usr/lib/libclang.so.10
#37 0x00007f6509705534 in  () at /usr/lib/libclang.so.10
#38 0x00007f650970dddb in clang_visitChildren () at /usr/lib/libclang.so.10
#39 0x00007f650ba8d4a6 in (anonymous namespace)::Visitor::Visitor(CXTranslationUnit, CXFile, IncludeFileContexts const&, bool) (this=0x7f64f5ff9d70, tu=0x7f6464006b60, file=0x7f64647249e0, includes=..., update=true) at /home/flh/projects/kdevelop/plugins/clang/duchain/builder.cpp:1470
#40 0x00007f650ba8e2f7 in Builder::visit(CXTranslationUnitImpl*, void*, QHash<void*, KDevelop::ReferencedTopDUContext> const&, bool) (tu=0x7f6464006b60, file=0x7f64647249e0, includes=..., update=true) at /home/flh/projects/kdevelop/plugins/clang/duchain/builder.cpp:1617
#41 0x00007f650bae90e1 in ClangHelpers::buildDUChain(void*, QMultiHash<void*, Import> const&, ParseSession const&, KDevelop::TopDUContext::Features, QHash<void*, KDevelop::ReferencedTopDUContext>&, ClangIndex*, std::function<bool ()> const&) (file=0x7f64647249e0, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x55891496a910, abortFunction=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/clanghelpers.cpp:201
#42 0x00007f650bae8937 in ClangHelpers::buildDUChain(void*, QMultiHash<void*, Import> const&, ParseSession const&, KDevelop::TopDUContext::Features, QHash<void*, KDevelop::ReferencedTopDUContext>&, ClangIndex*, std::function<bool ()> const&) (file=0x7f64646a6170, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x55891496a910, abortFunction=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/clanghelpers.cpp:133
#43 0x00007f650bae8937 in ClangHelpers::buildDUChain(void*, QMultiHash<void*, Import> const&, ParseSession const&, KDevelop::TopDUContext::Features, QHash<void*, KDevelop::ReferencedTopDUContext>&, ClangIndex*, std::function<bool ()> const&) (file=0x7f64643eee80, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x55891496a910, abortFunction=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/clanghelpers.cpp:133
#44 0x00007f650bae8937 in ClangHelpers::buildDUChain(void*, QMultiHash<void*, Import> const&, ParseSession const&, KDevelop::TopDUContext::Features, QHash<void*, KDevelop::ReferencedTopDUContext>&, ClangIndex*, std::function<bool ()> const&) (file=0x7f64645d69f0, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x55891496a910, abortFunction=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/clanghelpers.cpp:133
#45 0x00007f650bae8937 in ClangHelpers::buildDUChain(void*, QMultiHash<void*, Import> const&, ParseSession const&, KDevelop::TopDUContext::Features, QHash<void*, KDevelop::ReferencedTopDUContext>&, ClangIndex*, std::function<bool ()> const&) (file=0x7f646400ece0, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x55891496a910, abortFunction=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/clanghelpers.cpp:133
#46 0x00007f650bae8937 in ClangHelpers::buildDUChain(void*, QMultiHash<void*, Import> const&, ParseSession const&, KDevelop::TopDUContext::Features, QHash<void*, KDevelop::ReferencedTopDUContext>&, ClangIndex*, std::function<bool ()> const&) (file=0x7f6464005760, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x55891496a910, abortFunction=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/clanghelpers.cpp:133
#47 0x00007f650bae8937 in ClangHelpers::buildDUChain(void*, QMultiHash<void*, Import> const&, ParseSession const&, KDevelop::TopDUContext::Features, QHash<void*, KDevelop::ReferencedTopDUContext>&, ClangIndex*, std::function<bool ()> const&) (file=0x7f64640053e0, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x55891496a910, abortFunction=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/clanghelpers.cpp:133
#48 0x00007f650bbc912a in ClangParseJob::run(QSharedPointer<ThreadWeaver::JobInterface>, ThreadWeaver::Thread*) (this=0x558917a50ec0) at /home/flh/projects/kdevelop/plugins/clang/clangparsejob.cpp:338
#49 0x00007f65e733513c in ThreadWeaver::IdDecorator::run(QSharedPointer<ThreadWeaver::JobInterface>, ThreadWeaver::Thread*) () at /usr/lib/libKF5ThreadWeaver.so.5
#50 0x00007f65e7335749 in ThreadWeaver::Executor::run(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) () at /usr/lib/libKF5ThreadWeaver.so.5
#51 0x00007f65e7334752 in ThreadWeaver::Job::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) () at /usr/lib/libKF5ThreadWeaver.so.5
#52 0x00007f65e7333fe1 in ThreadWeaver::Thread::run() () at /usr/lib/libKF5ThreadWeaver.so.5
#53 0x00007f65e465ae0f in  () at /usr/lib/libQt5Core.so.5
#54 0x00007f65e36b03e9 in start_thread () at /usr/lib/libpthread.so.0
#55 0x00007f65e4186293 in clone () at /usr/lib/libc.so.6

...

Application: KDevelop (kdevelop), signal: Aborted

[KCrash Handler]
#4  0x00007f65e40c3615 in raise () at /usr/lib/libc.so.6
#5  0x00007f65e40ac862 in abort () at /usr/lib/libc.so.6
#6  0x00007f65e461d9ac in  () at /usr/lib/libQt5Core.so.5
#7  0x00007f65e461cd59 in qt_assert_x(char const*, char const*, char const*, int) () at /usr/lib/libQt5Core.so.5
#8  0x00007f65e7524cc8 in KDevelop::TypeSystem::ensureFactoryLoaded(KDevelop::AbstractTypeData const&) const (this=0x7f65e85323e0 <KDevelop::TypeSystem::self()::system>, data=...) at /home/flh/projects/kdevelop/kdevplatform/language/duchain/types/typeregister.cpp:65
#9  0x00007f65e75249ef in KDevelop::TypeSystem::callDestructor(KDevelop::AbstractTypeData*) const (this=0x7f65e85323e0 <KDevelop::TypeSystem::self()::system>, data=0x7f64e0408bc0) at /home/flh/projects/kdevelop/kdevplatform/language/duchain/types/typeregister.cpp:36
#10 0x00007f65e752f371 in KDevelop::AbstractType::~AbstractType() (this=0x7f64e0408ba0, __in_chrg=<optimized out>) at /home/flh/projects/kdevelop/kdevplatform/language/duchain/types/abstracttype.cpp:67
#11 0x00007f65e752fd5c in KDevelop::IntegralType::~IntegralType() (this=0x7f64e0408ba0, __in_chrg=<optimized out>) at /home/flh/projects/kdevelop/kdevplatform/language/duchain/types/integraltype.cpp:75
#12 0x00007f65e752fd78 in KDevelop::IntegralType::~IntegralType() (this=0x7f64e0408ba0, __in_chrg=<optimized out>) at /home/flh/projects/kdevelop/kdevplatform/language/duchain/types/integraltype.cpp:77
#13 0x00007f650ba5f51b in QExplicitlySharedDataPointer<KDevelop::AbstractType>::~QExplicitlySharedDataPointer() (this=0x7f64f5ff8c90, __in_chrg=<optimized out>) at /usr/include/qt/QtCore/qshareddata.h:184
#14 0x00007f650ba5ed64 in KDevelop::TypePtr<KDevelop::AbstractType>::~TypePtr() (this=0x7f64f5ff8c90, __in_chrg=<optimized out>) at /home/flh/projects/kdevelop/kdevplatform/language/duchain/types/typepointer.h:39
#15 0x00007f650baa4e95 in (anonymous namespace)::Visitor::setDeclType<(CXCursorKind)6>(KDevelop::Declaration*, KDevelop::AbstractType*) (this=0x7f64f5ff9d70, decl=0x7f64e03e6790, type=0x7f64e0408ba0) at /home/flh/projects/kdevelop/plugins/clang/duchain/builder.cpp:868
#16 0x00007f650ba9b40c in (anonymous namespace)::Visitor::createDeclaration<(CXCursorKind)6, KDevelop::ClassMemberDeclaration>(CXCursor, KDevelop::Identifier const&, KDevelop::DUContext*) (this=0x7f64f5ff9d70, cursor=..., id=..., context=0x0) at /home/flh/projects/kdevelop/plugins/clang/duchain/builder.cpp:473
#17 0x00007f650ba96159 in (anonymous namespace)::Visitor::buildDeclaration<(CXCursorKind)6, KDevelop::ClassMemberDeclaration, false>(CXCursor) (this=0x7f64f5ff9d70, cursor=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/builder.cpp:1216
#18 0x00007f650ba90177 in (anonymous namespace)::Visitor::dispatchCursor<(CXCursorKind)6>(CXCursor, CXCursor) (this=0x7f64f5ff9d70, cursor=..., parent=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/builder.cpp:967
#19 0x00007f650ba8dc6a in (anonymous namespace)::visitCursor(CXCursor, CXCursor, CXClientData) (cursor=..., parent=..., data=0x7f64f5ff9d70) at /home/flh/projects/kdevelop/plugins/clang/duchain/builder.cpp:1553
#20 0x00007f6509705727 in  () at /usr/lib/libclang.so.10
#21 0x00007f65097060de in  () at /usr/lib/libclang.so.10
#22 0x00007f65097062da in  () at /usr/lib/libclang.so.10
#23 0x00007f650970520b in  () at /usr/lib/libclang.so.10
#24 0x00007f650970dddb in clang_visitChildren () at /usr/lib/libclang.so.10
#25 0x00007f650baa2c33 in (anonymous namespace)::Visitor::buildDeclaration<(CXCursorKind)2, KDevelop::ClassDeclaration, true>(CXCursor) (this=0x7f64f5ff9d70, cursor=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/builder.cpp:1213
#26 0x00007f650ba9aa29 in (anonymous namespace)::Visitor::dispatchCursor<(CXCursorKind)2, (Decision)1, (Decision)0>(CXCursor, CXCursor) (this=0x7f64f5ff9d70, cursor=..., parent=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/builder.cpp:967
#27 0x00007f650ba95bb3 in (anonymous namespace)::Visitor::dispatchCursor<(CXCursorKind)2, (Decision)1, (Decision)2>(CXCursor, CXCursor) (this=0x7f64f5ff9d70, cursor=..., parent=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/builder.cpp:942
#28 0x00007f650ba8ff6f in (anonymous namespace)::Visitor::dispatchCursor<(CXCursorKind)2>(CXCursor, CXCursor) (this=0x7f64f5ff9d70, cursor=..., parent=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/builder.cpp:931
#29 0x00007f650ba8dbb6 in (anonymous namespace)::visitCursor(CXCursor, CXCursor, CXClientData) (cursor=..., parent=..., data=0x7f64f5ff9d70) at /home/flh/projects/kdevelop/plugins/clang/duchain/builder.cpp:1549
#30 0x00007f6509705727 in  () at /usr/lib/libclang.so.10
#31 0x00007f65097060de in  () at /usr/lib/libclang.so.10
#32 0x00007f65097062da in  () at /usr/lib/libclang.so.10
#33 0x00007f650970520b in  () at /usr/lib/libclang.so.10
#34 0x00007f6509705754 in  () at /usr/lib/libclang.so.10
#35 0x00007f65097060de in  () at /usr/lib/libclang.so.10
#36 0x00007f65097062da in  () at /usr/lib/libclang.so.10
#37 0x00007f6509705534 in  () at /usr/lib/libclang.so.10
#38 0x00007f650970dddb in clang_visitChildren () at /usr/lib/libclang.so.10
#39 0x00007f650ba8d4a6 in (anonymous namespace)::Visitor::Visitor(CXTranslationUnit, CXFile, IncludeFileContexts const&, bool) (this=0x7f64f5ff9d70, tu=0x7f6464006b60, file=0x7f64647249e0, includes=..., update=true) at /home/flh/projects/kdevelop/plugins/clang/duchain/builder.cpp:1470
#40 0x00007f650ba8e2f7 in Builder::visit(CXTranslationUnitImpl*, void*, QHash<void*, KDevelop::ReferencedTopDUContext> const&, bool) (tu=0x7f6464006b60, file=0x7f64647249e0, includes=..., update=true) at /home/flh/projects/kdevelop/plugins/clang/duchain/builder.cpp:1617
#41 0x00007f650bae90e1 in ClangHelpers::buildDUChain(void*, QMultiHash<void*, Import> const&, ParseSession const&, KDevelop::TopDUContext::Features, QHash<void*, KDevelop::ReferencedTopDUContext>&, ClangIndex*, std::function<bool ()> const&) (file=0x7f64647249e0, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x55891496a910, abortFunction=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/clanghelpers.cpp:201
#42 0x00007f650bae8937 in ClangHelpers::buildDUChain(void*, QMultiHash<void*, Import> const&, ParseSession const&, KDevelop::TopDUContext::Features, QHash<void*, KDevelop::ReferencedTopDUContext>&, ClangIndex*, std::function<bool ()> const&) (file=0x7f64646a6170, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x55891496a910, abortFunction=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/clanghelpers.cpp:133
#43 0x00007f650bae8937 in ClangHelpers::buildDUChain(void*, QMultiHash<void*, Import> const&, ParseSession const&, KDevelop::TopDUContext::Features, QHash<void*, KDevelop::ReferencedTopDUContext>&, ClangIndex*, std::function<bool ()> const&) (file=0x7f64643eee80, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x55891496a910, abortFunction=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/clanghelpers.cpp:133
#44 0x00007f650bae8937 in ClangHelpers::buildDUChain(void*, QMultiHash<void*, Import> const&, ParseSession const&, KDevelop::TopDUContext::Features, QHash<void*, KDevelop::ReferencedTopDUContext>&, ClangIndex*, std::function<bool ()> const&) (file=0x7f64645d69f0, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x55891496a910, abortFunction=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/clanghelpers.cpp:133
#45 0x00007f650bae8937 in ClangHelpers::buildDUChain(void*, QMultiHash<void*, Import> const&, ParseSession const&, KDevelop::TopDUContext::Features, QHash<void*, KDevelop::ReferencedTopDUContext>&, ClangIndex*, std::function<bool ()> const&) (file=0x7f646400ece0, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x55891496a910, abortFunction=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/clanghelpers.cpp:133
#46 0x00007f650bae8937 in ClangHelpers::buildDUChain(void*, QMultiHash<void*, Import> const&, ParseSession const&, KDevelop::TopDUContext::Features, QHash<void*, KDevelop::ReferencedTopDUContext>&, ClangIndex*, std::function<bool ()> const&) (file=0x7f6464005760, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x55891496a910, abortFunction=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/clanghelpers.cpp:133
#47 0x00007f650bae8937 in ClangHelpers::buildDUChain(void*, QMultiHash<void*, Import> const&, ParseSession const&, KDevelop::TopDUContext::Features, QHash<void*, KDevelop::ReferencedTopDUContext>&, ClangIndex*, std::function<bool ()> const&) (file=0x7f64640053e0, imports=..., session=..., features=KDevelop::TopDUContext::AllDeclarationsContextsAndUses, includedFiles=..., index=0x55891496a910, abortFunction=...) at /home/flh/projects/kdevelop/plugins/clang/duchain/clanghelpers.cpp:133
#48 0x00007f650bbc912a in ClangParseJob::run(QSharedPointer<ThreadWeaver::JobInterface>, ThreadWeaver::Thread*) (this=0x558917a50ec0) at /home/flh/projects/kdevelop/plugins/clang/clangparsejob.cpp:338
#49 0x00007f65e733513c in ThreadWeaver::IdDecorator::run(QSharedPointer<ThreadWeaver::JobInterface>, ThreadWeaver::Thread*) () at /usr/lib/libKF5ThreadWeaver.so.5
#50 0x00007f65e7335749 in ThreadWeaver::Executor::run(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) () at /usr/lib/libKF5ThreadWeaver.so.5
#51 0x00007f65e7334752 in ThreadWeaver::Job::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) () at /usr/lib/libKF5ThreadWeaver.so.5
#52 0x00007f65e7333fe1 in ThreadWeaver::Thread::run() () at /usr/lib/libKF5ThreadWeaver.so.5
#53 0x00007f65e465ae0f in  () at /usr/lib/libQt5Core.so.5
#54 0x00007f65e36b03e9 in start_thread () at /usr/lib/libpthread.so.0
#55 0x00007f65e4186293 in clone () at /usr/lib/libc.so.6
Comment 1 Francis Herne 2020-08-30 14:49:25 UTC
Oops, I somehow managed to paste the first non-obviously-irrelevant thread of the backtrace twice...

Meant to include


#1  0x00007f65e34f2819 in  () at /usr/lib/libxcb.so.1
#2  0x00007f65e34f408f in  () at /usr/lib/libxcb.so.1
#3  0x00007f65e34f41a2 in xcb_wait_for_reply () at /usr/lib/libxcb.so.1
#4  0x00007f65d3803d2e in  () at /usr/lib/libQt5XcbQpa.so.5
#5  0x00007f65d3803e5c in  () at /usr/lib/libQt5XcbQpa.so.5
#6  0x00007f65e4ecccea in QCursor::pos(QScreen const*) () at /usr/lib/libQt5Gui.so.5
#7  0x00007f65e56c21d8 in QApplicationPrivate::sendSyntheticEnterLeave(QWidget*) () at /usr/lib/libQt5Widgets.so.5
#8  0x00007f65e56fc7ec in QWidgetPrivate::setVisible(bool) () at /usr/lib/libQt5Widgets.so.5
#9  0x00007f65e57dad11 in  () at /usr/lib/libQt5Widgets.so.5
#10 0x00007f65e57dbb93 in QDockWidget::setFloating(bool) () at /usr/lib/libQt5Widgets.so.5
#11 0x00007f65e57e9546 in  () at /usr/lib/libQt5Widgets.so.5
#12 0x00007f65e57e9770 in  () at /usr/lib/libQt5Widgets.so.5
#13 0x00007f65e58175dd in  () at /usr/lib/libQt5Widgets.so.5
#14 0x00007f65e5817a64 in  () at /usr/lib/libQt5Widgets.so.5
#15 0x00007f65e580e980 in QMainWindow::restoreState(QByteArray const&, int) () at /usr/lib/libQt5Widgets.so.5
#16 0x00007f65e62cb64c in KMainWindow::applyMainWindowSettings(KConfigGroup const&) () at /usr/lib/libKF5XmlGui.so.5
#17 0x00007f65e62fc208 in KXmlGuiWindow::applyMainWindowSettings(KConfigGroup const&) () at /usr/lib/libKF5XmlGui.so.5
#18 0x00007f65e85d797c in KDevelop::MainWindow::applyMainWindowSettings(KConfigGroup const&) (this=0x5589140c67c0, config=...) at /home/flh/projects/kdevelop/kdevplatform/shell/mainwindow.cpp:92
#19 0x00007f65e62fc1c4 in KXmlGuiWindow::finalizeGUI(bool) () at /usr/lib/libKF5XmlGui.so.5
#20 0x00007f65e62efdaf in KXMLGUIFactory::addClient(KXMLGUIClient*) () at /usr/lib/libKF5XmlGui.so.5
#21 0x00007f65e85e13c7 in KDevelop::MainWindowPrivate::addPlugin(KDevelop::IPlugin*) (this=0x55891417f8d0, plugin=0x558918506950) at /home/flh/projects/kdevelop/kdevplatform/shell/mainwindow_p.cpp:94
#22 0x00007f65e85e07b0 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<KDevelop::IPlugin*>, void, void (KDevelop::MainWindowPrivate::*)(KDevelop::IPlugin*)>::call(void (KDevelop::MainWindowPrivate::*)(KDevelop::IPlugin*), KDevelop::MainWindowPrivate*, void**) (f=(void (KDevelop::MainWindowPrivate::*)(KDevelop::MainWindowPrivate * const, KDevelop::IPlugin *)) 0x7f65e85e11c0 <KDevelop::MainWindowPrivate::addPlugin(KDevelop::IPlugin*)>, o=0x55891417f8d0, arg=0x7fff685cf7d0) at /usr/include/qt/QtCore/qobjectdefs_impl.h:152
#23 0x00007f65e85dfd72 in QtPrivate::FunctionPointer<void (KDevelop::MainWindowPrivate::*)(KDevelop::IPlugin*)>::call<QtPrivate::List<KDevelop::IPlugin*>, void>(void (KDevelop::MainWindowPrivate::*)(KDevelop::IPlugin*), KDevelop::MainWindowPrivate*, void**) (f=(void (KDevelop::MainWindowPrivate::*)(KDevelop::MainWindowPrivate * const, KDevelop::IPlugin *)) 0x7f65e85e11c0 <KDevelop::MainWindowPrivate::addPlugin(KDevelop::IPlugin*)>, o=0x55891417f8d0, arg=0x7fff685cf7d0) at /usr/include/qt/QtCore/qobjectdefs_impl.h:185
#24 0x00007f65e85deedc in QtPrivate::QSlotObject<void (KDevelop::MainWindowPrivate::*)(KDevelop::IPlugin*), QtPrivate::List<KDevelop::IPlugin*>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=1, this_=0x5589146214f0, r=0x55891417f8d0, a=0x7fff685cf7d0, ret=0x0) at /usr/include/qt/QtCore/qobjectdefs_impl.h:418
#25 0x00007f65e4876a06 in  () at /usr/lib/libQt5Core.so.5
#26 0x00007f65e716369e in KDevelop::IPluginController::pluginLoaded(KDevelop::IPlugin*) (this=0x55891426a1b0, _t1=0x558918506950) at kdevplatform/interfaces/KDevPlatformInterfaces_autogen/EWIEGA46WW/moc_iplugincontroller.cpp:199
#27 0x00007f65e85edb78 in KDevelop::PluginController::loadPluginInternal(QString const&) (this=0x55891426a1b0, pluginId=...) at /home/flh/projects/kdevelop/kdevplatform/shell/plugincontroller.cpp:629
#28 0x00007f65e85ee648 in operator()(KPluginMetaData const&) const (__closure=0x7fff685cf9b0, info=...) at /home/flh/projects/kdevelop/kdevplatform/shell/plugincontroller.cpp:727
#29 0x00007f65e85f03fa in KDevelop::PluginControllerPrivate::foreachEnabledPlugin<KDevelop::PluginController::allPluginsForExtension(const QString&, const QVariantMap&)::<lambda(const KPluginMetaData&)> >(struct {...}, const QString &, const QVariantMap &, const QString &) const (this=0x5589142e8bb0, func=..., extension=..., constraints=..., pluginName=...) at /home/flh/projects/kdevelop/kdevplatform/shell/plugincontroller.cpp:237
#30 0x00007f65e85ee74f in KDevelop::PluginController::allPluginsForExtension(QString const&, QMap<QString, QVariant> const&) (this=0x55891426a1b0, extension=..., constraints=...) at /home/flh/projects/kdevelop/kdevplatform/shell/plugincontroller.cpp:722
#31 0x00007f65e8648e84 in KDevelop::LanguageController::languagesForMimetype(QString const&) (this=0x558914595b10, mimetype=...) at /home/flh/projects/kdevelop/kdevplatform/shell/languagecontroller.cpp:337
#32 0x00007f65e8648c67 in KDevelop::LanguageController::languagesForUrl(QUrl const&) (this=0x558914595b10, url=...) at /home/flh/projects/kdevelop/kdevplatform/shell/languagecontroller.cpp:319
#33 0x00007f65e73ef9ce in KDevelop::BackgroundParserPrivate::createParseJob(KDevelop::IndexedString const&, DocumentParsePlan const&) (this=0x5589145924c0, url=..., parsePlan=...) at /home/flh/projects/kdevelop/kdevplatform/language/backgroundparser/backgroundparser.cpp:360
#34 0x00007f65e73ef3e9 in KDevelop::BackgroundParserPrivate::parseDocumentsInternal() (this=0x5589145924c0) at /home/flh/projects/kdevelop/kdevplatform/language/backgroundparser/backgroundparser.cpp:308
#35 0x00007f65e73ebddb in KDevelop::BackgroundParser::parseDocuments() (this=0x558914595a90) at /home/flh/projects/kdevelop/kdevplatform/language/backgroundparser/backgroundparser.cpp:680
#36 0x00007f65e73c3c63 in KDevelop::BackgroundParser::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x558914595a90, _c=QMetaObject::InvokeMetaMethod, _id=19, _a=0x7f64a00081f8) at kdevplatform/language/KDevPlatformLanguage_autogen/7BZAXZBZPZ/moc_backgroundparser.cpp:249
#37 0x00007f65e486c1b2 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#38 0x00007f65e56bb702 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#39 0x00007f65e483f79a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#40 0x00007f65e4842283 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5
#41 0x00007f65e4898cd4 in  () at /usr/lib/libQt5Core.so.5
#42 0x00007f65e271d43c in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#43 0x00007f65e276b1d9 in  () at /usr/lib/libglib-2.0.so.0
#44 0x00007f65e271c221 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#45 0x00007f65e4898311 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#46 0x00007f65e483e11c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#47 0x00007f65e48465a4 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#48 0x00005589134e781f in main(int, char**) (argc=3, argv=0x7fff685d0868) at /home/flh/projects/kdevelop/app/main.cpp:850
[Inferior 1 (process 724875) detached]