Bug 497172 - KDevelop crashes while background parser is running on Linux kernel source code
Summary: KDevelop crashes while background parser is running on Linux kernel source code
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (Clang-based) (show other bugs)
Version: 6.0.240803
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2024-12-07 18:44 UTC by Jure Repinc
Modified: 2024-12-07 18:49 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/104157/events/7f0bfa8b35e3419b8bc44a0d9bf6eac6/


Attachments
New crash information added by DrKonqi (154.10 KB, text/plain)
2024-12-07 18:44 UTC, Jure Repinc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jure Repinc 2024-12-07 18:44:51 UTC
Application: kdevelop (6.0.240803 (24.08.3))

ApplicationNotResponding [ANR]: false
Qt Version: 6.8.1
Frameworks Version: 6.8.0
Operating System: Linux 6.11.8-1-default x86_64
Windowing System: Wayland
Distribution: "openSUSE Tumbleweed"
DrKonqi: 6.2.4 [CoredumpBackend]

-- Information about the crash:
SUMMARY
I cloned the Linux kernel repository (https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/) and opened it as a Make project. I also changed the C laguage profile used to be gnu11 and added some include paths (linux/include, linux/arch/riscv/include) in project settings

OBSERVED RESULT
KDevelop often crashes when background parsing is running

EXPECTED RESULT
No crash when parsing code

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20241205
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.1
Kernel Version: 6.11.8-1-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840HS w/ Radeon 780M Graphics
Memory: 30.7 GiB of RAM
Graphics Processor: AMD Radeon 780M

The crash can be reproduced sometimes.

-- Backtrace (Reduced):
#5  0x00007fb655414a61 in std::__fill_a1<unsigned short*, int> (__first=0x7fb5922dab05, __last=0x7fb5922dc49f, __value=<optimized out>) at /usr/include/c++/14/bits/stl_algobase.h:952
#6  std::__fill_a<unsigned short*, int> (__first=0x7fb5922dab05, __last=0x7fb5922dc49f, __value=<optimized out>) at /usr/include/c++/14/bits/stl_algobase.h:998
#7  std::__fill_n_a<unsigned short*, int, int> (__first=0x7fb5922dab05, __n=3277, __value=<optimized out>) at /usr/include/c++/14/bits/stl_algobase.h:1151
#12 0x00007fb65534395a in operator() (__closure=<optimized out>, repo=...) at /usr/src/debug/kdevelop-24.08.3/kdevplatform/language/duchain/persistentsymboltable.cpp:376
#14 KDevelop::PersistentSymbolTable::removeDeclaration (this=<optimized out>, id=<optimized out>, declaration=<optimized out>) at /usr/src/debug/kdevelop-24.08.3/kdevplatform/language/duchain/persistentsymboltable.cpp:337


Reported using DrKonqi
Comment 1 Jure Repinc 2024-12-07 18:44:52 UTC
Created attachment 176420 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.