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

            Bug ID: 500089
           Summary: crashes when completing code
    Classification: Applications
           Product: kdevelop
           Version: 6.1.241202
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: Code completion
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: painless.roas...@gmail.com
  Target Milestone: ---

os: fedora 40
plasma: 6.3.0
kdevelop: 6.1.241202 (24.12.2)
qt: 6.8.2
clang: 18.1.8

Crashes when completing code. I couldn't even write the whole '#define'.
I tried replicating it on another pc with the same system. The problem was
exactly the same.

backrace:
#0  0x00007fff921d183d in clang::RedeclarableTemplateDecl::getCommonPtr() const
() at /lib64/libclang.so.18.1
#1  0x00007fff9344c5b9 in
clang::ASTDeclReader::VisitFunctionDecl(clang::FunctionDecl*) () at
/lib64/libclang.so.18.1
#2  0x00007fff93459707 in
clang::ASTDeclReader::VisitCXXMethodDecl(clang::CXXMethodDecl*) () at
/lib64/libclang.so.18.1
#3  0x00007fff9347475f in clang::ASTReader::ReadDeclRecord(unsigned int) () at
/lib64/libclang.so.18.1
#4  0x00007fff9340c175 in clang::ASTReader::GetDecl(unsigned int) () at
/lib64/libclang.so.18.1
#5  0x00007fff93414fc9 in
clang::ASTReader::FindExternalLexicalDecls(clang::DeclContext const*,
llvm::function_ref<bool (clang::Decl::Kind)>,
llvm::SmallVectorImpl<clang::Decl*>&)::$_0::operator()(clang::serialization::ModuleFile*,
llvm::ArrayRef<llvm::support::detail::packed_endian_specific_integral<unsigned
int, (llvm::endianness)1, 1ul, 1ul> >) const () at /lib64/libclang.so.18.1
#6  0x00007fff93414e98 in
clang::ASTReader::FindExternalLexicalDecls(clang::DeclContext const*,
llvm::function_ref<bool (clang::Decl::Kind)>,
llvm::SmallVectorImpl<clang::Decl*>&) () at /lib64/libclang.so.18.1
#7  0x00007fff9219e6b4 in
clang::DeclContext::LoadLexicalDeclsFromExternalStorage() const () at
/lib64/libclang.so.18.1
#8  0x00007fff9203f73d in
clang::cxcursor::CursorVisitor::VisitDeclContext(clang::DeclContext*) () at
/lib64/libclang.so.18.1
#9  0x00007fff9203e0d4 in
clang::cxcursor::CursorVisitor::VisitChildren(CXCursor) () at
/lib64/libclang.so.18.1
#10 0x00007fff9204ad72 in clang_visitChildren () at /lib64/libclang.so.18.1
#11 0x00007fff997767cc in (anonymous namespace)::declVisitor(CXCursor,
CXCursor, void*) () at /lib64/libKDevClangPrivate.so.61
#12 0x00007fff9203f62e in
clang::cxcursor::CursorVisitor::handleDeclForVisitation(clang::Decl const*) ()
at /lib64/libclang.so.18.1
#13 0x00007fff9203f7e8 in
clang::cxcursor::CursorVisitor::VisitDeclContext(clang::DeclContext*) () at
/lib64/libclang.so.18.1
#14 0x00007fff9203de50 in
clang::cxcursor::CursorVisitor::VisitChildren(CXCursor) () at
/lib64/libclang.so.18.1
#15 0x00007fff9204ad72 in clang_visitChildren () at /lib64/libclang.so.18.1
#16 0x00007fff99779405 in
ClangCodeCompletionContext::ClangCodeCompletionContext(KDevelop::DUChainPointer<KDevelop::DUContext>
const&, QExplicitlySharedDataPointer<ParseSessionData> const&, QUrl const&,
KTextEditor::Cursor const&, QString const&, QString const&) () at
/lib64/libKDevClangPrivate.so.61
#17 0x00007fff99787675 in (anonymous
namespace)::ClangCodeCompletionWorker::run() () at
/lib64/libKDevClangPrivate.so.61
#18 0x00007ffff620e16e in void doActivate<false>(QObject*, int, void**) () at
/lib64/libQt6Core.so.6
#19 0x00007ffff621dfed in QTimer::timeout(QTimer::QPrivateSignal) () at
/lib64/libQt6Core.so.6
#20 0x00007ffff61ff835 in QObject::event(QEvent*) () at /lib64/libQt6Core.so.6
#21 0x00007ffff758d9b8 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() at /lib64/libQt6Widgets.so.6
#22 0x00007ffff61a7510 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() at /lib64/libQt6Core.so.6
#23 0x00007ffff6368da8 in QTimerInfoList::activateTimers() () at
/lib64/libQt6Core.so.6
#24 0x00007ffff64a3139 in timerSourceDispatch(_GSource*, int (*)(void*), void*)
() at /lib64/libQt6Core.so.6
#25 0x00007ffff2d4be8c in g_main_context_dispatch_unlocked.lto_priv () at
/lib64/libglib-2.0.so.0
#26 0x00007ffff2dadc98 in g_main_context_iterate_unlocked.isra () at
/lib64/libglib-2.0.so.0
#27 0x00007ffff2d4d383 in g_main_context_iteration () at
/lib64/libglib-2.0.so.0
#28 0x00007ffff64a3333 in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
at /lib64/libQt6Core.so.6
#29 0x00007ffff61b48d3 in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at
/lib64/libQt6Core.so.6
#30 0x00007ffff62cd015 in QThread::exec() () at /lib64/libQt6Core.so.6
#31 0x00007ffff636a76f in QThreadPrivate::start(void*) () at
/lib64/libQt6Core.so.6
#32 0x00007ffff5aa6088 in start_thread () at /lib64/libc.so.6
#33 0x00007ffff5b29f8c in clone3 () at /lib64/libc.so.6

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

Reply via email to