Created attachment 145130 [details] kcrash SUMMARY *** Arch Linux kdevelop version 21.12.0-1, boost version 1.78.0-1, boost-libs version 1.78.0-1 kdevelop repackaged with -DCMAKE_BUILD_TYPE=debug_full *** STEPS TO REPRODUCE 1. Create an empty CMake C++ Terminal project 2. Add the following to main.cpp after #include <iostream>: #include <boost/interprocess/managed_xsi_shared_memory.hpp> using namespace boost::interprocess; OBSERVED RESULT Kdevelop crashes EXPECTED RESULT SOFTWARE/OS VERSIONS Linux/KDE Plasma: 5.15.12-arch1-1 KDE Plasma Version: 5.23.5 KDE Frameworks Version: 5.89.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION
Created attachment 145131 [details] minimum example
Pasting the backtrace inline for better searchability: Application: KDevelop (kdevelop), signal: Segmentation fault [KCrash Handler] #4 0x00007efce5cdcd78 in __memmove_sse2_unaligned_erms () at /usr/lib/libc.so.6 #5 0x00007efc7e51923e in () at /usr/lib/libclang.so.13 #6 0x00007efc7e477030 in () at /usr/lib/libclang.so.13 #7 0x00007efc924918f6 in (anonymous namespace)::Visitor::setDeclData<(CXCursorKind)6>(CXCursor, KDevelop::ClassMemberDeclaration*) (cursor=..., decl=decl@entry=0x7efc70619150, this=0x7efc90b23b30) at /usr/src/debug/kdevelop-21.12.0/plugins/clang/duchain/builder.cpp:1083 #8 0x00007efc9249c721 in (anonymous namespace)::Visitor::createDeclarationCommon<(CXCursorKind)6, KDevelop::ClassMemberDeclaration>(CXCursor, KDevelop::Identifier const&) (this=this@entry=0x7efc90b23b30, cursor=..., id=...) at /usr/src/debug/kdevelop-21.12.0/plugins/clang/duchain/builder.cpp:442 #9 0x00007efc9249c927 in (anonymous namespace)::Visitor::createDeclaration<(CXCursorKind)6, KDevelop::ClassMemberDeclaration> (context=0x0, id=..., cursor=..., this=0x7efc90b23b30) at /usr/src/debug/kdevelop-21.12.0/plugins/clang/duchain/builder.cpp:451 #10 (anonymous namespace)::Visitor::buildDeclaration<(CXCursorKind)6, KDevelop::ClassMemberDeclaration, false>(CXCursor) (this=this@entry=0x7efc90b23b30, cursor=...) at /usr/src/debug/kdevelop-21.12.0/plugins/clang/duchain/builder.cpp:1217 #11 0x00007efc924a50e7 in (anonymous namespace)::Visitor::dispatchCursor<(CXCursorKind)6> (parent=..., cursor=..., this=0x7efc90b23b30) at /usr/src/debug/kdevelop-21.12.0/plugins/clang/duchain/builder.cpp:965 #12 (anonymous namespace)::visitCursor(CXCursor, CXCursor, CXClientData) (cursor=..., parent=..., data=0x7efc90b23b30) at /usr/src/debug/kdevelop-21.12.0/plugins/clang/duchain/builder.cpp:1554 #13 0x00007efc7e38adc4 in () at /usr/lib/libclang.so.13 #14 0x00007efc7e38b07d in () at /usr/lib/libclang.so.13 #15 0x00007efc7e38b3c8 in () at /usr/lib/libclang.so.13 #16 0x00007efc7e38a49d in () at /usr/lib/libclang.so.13 #17 0x00007efc7e38ac8a in clang_visitChildren () at /usr/lib/libclang.so.13 #18 0x00007efc924a1dc2 in (anonymous namespace)::Visitor::buildDeclaration<(CXCursorKind)2, KDevelop::ClassDeclaration, true>(CXCursor) (this=this@entry=0x7efc90b23b30, cursor=...) at /usr/src/debug/kdevelop-21.12.0/plugins/clang/duchain/builder.cpp:1214 #19 0x00007efc924a21d2 in (anonymous namespace)::Visitor::dispatchCursor<(CXCursorKind)2, (Decision)0, (Decision)0> (parent=..., cursor=..., this=0x7efc90b23b30) at /usr/src/debug/kdevelop-21.12.0/plugins/clang/duchain/builder.cpp:984 #20 0x00007efc924a743a in (anonymous namespace)::Visitor::dispatchCursor<(CXCursorKind)2> (parent=..., cursor=..., this=0x7efc90b23b30) at /usr/src/debug/kdevelop-21.12.0/plugins/clang/duchain/builder.cpp:947 #21 (anonymous namespace)::visitCursor(CXCursor, CXCursor, CXClientData) (cursor=..., parent=..., data=0x7efc90b23b30) at /usr/src/debug/kdevelop-21.12.0/plugins/clang/duchain/builder.cpp:1550 #22 0x00007efc7e38adc4 in () at /usr/lib/libclang.so.13 #23 0x00007efc7e38b07d in () at /usr/lib/libclang.so.13 #24 0x00007efc7e38b3c8 in () at /usr/lib/libclang.so.13 #25 0x00007efc7e38a49d in () at /usr/lib/libclang.so.13 #26 0x00007efc7e38ac8a in clang_visitChildren () at /usr/lib/libclang.so.13 #27 0x00007efc9249c133 in (anonymous namespace)::Visitor::buildDeclaration<(CXCursorKind)31, KDevelop::ClassDeclaration, true>(CXCursor) (this=0x7efc90b23b30, cursor=...) at /usr/src/debug/kdevelop-21.12.0/plugins/clang/duchain/builder.cpp:1214 #28 0x00007efc924a5e5d in (anonymous namespace)::visitCursor(CXCursor, CXCursor, CXClientData) (cursor=..., parent=..., data=0x7efc90b23b30) at /usr/src/debug/kdevelop-21.12.0/plugins/clang/duchain/builder.cpp:1570 #29 0x00007efc7e38adc4 in () at /usr/lib/libclang.so.13 #30 0x00007efc7e38b07d in () at /usr/lib/libclang.so.13 #31 0x00007efc7e38b3c8 in () at /usr/lib/libclang.so.13 #32 0x00007efc7e38a49d in () at /usr/lib/libclang.so.13 #33 0x00007efc7e38ac8a in clang_visitChildren () at /usr/lib/libclang.so.13 #34 0x00007efc924a67d0 in (anonymous namespace)::Visitor::buildDeclaration<(CXCursorKind)22, KDevelop::Declaration, true> (cursor=..., this=0x7efc90b23b30) at /usr/src/debug/kdevelop-21.12.0/plugins/clang/duchain/builder.cpp:1214 #35 (anonymous namespace)::Visitor::dispatchCursor<(CXCursorKind)22> (parent=..., cursor=..., this=0x7efc90b23b30) at /usr/src/debug/kdevelop-21.12.0/plugins/clang/duchain/builder.cpp:984 #36 (anonymous namespace)::visitCursor(CXCursor, CXCursor, CXClientData) (cursor=..., parent=..., data=0x7efc90b23b30) at /usr/src/debug/kdevelop-21.12.0/plugins/clang/duchain/builder.cpp:1561 #37 0x00007efc7e38adc4 in () at /usr/lib/libclang.so.13 #38 0x00007efc7e38b07d in () at /usr/lib/libclang.so.13 #39 0x00007efc7e38b3c8 in () at /usr/lib/libclang.so.13 #40 0x00007efc7e38a49d in () at /usr/lib/libclang.so.13 #41 0x00007efc7e38ac8a in clang_visitChildren () at /usr/lib/libclang.so.13 #42 0x00007efc924a67d0 in (anonymous namespace)::Visitor::buildDeclaration<(CXCursorKind)22, KDevelop::Declaration, true> (cursor=..., this=0x7efc90b23b30) at /usr/src/debug/kdevelop-21.12.0/plugins/clang/duchain/builder.cpp:1214 #43 (anonymous namespace)::Visitor::dispatchCursor<(CXCursorKind)22> (parent=..., cursor=..., this=0x7efc90b23b30) at /usr/src/debug/kdevelop-21.12.0/plugins/clang/duchain/builder.cpp:984 #44 (anonymous namespace)::visitCursor(CXCursor, CXCursor, CXClientData) (cursor=..., parent=..., data=0x7efc90b23b30) at /usr/src/debug/kdevelop-21.12.0/plugins/clang/duchain/builder.cpp:1561 #45 0x00007efc7e38adc4 in () at /usr/lib/libclang.so.13 #46 0x00007efc7e38b07d in () at /usr/lib/libclang.so.13 #47 0x00007efc7e38b3c8 in () at /usr/lib/libclang.so.13 #48 0x00007efc7e38a908 in () at /usr/lib/libclang.so.13 #49 0x00007efc7e38ac8a in clang_visitChildren () at /usr/lib/libclang.so.13 #50 0x00007efc92496f7e in (anonymous namespace)::Visitor::Visitor (update=false, includes=..., file=0x7efce638d5e0 <QHashData::shared_null>, tu=<optimized out>, this=0x7efc90b23b30) at /usr/src/debug/kdevelop-21.12.0/plugins/clang/duchain/builder.cpp:1471 #51 Builder::visit(CXTranslationUnitImpl*, void*, QHash<void*, KDevelop::ReferencedTopDUContext> const&, bool) (tu=<optimized out>, file=file@entry=0x7efc70274b30, includes=..., update=update@entry=false) at /usr/src/debug/kdevelop-21.12.0/plugins/clang/duchain/builder.cpp:1618 #52 0x00007efc924b1cc1 in ClangHelpers::buildDUChain(void*, QMultiHash<void*, Import> const&, ParseSession const&, QFlags<KDevelop::TopDUContext::Feature>, QHash<void*, KDevelop::ReferencedTopDUContext>&, QHash<KDevelop::IndexedString, KDevelop::ModificationRevision> const&, KDevelop::IndexedString const&, ClangIndex*, std::function<bool ()> const&) (file=<optimized out>, imports=<optimized out>, session=..., features=..., includedFiles=..., unsavedRevisions=..., parseDocument=..., index=0x5559b7b53d50, abortFunction=...) at /usr/src/debug/kdevelop-21.12.0/plugins/clang/duchain/clanghelpers.cpp:207 #53 0x00007efc924b153a in ClangHelpers::buildDUChain(void*, QMultiHash<void*, Import> const&, ParseSession const&, QFlags<KDevelop::TopDUContext::Feature>, QHash<void*, KDevelop::ReferencedTopDUContext>&, QHash<KDevelop::IndexedString, KDevelop::ModificationRevision> const&, KDevelop::IndexedString const&, ClangIndex*, std::function<bool ()> const&) (file=<optimized out>, imports=..., session=..., features=..., includedFiles=..., unsavedRevisions=..., parseDocument=..., index=0x5559b7b53d50, abortFunction=...) at /usr/src/debug/kdevelop-21.12.0/plugins/clang/duchain/clanghelpers.cpp:121 #54 0x00007efc924b153a in ClangHelpers::buildDUChain(void*, QMultiHash<void*, Import> const&, ParseSession const&, QFlags<KDevelop::TopDUContext::Feature>, QHash<void*, KDevelop::ReferencedTopDUContext>&, QHash<KDevelop::IndexedString, KDevelop::ModificationRevision> const&, KDevelop::IndexedString const&, ClangIndex*, std::function<bool ()> const&) (file=<optimized out>, imports=..., session=..., features=features@entry=..., includedFiles=..., unsavedRevisions=..., parseDocument=..., index=0x5559b7b53d50, abortFunction=...) at /usr/src/debug/kdevelop-21.12.0/plugins/clang/duchain/clanghelpers.cpp:121 #55 0x00007efc92529596 in ClangParseJob::run(QSharedPointer<ThreadWeaver::JobInterface>, ThreadWeaver::Thread*) (this=<optimized out>) at /usr/src/debug/kdevelop-21.12.0/plugins/clang/clangparsejob.cpp:326 #56 0x00007efce27d133c in ThreadWeaver::IdDecorator::run(QSharedPointer<ThreadWeaver::JobInterface>, ThreadWeaver::Thread*) () at /usr/lib/libKF5ThreadWeaver.so.5 #57 0x00007efce27d0f79 in ThreadWeaver::Executor::run(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) () at /usr/lib/libKF5ThreadWeaver.so.5 #58 0x00007efce27d1de2 in ThreadWeaver::Job::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) () at /usr/lib/libKF5ThreadWeaver.so.5 #59 0x00007efce27d61b1 in ThreadWeaver::Thread::run() () at /usr/lib/libKF5ThreadWeaver.so.5 #60 0x00007efce60fc838 in () at /usr/lib/libQt5Core.so.5 #61 0x00007efce32c6259 in start_thread () at /usr/lib/libpthread.so.0 #62 0x00007efce5d325e3 in clone () at /usr/lib/libc.so.6
Possibly a duplicate of Bug 438249. The line numbers in builder.cpp shift often enough. Which exactly libclang function call crashes?