Bug 472669 - CPU usage goes to 100% after closing the KDevelop window
Summary: CPU usage goes to 100% after closing the KDevelop window
Status: RESOLVED DUPLICATE of bug 379669
Alias: None
Product: kdevelop
Classification: Applications
Component: UI: general (show other bugs)
Version: 5.7.211203
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-26 14:18 UTC by JStrebel
Modified: 2023-07-27 09:02 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description JStrebel 2023-07-26 14:18:14 UTC
SUMMARY
After working in KDevelep on some C++ code, I save my files and close the KDevelop window successfully. Then the kdevelop process goes to 100% CPU usage (visible in "top" CLI tool). Killing kdevelop using kill SIGTERM does not work, only using SIGKILL.  

STEPS TO REPRODUCE
1.  Run Kdevelop
2. Close Kdevelop window (end session)
3. inspect kdevelop process in "top"

OBSERVED RESULT
kdevelop process is using 100% CPU capacity

EXPECTED RESULT
kdevelop process is no longer visible in "top"

SOFTWARE/OS VERSIONS
Operating System: openSUSE Leap 15.4
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.14.21-150400.24.69-default (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5 CPU M 540 @ 2.53GHz
Memory: 3.7 GiB of RAM
Graphics Processor: NVA8


ADDITIONAL INFORMATION
Comment 1 Igor Kushnir 2023-07-26 15:25:02 UTC
How long did you wait for KDevelop to exit? KDevelop has to save background parsing results on disk, which can take minutes after a long background parsing.

If KDevelop keeps hanging for a long time, please run the following command (replace "12345" with the hanging kdevelop process ID):
gdb -batch -ex "thread apply all bt" -ex "quit" -p 12345 > ~/kdevelop-freeze-on-exit.bt
(in case of a "ptrace: Operation not permitted." error, follow an advice in https://userbase.kde.org/KDevelop5/Manual/Debugging_programs#Attaching_the_debugger_to_a_running_process)
Then post the contents of the file ~/kdevelop-freeze-on-exit.bt here.

A workaround that is likely to help (possibly temporarily) is to clear the cache when the "Session Crashed -- KDevelop" dialog appears.
Comment 2 JStrebel 2023-07-27 07:11:59 UTC
I exited KDevelop and after waiting 10 minutes, the kdevelop process is still using 100% CPU. So I don't think the kdevelop process is doing anything meaningful.

Clearing the cache using 
jstrebel@phoenix:~> CLEAR_DUCHAIN_DIR=1 kdevelop
OR
deleting the directories ~/.cache/kdevelop and kdevduchain
did not change the faulty behaviour.

Here is the contents of the file kdevelop-freeze-on-exit.bt:
[New LWP 1970]
[New LWP 1971]
[New LWP 1972]
[New LWP 1977]
[New LWP 1979]
[New LWP 1985]
[New LWP 1986]
[New LWP 2007]
[New LWP 2092]
[New LWP 2123]
[New LWP 2126]
[New LWP 2127]
[New LWP 2128]
[New LWP 2129]
[New LWP 2130]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
0x00007f46146f98ca in ?? () from /usr/lib64/libKDevPlatformLanguage.so.57

Thread 16 (Thread 0x7f457e7fc700 (LWP 2130) "Queue(0x55dfa86"):
#0  0x00007f460e94370c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f4615f0f19b in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib64/libQt5Core.so.5
#2  0x00007f460cde7feb in ThreadWeaver::Weaver::blockThreadUntilJobsAreBeingAssigned(ThreadWeaver::Thread*) () from /usr/lib64/libKF5ThreadWeaver.so.5
#3  0x00007f460cde6650 in ?? () from /usr/lib64/libKF5ThreadWeaver.so.5
#4  0x00007f460cde7f0d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib64/libKF5ThreadWeaver.so.5
#5  0x00007f460cdea1d2 in ?? () from /usr/lib64/libKF5ThreadWeaver.so.5
#6  0x00007f460cde7f0d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib64/libKF5ThreadWeaver.so.5
#7  0x00007f460cdea1d2 in ?? () from /usr/lib64/libKF5ThreadWeaver.so.5
#8  0x00007f460cde7f0d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib64/libKF5ThreadWeaver.so.5
#9  0x00007f460cde6f1b in ThreadWeaver::Thread::run() () from /usr/lib64/libKF5ThreadWeaver.so.5
#10 0x00007f4615f088bc in ?? () from /usr/lib64/libQt5Core.so.5
#11 0x00007f460e93c6ea in start_thread () from /lib64/libpthread.so.0
#12 0x00007f461592749f in clone () from /lib64/libc.so.6

Thread 15 (Thread 0x7f457effd700 (LWP 2129) "Queue(0x55dfa86"):
#0  0x00007f460e94370c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f4615f0f19b in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib64/libQt5Core.so.5
#2  0x00007f460cde7feb in ThreadWeaver::Weaver::blockThreadUntilJobsAreBeingAssigned(ThreadWeaver::Thread*) () from /usr/lib64/libKF5ThreadWeaver.so.5
#3  0x00007f460cde6650 in ?? () from /usr/lib64/libKF5ThreadWeaver.so.5
#4  0x00007f460cde7f0d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib64/libKF5ThreadWeaver.so.5
#5  0x00007f460cdea1d2 in ?? () from /usr/lib64/libKF5ThreadWeaver.so.5
#6  0x00007f460cde7f0d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib64/libKF5ThreadWeaver.so.5
#7  0x00007f460cdea1d2 in ?? () from /usr/lib64/libKF5ThreadWeaver.so.5
#8  0x00007f460cde7f0d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib64/libKF5ThreadWeaver.so.5
#9  0x00007f460cde6f1b in ThreadWeaver::Thread::run() () from /usr/lib64/libKF5ThreadWeaver.so.5
#10 0x00007f4615f088bc in ?? () from /usr/lib64/libQt5Core.so.5
#11 0x00007f460e93c6ea in start_thread () from /lib64/libpthread.so.0
#12 0x00007f461592749f in clone () from /lib64/libc.so.6

Thread 14 (Thread 0x7f457f7fe700 (LWP 2128) "Queue(0x55dfa86"):
#0  0x00007f460e94370c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f4615f0f19b in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib64/libQt5Core.so.5
#2  0x00007f460cde7feb in ThreadWeaver::Weaver::blockThreadUntilJobsAreBeingAssigned(ThreadWeaver::Thread*) () from /usr/lib64/libKF5ThreadWeaver.so.5
#3  0x00007f460cde6650 in ?? () from /usr/lib64/libKF5ThreadWeaver.so.5
#4  0x00007f460cde7f0d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib64/libKF5ThreadWeaver.so.5
#5  0x00007f460cdea1d2 in ?? () from /usr/lib64/libKF5ThreadWeaver.so.5
#6  0x00007f460cde7f0d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib64/libKF5ThreadWeaver.so.5
#7  0x00007f460cdea1d2 in ?? () from /usr/lib64/libKF5ThreadWeaver.so.5
#8  0x00007f460cde7f0d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib64/libKF5ThreadWeaver.so.5
#9  0x00007f460cde6f1b in ThreadWeaver::Thread::run() () from /usr/lib64/libKF5ThreadWeaver.so.5
#10 0x00007f4615f088bc in ?? () from /usr/lib64/libQt5Core.so.5
#11 0x00007f460e93c6ea in start_thread () from /lib64/libpthread.so.0
#12 0x00007f461592749f in clone () from /lib64/libc.so.6

Thread 13 (Thread 0x7f457ffff700 (LWP 2127) "Queue(0x55dfa86"):
#0  0x00007f460e94370c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f4615f0f19b in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib64/libQt5Core.so.5
#2  0x00007f460cde7feb in ThreadWeaver::Weaver::blockThreadUntilJobsAreBeingAssigned(ThreadWeaver::Thread*) () from /usr/lib64/libKF5ThreadWeaver.so.5
#3  0x00007f460cde68a8 in ?? () from /usr/lib64/libKF5ThreadWeaver.so.5
#4  0x00007f460cde7f0d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib64/libKF5ThreadWeaver.so.5
#5  0x00007f460cdea1d2 in ?? () from /usr/lib64/libKF5ThreadWeaver.so.5
#6  0x00007f460cde7f0d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib64/libKF5ThreadWeaver.so.5
#7  0x00007f460cdea1d2 in ?? () from /usr/lib64/libKF5ThreadWeaver.so.5
#8  0x00007f460cde7f0d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib64/libKF5ThreadWeaver.so.5
#9  0x00007f460cde6f1b in ThreadWeaver::Thread::run() () from /usr/lib64/libKF5ThreadWeaver.so.5
#10 0x00007f4615f088bc in ?? () from /usr/lib64/libQt5Core.so.5
#11 0x00007f460e93c6ea in start_thread () from /lib64/libpthread.so.0
#12 0x00007f461592749f in clone () from /lib64/libc.so.6

Thread 12 (Thread 0x7f4584936700 (LWP 2126) "Queue(0x55dfa86"):
#0  0x00007f460e94370c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f4615f0f19b in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib64/libQt5Core.so.5
#2  0x00007f460cde7feb in ThreadWeaver::Weaver::blockThreadUntilJobsAreBeingAssigned(ThreadWeaver::Thread*) () from /usr/lib64/libKF5ThreadWeaver.so.5
#3  0x00007f460cde6650 in ?? () from /usr/lib64/libKF5ThreadWeaver.so.5
#4  0x00007f460cde7f0d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib64/libKF5ThreadWeaver.so.5
#5  0x00007f460cdea1d2 in ?? () from /usr/lib64/libKF5ThreadWeaver.so.5
#6  0x00007f460cde7f0d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib64/libKF5ThreadWeaver.so.5
#7  0x00007f460cde6f1b in ThreadWeaver::Thread::run() () from /usr/lib64/libKF5ThreadWeaver.so.5
#8  0x00007f4615f088bc in ?? () from /usr/lib64/libQt5Core.so.5
#9  0x00007f460e93c6ea in start_thread () from /lib64/libpthread.so.0
#10 0x00007f461592749f in clone () from /lib64/libc.so.6

Thread 11 (Thread 0x7f45a28e4700 (LWP 2123) "KDevelop::Compl"):
#0  0x00007f461591a999 in poll () from /lib64/libc.so.6
#1  0x00007f460d04cb49 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f460d04cc5c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f461616402c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007f461610048a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f4615f07377 in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007f461474936f in ?? () from /usr/lib64/libKDevPlatformLanguage.so.57
#7  0x00007f4615f088bc in ?? () from /usr/lib64/libQt5Core.so.5
#8  0x00007f460e93c6ea in start_thread () from /lib64/libpthread.so.0
#9  0x00007f461592749f in clone () from /lib64/libc.so.6

Thread 10 (Thread 0x7f45a20e3700 (LWP 2092) "QQuickXmlQueryE"):
#0  0x00007f461591a999 in poll () from /lib64/libc.so.6
#1  0x00007f460d04cb49 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f460d04cc5c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f461616402c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007f461610048a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f4615f07377 in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007f45a05c0e55 in ?? () from /usr/lib64/qt5/qml/QtQuick/XmlListModel/libqmlxmllistmodelplugin.so
#7  0x00007f4615f088bc in ?? () from /usr/lib64/libQt5Core.so.5
#8  0x00007f460e93c6ea in start_thread () from /lib64/libpthread.so.0
#9  0x00007f461592749f in clone () from /lib64/libc.so.6

Thread 9 (Thread 0x7f45a30e5700 (LWP 2007) "kdevelop"):
#0  0x00007f461591d171 in pselect () from /lib64/libc.so.6
#1  0x00007f45f4ef0ad3 in ?? () from /usr/lib64/libusbmuxd-2.0.so.6
#2  0x00007f45f4ef1f33 in ?? () from /usr/lib64/libusbmuxd-2.0.so.6
#3  0x00007f460e93c6ea in start_thread () from /lib64/libpthread.so.0
#4  0x00007f461592749f in clone () from /lib64/libc.so.6

Thread 8 (Thread 0x7f45a964d700 (LWP 1986) "OutputFilterThr"):
#0  0x00007f461591a999 in poll () from /lib64/libc.so.6
#1  0x00007f460d04cb49 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f460d04cc5c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f461616402c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007f461610048a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f4615f07377 in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007f4615f088bc in ?? () from /usr/lib64/libQt5Core.so.5
#7  0x00007f460e93c6ea in start_thread () from /lib64/libpthread.so.0
#8  0x00007f461592749f in clone () from /lib64/libc.so.6

Thread 7 (Thread 0x7f45aac80700 (LWP 1985) "Qt bearer threa"):
#0  0x00007f461591a999 in poll () from /lib64/libc.so.6
#1  0x00007f460d04cb49 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f460d04cc5c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f461616402c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007f461610048a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f4615f07377 in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007f4615f088bc in ?? () from /usr/lib64/libQt5Core.so.5
#7  0x00007f460e93c6ea in start_thread () from /lib64/libpthread.so.0
#8  0x00007f461592749f in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7f45ccd26700 (LWP 1979) "QQmlThread"):
#0  0x00007f461591a999 in poll () from /lib64/libc.so.6
#1  0x00007f460d04cb49 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f460d04cc5c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f461616402c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007f461610048a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f4615f07377 in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007f460f7c24f5 in ?? () from /usr/lib64/libQt5Qml.so.5
#7  0x00007f4615f088bc in ?? () from /usr/lib64/libQt5Core.so.5
#8  0x00007f460e93c6ea in start_thread () from /lib64/libpthread.so.0
#9  0x00007f461592749f in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f45cddfc700 (LWP 1977) "QThread"):
#0  0x00007f4615920759 in syscall () from /lib64/libc.so.6
#1  0x00007f4615f08c65 in QBasicMutex::lockInternal() () from /usr/lib64/libQt5Core.so.5
#2  0x00007f4615f08f63 in ?? () from /usr/lib64/libQt5Core.so.5
#3  0x00007f4614645924 in ?? () from /usr/lib64/libKDevPlatformLanguage.so.57
#4  0x00007f461613f1c7 in ?? () from /usr/lib64/libQt5Core.so.5
#5  0x00007f4616143d17 in QTimer::timeout(QTimer::QPrivateSignal) () from /usr/lib64/libQt5Core.so.5
#6  0x00007f4616144078 in QTimer::timerEvent(QTimerEvent*) () from /usr/lib64/libQt5Core.so.5
#7  0x00007f4616135d03 in QObject::event(QEvent*) () from /usr/lib64/libQt5Core.so.5
#8  0x00007f4617ab53bc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#9  0x00007f4617abc1a0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#10 0x00007f4616101c23 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#11 0x00007f46161634b9 in QTimerInfoList::activateTimers() () from /usr/lib64/libQt5Core.so.5
#12 0x00007f4616163cb9 in ?? () from /usr/lib64/libQt5Core.so.5
#13 0x00007f460d04c82b in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#14 0x00007f460d04cbd0 in ?? () from /usr/lib64/libglib-2.0.so.0
#15 0x00007f460d04cc5c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#16 0x00007f461616402c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#17 0x00007f461610048a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#18 0x00007f4615f07377 in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#19 0x00007f4614644f0b in ?? () from /usr/lib64/libKDevPlatformLanguage.so.57
#20 0x00007f4615f088bc in ?? () from /usr/lib64/libQt5Core.so.5
#21 0x00007f460e93c6ea in start_thread () from /lib64/libpthread.so.0
#22 0x00007f461592749f in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f45dede6700 (LWP 1972) "QDBusConnection"):
#0  0x00007f461591a999 in poll () from /lib64/libc.so.6
#1  0x00007f460d04cb49 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f460d04cc5c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f461616402c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007f461610048a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f4615f07377 in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007f461742f2e5 in ?? () from /usr/lib64/libQt5DBus.so.5
#7  0x00007f4615f088bc in ?? () from /usr/lib64/libQt5Core.so.5
#8  0x00007f460e93c6ea in start_thread () from /lib64/libpthread.so.0
#9  0x00007f461592749f in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f45dfda5700 (LWP 1971) "kdevelo:disk$0"):
#0  0x00007f460e94370c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f45e6265a6b in ?? () from /usr/lib64/dri/nouveau_dri.so
#2  0x00007f45e6265677 in ?? () from /usr/lib64/dri/nouveau_dri.so
#3  0x00007f460e93c6ea in start_thread () from /lib64/libpthread.so.0
#4  0x00007f461592749f in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f45ee27c700 (LWP 1970) "QXcbEventQueue"):
#0  0x00007f461591a999 in poll () from /lib64/libc.so.6
#1  0x00007f46018c2387 in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007f46018c3fba in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007f45f039fd20 in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007f4615f088bc in ?? () from /usr/lib64/libQt5Core.so.5
#5  0x00007f460e93c6ea in start_thread () from /lib64/libpthread.so.0
#6  0x00007f461592749f in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f45f2633540 (LWP 1969) "kdevelop"):
#0  0x00007f46146f98ca in ?? () from /usr/lib64/libKDevPlatformLanguage.so.57
#1  0x00007f4613255199 in KDevelop::ItemRepositoryRegistry::finalCleanup() () from /usr/lib64/libKDevPlatformSerialization.so.57
#2  0x00007f46146338d1 in KDevelop::DUChain::shutdown() () from /usr/lib64/libKDevPlatformLanguage.so.57
#3  0x00007f461907e04b in KDevelop::Core::cleanup() () from /usr/lib64/libKDevPlatformShell.so.57
#4  0x00007f461907e348 in KDevelop::Core::shutdown() () from /usr/lib64/libKDevPlatformShell.so.57
#5  0x00007f461905fccd in KDevelop::MainWindow::~MainWindow() () from /usr/lib64/libKDevPlatformShell.so.57
#6  0x00007f461905fd29 in KDevelop::MainWindow::~MainWindow() () from /usr/lib64/libKDevPlatformShell.so.57
#7  0x00007f4616135dc5 in QObject::event(QEvent*) () from /usr/lib64/libQt5Core.so.5
#8  0x00007f4617af5d8b in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#9  0x00007f4617c04c50 in QMainWindow::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#10 0x00007f4612533364 in KMainWindow::event(QEvent*) () from /usr/lib64/libKF5XmlGui.so.5
#11 0x00007f4612579d37 in KXmlGuiWindow::event(QEvent*) () from /usr/lib64/libKF5XmlGui.so.5
#12 0x00007f4617ab53bc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#13 0x00007f4617abc1a0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#14 0x00007f4616101c23 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#15 0x00007f4616104641 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQt5Core.so.5
#16 0x00007f4616164983 in ?? () from /usr/lib64/libQt5Core.so.5
#17 0x00007f460d04c82b in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#18 0x00007f460d04cbd0 in ?? () from /usr/lib64/libglib-2.0.so.0
#19 0x00007f460d04cc5c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#20 0x00007f461616402c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#21 0x00007f461610048a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#22 0x00007f4616109cc7 in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#23 0x000055dfa6e0c101 in ?? ()
#24 0x00007f461584424d in __libc_start_main () from /lib64/libc.so.6
#25 0x000055dfa6e0caba in ?? ()
A debugging session is active.

	Inferior 1 [process 1969] will be detached.

Quit anyway? (y or n) [answered Y; input not from terminal]
[Inferior 1 (process 1969) detached]
Comment 3 Igor Kushnir 2023-07-27 09:02:21 UTC
Looks like a duplicate of a long-standing issue, which I have (almost?) never experienced myself. One more workaround you could try is creating a new session via `kdevelop -n test-session`.

*** This bug has been marked as a duplicate of bug 379669 ***