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

Thomas Eschenbacher <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #6 from Thomas Eschenbacher <[email protected]> ---
any news on this?

I sporadically observe the same, when editing a C/C++ project based on cmake
and currently using clang.
I attached via gdb and see 39 threads. 32 of them probably belong to the
background parser and should be inactive (otherwise I would see activity in
xosview).

* 1    Thread 0x7fa450aa4240 (LWP 3346350) "kdevelop"        0x00007fa46589ee37
in ?? () from /usr/lib64/libc.so.6
....
  22   Thread 0x7fa3c1ffb6c0 (LWP 3346494) "Queue(0x555e6e2" 0x00007fa4690251ef
in Utils::SetRepositoryAlgorithms::computeSetFromNodes(unsigned int, unsigned
int, Utils::SetNodeData const*, Utils::SetNodeData const*, unsigned char) ()
   from /usr/lib64/libKDevPlatformLanguage.so.65
...
  35   Thread 0x7fa410bff6c0 (LWP 3346419) "KDevelop::Compl" 0x00007fa4658aa422
in ?? () from /usr/lib64/libc.so.6
  36   Thread 0x7fa4249fa6c0 (LWP 3346366) "OutputFilterThr" 0x00007fa4658aa422
in ?? () from /usr/lib64/libc.so.6
  37   Thread 0x7fa4251fb6c0 (LWP 3346364) "QThread"         0x00007fa4659212dd
in syscall () from /usr/lib64/libc.so.6
  38   Thread 0x7fa448ffe6c0 (LWP 3346353) "QXcbEventQueue"  0x00007fa4658aa422
in ?? () from /usr/lib64/libc.so.6
  39   Thread 0x7fa4497ff6c0 (LWP 3346352) "QDBusConnection" 0x00007fa4658aa422
in ?? () from /usr/lib64/libc.so.6

Thread 22 looks suspicious, here the backtrace:

(gdb) thr 22
[Switching to thread 22 (Thread 0x7fa3c1ffb6c0 (LWP 3346494))]
#0  0x00007fa4690251ef in
Utils::SetRepositoryAlgorithms::computeSetFromNodes(unsigned int, unsigned int,
Utils::SetNodeData const*, Utils::SetNodeData const*, unsigned char) () from
/usr/lib64/libKDevPlatformLanguage.so.65
(gdb) back
#0  0x00007fa4690251ef in
Utils::SetRepositoryAlgorithms::computeSetFromNodes(unsigned int, unsigned int,
Utils::SetNodeData const*, Utils::SetNodeData const*, unsigned char) () at
/usr/lib64/libKDevPlatformLanguage.so.65
#1  0x00007fa46902578b in Utils::SetRepositoryAlgorithms::set_union(unsigned
int, unsigned int, Utils::SetNodeData const*, Utils::SetNodeData const*,
unsigned char) () at /usr/lib64/libKDevPlatformLanguage.so.65
#2  0x00007fa46902578b in Utils::SetRepositoryAlgorithms::set_union(unsigned
int, unsigned int, Utils::SetNodeData const*, Utils::SetNodeData const*,
unsigned char) () at /usr/lib64/libKDevPlatformLanguage.so.65
#3  0x00007fa469025b5a in Utils::Set::operator+=(Utils::Set const&) () at
/usr/lib64/libKDevPlatformLanguage.so.65
#4  0x00007fa468e8ff91 in
KDevelop::ModificationRevisionSet::operator+=(KDevelop::ModificationRevisionSet
const&) ()
    at /usr/lib64/libKDevPlatformLanguage.so.65
#5  0x00007fa41372df4b 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&) () at
/usr/lib64/libKDevClangPrivate.so.65
#6  0x00007fa41372d7e1 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&) () at
/usr/lib64/libKDevClangPrivate.so.65
#7  0x00007fa413a2a5ce in
ClangParseJob::run(QSharedPointer<ThreadWeaver::JobInterface>,
ThreadWeaver::Thread*) ()
    at /usr/lib64/qt6/plugins/kdevplatform/65/kdevclangsupport.so
#8  0x00007fa46ad77699 in ThreadWeaver::IdDecorator::run (this=<optimized out>,
self=..., thread=0x7fa3ac0012e0)
    at
/tmp/portage/kde-frameworks/threadweaver-6.27.0/work/threadweaver-6.27.0/src/iddecorator.cpp:50
#9  0x00007fa46ad76e4d in ThreadWeaver::Executor::run (this=<optimized out>,
job=<optimized out>, thread=<optimized out>)
    at
/tmp/portage/kde-frameworks/threadweaver-6.27.0/work/threadweaver-6.27.0/src/executor.cpp:29
#10 0x00007fa46ad79054 in ThreadWeaver::Job::execute (this=<optimized out>,
self=..., th=0x7fa3ac0012e0)
    at
/tmp/portage/kde-frameworks/threadweaver-6.27.0/work/threadweaver-6.27.0/src/job.cpp:64
#11 0x00007fa46ad7fbe8 in ThreadWeaver::Thread::run (this=0x7fa3ac0012e0)
    at
/tmp/portage/kde-frameworks/threadweaver-6.27.0/work/threadweaver-6.27.0/src/thread.cpp:94
#12 0x00007fa4650430de in QThreadPrivate::start (arg=0x7fa3ac0012e0)
    at
/tmp/portage/dev-qt/qtbase-6.11.1/work/qtbase-everywhere-src-6.11.1/src/corelib/thread/qthread_unix.cpp:466
#13 0x00007fa4658a2303 in ??? () at /usr/lib64/libc.so.6
#14 0x00007fa4659235bc in ??? () at /usr/lib64/libc.so.6

I will try to disable "clang" support in the settings of kdevelop if I find it
...
(using kdevelop Version 6.5.260403 (26.04.3) on Gentoo Linux)

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

Reply via email to