https://bugs.kde.org/show_bug.cgi?id=496314
            Bug ID: 496314
           Summary: Kdeevlop crashes when lading a project
    Classification: Applications
           Product: kdevelop
           Version: 5.12.230805
          Platform: Kubuntu
                OS: Linux
            Status: REPORTED
          Severity: critical
          Priority: NOR
         Component: Language Support: CPP (Clang-based)
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: kitts.mailingli...@gmail.com
  Target Milestone: ---

The backtrace prodced by GDB is
(gdb) bt
#0  __memcpy_avx_unaligned_erms () at
../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:265
#1  0x00007fffb9131a92 in APInt () at llvm/include/llvm/ADT/APInt.h:157
#2  APSInt () at llvm/include/llvm/ADT/APSInt.h:23
#3  EvaluateKnownConstInt () at
build-llvm/tools/clang/stage2-bins/clang/lib/AST/ExprConstant.cpp:15478
#4  0x00007fffb90acca4 in getBitWidthValue () at
build-llvm/tools/clang/stage2-bins/clang/lib/AST/Decl.cpp:4317
#5  0x00007fffbb9e02d2 in ?? () from
/lib/x86_64-linux-gnu/libKDevClangPrivate.so.512
#6  0x00007fffbb9acd7a in ?? () from
/lib/x86_64-linux-gnu/libKDevClangPrivate.so.512
#7  0x00007fffbb9e0834 in ?? () from
/lib/x86_64-linux-gnu/libKDevClangPrivate.so.512
#8  0x00007fffbb9a8c33 in ?? () from
/lib/x86_64-linux-gnu/libKDevClangPrivate.so.512
#9  0x00007fffb8f93c80 in Visit () at
build-llvm/tools/clang/stage2-bins/clang/tools/libclang/CIndex.cpp:220
#10 handleDeclForVisitation () at
build-llvm/tools/clang/stage2-bins/clang/tools/libclang/CIndex.cpp:682
#11 0x00007fffb8f93dd8 in VisitDeclContext () at
build-llvm/tools/clang/stage2-bins/clang/tools/libclang/CIndex.cpp:643
#12 0x00007fffb8f94d69 in VisitTagDecl () at
build-llvm/tools/clang/stage2-bins/clang/tools/libclang/CIndex.cpp:712
#13 VisitCXXRecordDecl () at
build-llvm/tools/clang/stage2-bins/clang/tools/libclang/CIndex.cpp:1927
#14 0x00007fffb8f92568 in VisitChildren () at
build-llvm/tools/clang/stage2-bins/clang/tools/libclang/CIndex.cpp:509
#15 0x00007fffb8f9e4ba in clang_visitChildren () at
build-llvm/tools/clang/stage2-bins/clang/tools/libclang/CIndex.cpp:4774
#16 0x00007fffbb9e69f3 in ?? () from
/lib/x86_64-linux-gnu/libKDevClangPrivate.so.512
#17 0x00007fffbb9a9197 in ?? () from
/lib/x86_64-linux-gnu/libKDevClangPrivate.so.512
#18 0x00007fffb8f93c80 in Visit () at
build-llvm/tools/clang/stage2-bins/clang/tools/libclang/CIndex.cpp:220
#19 handleDeclForVisitation () at
build-llvm/tools/clang/stage2-bins/clang/tools/libclang/CIndex.cpp:682
#20 0x00007fffb8f93dd8 in VisitDeclContext () at
build-llvm/tools/clang/stage2-bins/clang/tools/libclang/CIndex.cpp:643
#21 0x00007fffb8f92759 in VisitChildren () at
build-llvm/tools/clang/stage2-bins/clang/tools/libclang/CIndex.cpp:543
#22 0x00007fffb8f9e4ba in clang_visitChildren () at
build-llvm/tools/clang/stage2-bins/clang/tools/libclang/CIndex.cpp:4774
#23 0x00007fffbb9a74e0 in Builder::visit(CXTranslationUnitImpl*, void*,
QHash<void*, KDevelop::ReferencedTopDUContext> const&, bool) () from
/lib/x86_64-linux-gnu/libKDevClangPrivate.so.512
#24 0x00007fffbb9bfa12 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&) ()
   from /lib/x86_64-linux-gnu/libKDevClangPrivate.so.512
#25 0x00007fffbb9bf3fd 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&) ()
   from /lib/x86_64-linux-gnu/libKDevClangPrivate.so.512
#26 0x00007fffbb9bf3fd 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&) ()
   from /lib/x86_64-linux-gnu/libKDevClangPrivate.so.512
#27 0x00007fffbb9bf3fd 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&) ()
   from /lib/x86_64-linux-gnu/libKDevClangPrivate.so.512
#28 0x00007fffbb9bf3fd 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&) ()
   from /lib/x86_64-linux-gnu/libKDevClangPrivate.so.512
#29 0x00007fffc401a269 in ?? () from
/usr/lib/x86_64-linux-gnu/qt5/plugins/kdevplatform/512/kdevclangsupport.so
#30 0x00007ffff20996ff in ThreadWeaver::IdDecorator::run (this=<optimized out>,
self=..., thread=0x55555741f210)
    at /usr/src/threadweaver-5.116.0-0ubuntu1/src/iddecorator.cpp:50
#31 0x00007ffff20992b3 in ThreadWeaver::Executor::run (this=<optimized out>,
job=..., thread=<optimized out>)
    at /usr/src/threadweaver-5.116.0-0ubuntu1/src/executor.cpp:33
#32 0x00007ffff209a274 in ThreadWeaver::Job::execute (this=<optimized out>,
self=..., th=0x55555741f210)
    at /usr/src/threadweaver-5.116.0-0ubuntu1/src/job.cpp:64
#33 0x00007ffff209f379 in ThreadWeaver::Thread::run (this=0x55555741f210)
    at /usr/src/threadweaver-5.116.0-0ubuntu1/src/thread.cpp:98
#34 0x00007ffff60dee76 in operator() (__closure=<optimized out>) at
thread/qthread_unix.cpp:350
#35 (anonymous
namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> >
(t=...)
    at thread/qthread_unix.cpp:287
#36 QThreadPrivate::start (arg=0x55555741f210) at thread/qthread_unix.cpp:310
#37 0x00007ffff58a1e2e in start_thread (arg=<optimized out>) at
./nptl/pthread_create.c:447
#38 0x00007ffff5933a4c in __GI___clone3 () at
../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
(gdb) 

SUMMARY
I work on embedded systems and most of m pojects are cmake based cros compiled
for micro controllers. 

STEPS TO REPRODUCE
1. Open a project

OBSERVED RESULT
Crash after about % of parsing

EXPECTED RESULT
No crash

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 24.10
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.6.2
Kernel Version: 6.11.0-9-generic (64-bit)
Graphics Platform: Wayland
Processors: 20 × 12th Gen Intel® Core™ i7-12700H
Memory: 15.2 GiB of RAM
Graphics Processor: Mesa Intel® Graphics

ADDITIONAL INFORMATION
This crash used to happen in kubuntu 24.04 as well that is why i upgraded to
24.10 but the crash persists. I have installed the kdeevlop 24.08 flathub
version which doe not crash but also does not parse the C++ project.

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

Reply via email to