Bug 431155

Summary: System Monitor crahes when viewing process list
Product: [Applications] plasma-systemmonitor Reporter: Oded Arbel <oded>
Component: generalAssignee: KSysGuard Developers <ksysguard-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: ahiemstra, kde, plasma-bugs
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Oded Arbel 2021-01-04 17:51:56 UTC
Application: plasma-systemmonitor (5.20.80)

Qt Version: 5.15.2
Frameworks Version: 5.78.0
Operating System: Linux 5.8.0-33-generic x86_64
Windowing system: X11
Distribution: Ubuntu 20.10

-- Information about the crash:
- What I was doing when the application crashed:
 
I was looking at the default process list view and scolling back and forth while processes where starting and ending.

-- Backtrace:
Application: System Monitor (plasma-systemmonitor), signal: Segmentation fault

[New LWP 1440938]
[New LWP 1440942]
[New LWP 1440951]
[New LWP 1440952]
[New LWP 1440953]
[New LWP 1440954]
[New LWP 1440955]
[New LWP 1440956]
[New LWP 1440957]
[New LWP 1440958]
[New LWP 1440975]
[New LWP 1440976]
[New LWP 1440981]
[New LWP 1440998]
[New LWP 1440999]
[New LWP 1441000]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f3082f5f66f in __GI___poll (fds=0x7ffffebb2768, nfds=1, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
[Current thread is 1 (Thread 0x7f307fbc0840 (LWP 1440936))]

Thread 17 (Thread 0x7f3029ce5640 (LWP 1441000)):
#0  __GI___libc_read (nbytes=16, buf=0x7f3029ce4ab0, fd=33) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=33, buf=buf@entry=0x7f3029ce4ab0, nbytes=nbytes@entry=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007f3081f66abf in read (__nbytes=16, __buf=0x7f3029ce4ab0, __fd=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/unistd.h:46
#3  g_wakeup_acknowledge (wakeup=0x7f30240047c0) at ../../../glib/gwakeup.c:210
#4  0x00007f3081f1923b in g_main_context_check (context=context@entry=0x7f3020000c20, max_priority=2147483647, fds=fds@entry=0x7f3020004e60, n_fds=n_fds@entry=1) at ../../../glib/gmain.c:3857
#5  0x00007f3081f196c5 in g_main_context_iterate (context=context@entry=0x7f3020000c20, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4089
#6  0x00007f3081f19853 in g_main_context_iteration (context=0x7f3020000c20, may_block=may_block@entry=1) at ../../../glib/gmain.c:4157
#7  0x00007f308352afbb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f3020000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#8  0x00007f30834cf1ab in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f3029ce4cc0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#9  0x00007f30832e9a12 in QThread::exec() (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#10 0x00007f30832eabac in QThreadPrivate::start(void*) (arg=0x56169e8deac0) at thread/qthread_unix.cpp:329
#11 0x00007f3082c67590 in start_thread (arg=0x7f3029ce5640) at pthread_create.c:463
#12 0x00007f3082f6b223 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 16 (Thread 0x7f302a4e6640 (LWP 1440999)):
#0  0x00007f3082f5f66f in __GI___poll (fds=0x56169ee10d30, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f3081f1971e in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x56169ee10d30, timeout=<optimized out>, context=0x56169ee0ed60) at ../../../glib/gmain.c:4395
#2  g_main_context_iterate (context=0x56169ee0ed60, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4087
#3  0x00007f3081f19aa3 in g_main_loop_run (loop=0x56169ee0ee50) at ../../../glib/gmain.c:4290
#4  0x00007f30396f68aa in gdbus_shared_thread_func (user_data=0x56169ee0ed30) at ../../../gio/gdbusprivate.c:280
#5  0x00007f3081f431b1 in g_thread_proxy (data=0x56169ee076a0) at ../../../glib/gthread.c:820
#6  0x00007f3082c67590 in start_thread (arg=0x7f302a4e6640) at pthread_create.c:463
#7  0x00007f3082f6b223 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 15 (Thread 0x7f3038f31640 (LWP 1440998)):
#0  0x00007f3082f5f66f in __GI___poll (fds=0x56169ede1290, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f3081f1971e in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x56169ede1290, timeout=<optimized out>, context=0x56169edff260) at ../../../glib/gmain.c:4395
#2  g_main_context_iterate (context=context@entry=0x56169edff260, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4087
#3  0x00007f3081f19853 in g_main_context_iteration (context=0x56169edff260, may_block=may_block@entry=1) at ../../../glib/gmain.c:4157
#4  0x00007f3081f198a1 in glib_worker_main (data=<optimized out>) at ../../../glib/gmain.c:6049
#5  0x00007f3081f431b1 in g_thread_proxy (data=0x56169c5bc000) at ../../../glib/gthread.c:820
#6  0x00007f3082c67590 in start_thread (arg=0x7f3038f31640) at pthread_create.c:463
#7  0x00007f3082f6b223 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 14 (Thread 0x7f303affd640 (LWP 1440981)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x56169d352824) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x56169d3527d0, cond=0x56169d3527f8) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x56169d3527f8, mutex=0x56169d3527d0) at pthread_cond_wait.c:638
#3  0x00007f30832f0d1b in QWaitConditionPrivate::wait(QDeadlineTimer) (deadline=..., this=0x56169d3527d0) at thread/qwaitcondition_unix.cpp:146
#4  QWaitCondition::wait(QMutex*, QDeadlineTimer) (this=this@entry=0x56169d87c738, mutex=mutex@entry=0x56169d87c730, deadline=...) at thread/qwaitcondition_unix.cpp:225
#5  0x00007f307da04814 in QSGRenderThreadEventQueue::takeEvent(bool) (wait=true, this=0x56169d87c728) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qdeadlinetimer.h:68
#6  QSGRenderThread::processEventsAndWaitForMore() (this=this@entry=0x56169d87c690) at scenegraph/qsgthreadedrenderloop.cpp:936
#7  0x00007f307da04c89 in QSGRenderThread::run() (this=0x56169d87c690) at scenegraph/qsgthreadedrenderloop.cpp:1053
#8  0x00007f30832eabac in QThreadPrivate::start(void*) (arg=0x56169d87c690) at thread/qthread_unix.cpp:329
#9  0x00007f3082c67590 in start_thread (arg=0x7f303affd640) at pthread_create.c:463
#10 0x00007f3082f6b223 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 13 (Thread 0x7f303bfff640 (LWP 1440976)):
#0  __GI___libc_read (nbytes=16, buf=0x7f303bffeab0, fd=24) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=24, buf=buf@entry=0x7f303bffeab0, nbytes=nbytes@entry=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007f3081f66abf in read (__nbytes=16, __buf=0x7f303bffeab0, __fd=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/unistd.h:46
#3  g_wakeup_acknowledge (wakeup=0x7f3040003940) at ../../../glib/gwakeup.c:210
#4  0x00007f3081f1923b in g_main_context_check (context=context@entry=0x7f3034000c20, max_priority=2147483647, fds=fds@entry=0x7f3034004a60, n_fds=n_fds@entry=1) at ../../../glib/gmain.c:3857
#5  0x00007f3081f196c5 in g_main_context_iterate (context=context@entry=0x7f3034000c20, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4089
#6  0x00007f3081f19853 in g_main_context_iteration (context=0x7f3034000c20, may_block=may_block@entry=1) at ../../../glib/gmain.c:4157
#7  0x00007f308352afbb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f3034000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#8  0x00007f30834cf1ab in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f303bffecc0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#9  0x00007f30832e9a12 in QThread::exec() (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#10 0x00007f30832eabac in QThreadPrivate::start(void*) (arg=0x56169daae3d0) at thread/qthread_unix.cpp:329
#11 0x00007f3082c67590 in start_thread (arg=0x7f303bfff640) at pthread_create.c:463
#12 0x00007f3082f6b223 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 12 (Thread 0x7f3055213640 (LWP 1440975)):
#0  __GI___libc_read (nbytes=16, buf=0x7f3055212ab0, fd=21) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=21, buf=buf@entry=0x7f3055212ab0, nbytes=nbytes@entry=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007f3081f66abf in read (__nbytes=16, __buf=0x7f3055212ab0, __fd=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/unistd.h:46
#3  g_wakeup_acknowledge (wakeup=0x7f303c003e50) at ../../../glib/gwakeup.c:210
#4  0x00007f3081f1923b in g_main_context_check (context=context@entry=0x7f3040000c20, max_priority=2147483647, fds=fds@entry=0x7f3040004a30, n_fds=n_fds@entry=1) at ../../../glib/gmain.c:3857
#5  0x00007f3081f196c5 in g_main_context_iterate (context=context@entry=0x7f3040000c20, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4089
#6  0x00007f3081f19853 in g_main_context_iteration (context=0x7f3040000c20, may_block=may_block@entry=1) at ../../../glib/gmain.c:4157
#7  0x00007f308352afbb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f3040000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#8  0x00007f30834cf1ab in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f3055212cc0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#9  0x00007f30832e9a12 in QThread::exec() (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#10 0x00007f30832eabac in QThreadPrivate::start(void*) (arg=0x56169cbc7510) at thread/qthread_unix.cpp:329
#11 0x00007f3082c67590 in start_thread (arg=0x7f3055213640) at pthread_create.c:463
#12 0x00007f3082f6b223 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 11 (Thread 0x7f3055a24640 (LWP 1440958)):
#0  futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x7f3055a23c30, clockid=1436695440, expected=0, futex_word=0x56169d846c04) at ../sysdeps/nptl/futex-internal.h:320
#1  __pthread_cond_wait_common (abstime=0x7f3055a23c30, clockid=1436695440, mutex=0x56169d846bb0, cond=0x56169d846bd8) at pthread_cond_wait.c:520
#2  __pthread_cond_timedwait (cond=0x56169d846bd8, mutex=0x56169d846bb0, abstime=0x7f3055a23c30) at pthread_cond_wait.c:656
#3  0x00007f30832f0ca8 in QWaitConditionPrivate::wait_relative(QDeadlineTimer) (this=0x56169d846bb0, deadline=...) at thread/qwaitcondition_unix.cpp:136
#4  QWaitConditionPrivate::wait(QDeadlineTimer) (deadline=..., this=0x56169d846bb0) at thread/qwaitcondition_unix.cpp:144
#5  QWaitCondition::wait(QMutex*, QDeadlineTimer) (this=this@entry=0x56169d8433b0, mutex=mutex@entry=0x56169d802e28, deadline=...) at thread/qwaitcondition_unix.cpp:225
#6  0x00007f30832ee1b1 in QThreadPoolThread::run() (this=0x56169d8433a0) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:270
#7  0x00007f30832eabac in QThreadPrivate::start(void*) (arg=0x56169d8433a0) at thread/qthread_unix.cpp:329
#8  0x00007f3082c67590 in start_thread (arg=0x7f3055a24640) at pthread_create.c:463
#9  0x00007f3082f6b223 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 10 (Thread 0x7f3056225640 (LWP 1440957)):
#0  futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x7f3056224c30, clockid=1445088144, expected=0, futex_word=0x56169d8448f4) at ../sysdeps/nptl/futex-internal.h:320
#1  __pthread_cond_wait_common (abstime=0x7f3056224c30, clockid=1445088144, mutex=0x56169d8448a0, cond=0x56169d8448c8) at pthread_cond_wait.c:520
#2  __pthread_cond_timedwait (cond=0x56169d8448c8, mutex=0x56169d8448a0, abstime=0x7f3056224c30) at pthread_cond_wait.c:656
#3  0x00007f30832f0ca8 in QWaitConditionPrivate::wait_relative(QDeadlineTimer) (this=0x56169d8448a0, deadline=...) at thread/qwaitcondition_unix.cpp:136
#4  QWaitConditionPrivate::wait(QDeadlineTimer) (deadline=..., this=0x56169d8448a0) at thread/qwaitcondition_unix.cpp:144
#5  QWaitCondition::wait(QMutex*, QDeadlineTimer) (this=this@entry=0x56169d844200, mutex=mutex@entry=0x56169d802e28, deadline=...) at thread/qwaitcondition_unix.cpp:225
#6  0x00007f30832ee1b1 in QThreadPoolThread::run() (this=0x56169d8441f0) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:270
#7  0x00007f30832eabac in QThreadPrivate::start(void*) (arg=0x56169d8441f0) at thread/qthread_unix.cpp:329
#8  0x00007f3082c67590 in start_thread (arg=0x7f3056225640) at pthread_create.c:463
#9  0x00007f3082f6b223 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7f3056a26640 (LWP 1440956)):
#0  futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x7f3056a25c30, clockid=1453480848, expected=0, futex_word=0x56169d8445c0) at ../sysdeps/nptl/futex-internal.h:320
#1  __pthread_cond_wait_common (abstime=0x7f3056a25c30, clockid=1453480848, mutex=0x56169d844570, cond=0x56169d844598) at pthread_cond_wait.c:520
#2  __pthread_cond_timedwait (cond=0x56169d844598, mutex=0x56169d844570, abstime=0x7f3056a25c30) at pthread_cond_wait.c:656
#3  0x00007f30832f0ca8 in QWaitConditionPrivate::wait_relative(QDeadlineTimer) (this=0x56169d844570, deadline=...) at thread/qwaitcondition_unix.cpp:136
#4  QWaitConditionPrivate::wait(QDeadlineTimer) (deadline=..., this=0x56169d844570) at thread/qwaitcondition_unix.cpp:144
#5  QWaitCondition::wait(QMutex*, QDeadlineTimer) (this=this@entry=0x56169d331c20, mutex=mutex@entry=0x56169d802e28, deadline=...) at thread/qwaitcondition_unix.cpp:225
#6  0x00007f30832ee1b1 in QThreadPoolThread::run() (this=0x56169d331c10) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:270
#7  0x00007f30832eabac in QThreadPrivate::start(void*) (arg=0x56169d331c10) at thread/qthread_unix.cpp:329
#8  0x00007f3082c67590 in start_thread (arg=0x7f3056a26640) at pthread_create.c:463
#9  0x00007f3082f6b223 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7f3057227640 (LWP 1440955)):
#0  futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x7f3057226c30, clockid=1461873552, expected=0, futex_word=0x56169d846590) at ../sysdeps/nptl/futex-internal.h:320
#1  __pthread_cond_wait_common (abstime=0x7f3057226c30, clockid=1461873552, mutex=0x56169d846540, cond=0x56169d846568) at pthread_cond_wait.c:520
#2  __pthread_cond_timedwait (cond=0x56169d846568, mutex=0x56169d846540, abstime=0x7f3057226c30) at pthread_cond_wait.c:656
#3  0x00007f30832f0ca8 in QWaitConditionPrivate::wait_relative(QDeadlineTimer) (this=0x56169d846540, deadline=...) at thread/qwaitcondition_unix.cpp:136
#4  QWaitConditionPrivate::wait(QDeadlineTimer) (deadline=..., this=0x56169d846540) at thread/qwaitcondition_unix.cpp:144
#5  QWaitCondition::wait(QMutex*, QDeadlineTimer) (this=this@entry=0x56169d845f70, mutex=mutex@entry=0x56169d802e28, deadline=...) at thread/qwaitcondition_unix.cpp:225
#6  0x00007f30832ee1b1 in QThreadPoolThread::run() (this=0x56169d845f60) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:270
#7  0x00007f30832eabac in QThreadPrivate::start(void*) (arg=0x56169d845f60) at thread/qthread_unix.cpp:329
#8  0x00007f3082c67590 in start_thread (arg=0x7f3057227640) at pthread_create.c:463
#9  0x00007f3082f6b223 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7f3065264640 (LWP 1440954)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x56169ca509f8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x56169ca509a8, cond=0x56169ca509d0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x56169ca509d0, mutex=0x56169ca509a8) at pthread_cond_wait.c:638
#3  0x00007f306aeaa61b in cnd_wait (mtx=0x56169ca509a8, cond=0x56169ca509d0) at ../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input@entry=0x56169c8edf30) at ../src/util/u_queue.c:289
#5  0x00007f306aeaa0db in impl_thrd_routine (p=<optimized out>) at ../include/c11/threads_posix.h:87
#6  0x00007f3082c67590 in start_thread (arg=0x7f3065264640) at pthread_create.c:463
#7  0x00007f3082f6b223 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7f3065a65640 (LWP 1440953)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x56169ca509f8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x56169ca509a8, cond=0x56169ca509d0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x56169ca509d0, mutex=0x56169ca509a8) at pthread_cond_wait.c:638
#3  0x00007f306aeaa61b in cnd_wait (mtx=0x56169ca509a8, cond=0x56169ca509d0) at ../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input@entry=0x56169caac6e0) at ../src/util/u_queue.c:289
#5  0x00007f306aeaa0db in impl_thrd_routine (p=<optimized out>) at ../include/c11/threads_posix.h:87
#6  0x00007f3082c67590 in start_thread (arg=0x7f3065a65640) at pthread_create.c:463
#7  0x00007f3082f6b223 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f3074b26640 (LWP 1440952)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x56169ca509f8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x56169ca509a8, cond=0x56169ca509d0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x56169ca509d0, mutex=0x56169ca509a8) at pthread_cond_wait.c:638
#3  0x00007f306aeaa61b in cnd_wait (mtx=0x56169ca509a8, cond=0x56169ca509d0) at ../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input@entry=0x56169c93e090) at ../src/util/u_queue.c:289
#5  0x00007f306aeaa0db in impl_thrd_routine (p=<optimized out>) at ../include/c11/threads_posix.h:87
#6  0x00007f3082c67590 in start_thread (arg=0x7f3074b26640) at pthread_create.c:463
#7  0x00007f3082f6b223 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f3075327640 (LWP 1440951)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x56169ca509f8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x56169ca509a8, cond=0x56169ca509d0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x56169ca509d0, mutex=0x56169ca509a8) at pthread_cond_wait.c:638
#3  0x00007f306aeaa61b in cnd_wait (mtx=0x56169ca509a8, cond=0x56169ca509d0) at ../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input@entry=0x56169cac75e0) at ../src/util/u_queue.c:289
#5  0x00007f306aeaa0db in impl_thrd_routine (p=<optimized out>) at ../include/c11/threads_posix.h:87
#6  0x00007f3082c67590 in start_thread (arg=0x7f3075327640) at pthread_create.c:463
#7  0x00007f3082f6b223 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f30775ef640 (LWP 1440942)):
#0  0x00007f3082f5f66f in __GI___poll (fds=0x7f306c004a60, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f3081f1971e in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7f306c004a60, timeout=<optimized out>, context=0x7f306c000c20) at ../../../glib/gmain.c:4395
#2  g_main_context_iterate (context=context@entry=0x7f306c000c20, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4087
#3  0x00007f3081f19853 in g_main_context_iteration (context=0x7f306c000c20, may_block=may_block@entry=1) at ../../../glib/gmain.c:4157
#4  0x00007f308352afbb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f306c000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f30834cf1ab in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f30775eeca0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#6  0x00007f30832e9a12 in QThread::exec() (this=this@entry=0x56169c775bb0) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#7  0x00007f3084b9cfa9 in QQmlThreadPrivate::run() (this=0x56169c775bb0) at qml/ftw/qqmlthread.cpp:155
#8  0x00007f30832eabac in QThreadPrivate::start(void*) (arg=0x56169c775bb0) at thread/qthread_unix.cpp:329
#9  0x00007f3082c67590 in start_thread (arg=0x7f30775ef640) at pthread_create.c:463
#10 0x00007f3082f6b223 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f307cee0640 (LWP 1440938)):
#0  __GI___libc_read (nbytes=16, buf=0x7f307cedfa80, fd=7) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=7, buf=buf@entry=0x7f307cedfa80, nbytes=nbytes@entry=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007f3081f66abf in read (__nbytes=16, __buf=0x7f307cedfa80, __fd=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/unistd.h:46
#3  g_wakeup_acknowledge (wakeup=0x56169c70c1b0) at ../../../glib/gwakeup.c:210
#4  0x00007f3081f1923b in g_main_context_check (context=context@entry=0x7f3070000c20, max_priority=2147483647, fds=fds@entry=0x7f3070004e60, n_fds=n_fds@entry=1) at ../../../glib/gmain.c:3857
#5  0x00007f3081f196c5 in g_main_context_iterate (context=context@entry=0x7f3070000c20, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4089
#6  0x00007f3081f19853 in g_main_context_iteration (context=0x7f3070000c20, may_block=may_block@entry=1) at ../../../glib/gmain.c:4157
#7  0x00007f308352afbb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f3070000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#8  0x00007f30834cf1ab in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f307cedfc90, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#9  0x00007f30832e9a12 in QThread::exec() (this=this@entry=0x7f3083810d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#10 0x00007f308378cf4b in QDBusConnectionManager::run() (this=0x7f3083810d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:179
#11 0x00007f30832eabac in QThreadPrivate::start(void*) (arg=0x7f3083810d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:329
#12 0x00007f3082c67590 in start_thread (arg=0x7f307cee0640) at pthread_create.c:463
#13 0x00007f3082f6b223 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f307fbc0840 (LWP 1440936)):
[KCrash Handler]
#4  QSortFilterProxyModelPrivate::proxy_to_source(QModelIndex const&) const (this=0x56169eee1590, proxy_index=...) at ../../include/QtCore/../../src/corelib/itemmodels/qabstractitemmodel.h:62
#5  0x00007f308349f91d in QSortFilterProxyModel::mapToSource(QModelIndex const&) const (proxyIndex=..., this=0x56169eb55ef0) at itemmodels/qsortfilterproxymodel.cpp:3125
#6  QSortFilterProxyModelPrivate::store_persistent_indexes() const (this=<optimized out>) at itemmodels/qsortfilterproxymodel.cpp:1220
#7  0x00007f30834a7843 in QSortFilterProxyModelPrivate::_q_sourceDataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) (this=0x56169eee1590, source_top_left=..., source_bottom_right=..., roles=...) at itemmodels/qsortfilterproxymodel.cpp:1466
#8  0x00007f30834a8eea in QSortFilterProxyModel::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at itemmodels/qsortfilterproxymodel.h:199
#9  0x00007f30835076f0 in doActivate<false>(QObject*, int, void**) (sender=0x56169eee2000, signal_index=3, argv=0x7ffffebb3410) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:395
#10 0x00007f3083500a87 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=sender@entry=0x56169eee2000, m=m@entry=0x7f3083769040 <QAbstractItemModel::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffffebb3410) at kernel/qobject.cpp:3946
#11 0x00007f30834727d9 in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) (this=this@entry=0x56169eee2000, _t1=..., _t2=..., _t3=...) at .moc/moc_qabstractitemmodel.cpp:557
#12 0x00007f3083499991 in QIdentityProxyModelPrivate::_q_sourceDataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) (this=<optimized out>, topLeft=..., bottomRight=..., roles=...) at ../../include/QtCore/../../src/corelib/itemmodels/qabstractitemmodel.h:60
#13 0x00007f308349b186 in QIdentityProxyModel::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_c=QMetaObject::InvokeMetaMethod, _a=<optimized out>, _id=<optimized out>, _o=<optimized out>) at itemmodels/qidentityproxymodel.h:87
#14 QIdentityProxyModel::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at .moc/moc_qidentityproxymodel.cpp:146
#15 0x00007f30835076f0 in doActivate<false>(QObject*, int, void**) (sender=0x56169eee25a0, signal_index=3, argv=0x7ffffebb3600) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:395
#16 0x00007f3083500a87 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=sender@entry=0x56169eee25a0, m=m@entry=0x7f3083769040 <QAbstractItemModel::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffffebb3600) at kernel/qobject.cpp:3946
#17 0x00007f30834727d9 in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) (this=this@entry=0x56169eee25a0, _t1=..., _t2=..., _t3=...) at .moc/moc_qabstractitemmodel.cpp:557
#18 0x00007f3083499991 in QIdentityProxyModelPrivate::_q_sourceDataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) (this=<optimized out>, topLeft=..., bottomRight=..., roles=...) at ../../include/QtCore/../../src/corelib/itemmodels/qabstractitemmodel.h:60
#19 0x00007f308349b186 in QIdentityProxyModel::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_c=QMetaObject::InvokeMetaMethod, _a=<optimized out>, _id=<optimized out>, _o=<optimized out>) at itemmodels/qidentityproxymodel.h:87
#20 QIdentityProxyModel::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at .moc/moc_qidentityproxymodel.cpp:146
#21 0x00007f30835076f0 in doActivate<false>(QObject*, int, void**) (sender=0x56169eee2dd0, signal_index=3, argv=0x7ffffebb37f0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:395
#22 0x00007f3083500a87 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=<optimized out>, m=m@entry=0x7f3083769040 <QAbstractItemModel::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffffebb37f0) at kernel/qobject.cpp:3946
#23 0x00007f30834727d9 in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) (this=<optimized out>, _t1=..., _t2=..., _t3=...) at .moc/moc_qabstractitemmodel.cpp:557
#24 0x00007f3039b75cc3 in  () at /usr/lib/x86_64-linux-gnu/libprocesscore.so.9
#25 0x00007f30835076be in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffffebb3970, r=0x56169eee2dd0, this=0x56169f0a9590) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#26 doActivate<false>(QObject*, int, void**) (sender=0x56169eeee160, signal_index=3, argv=0x7ffffebb3970) at kernel/qobject.cpp:3886
#27 0x00007f3039b51473 in KSysGuard::ProcessAttribute::dataChanged(KSysGuard::Process*) () at /usr/lib/x86_64-linux-gnu/libprocesscore.so.9
#28 0x00007f30835076be in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffffebb3a90, r=0x56169eeee160, this=0x56169e91fbe0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#29 doActivate<false>(QObject*, int, void**) (sender=0x56169eee2f10, signal_index=3, argv=0x7ffffebb3a90) at kernel/qobject.cpp:3886
#30 0x00007f3039b51671 in KSysGuard::Processes::processChanged(KSysGuard::Process*, bool) () at /usr/lib/x86_64-linux-gnu/libprocesscore.so.9
#31 0x00007f3039b62c95 in KSysGuard::Processes::processUpdated(long, QVector<QPair<KSysGuard::Process::Change, QVariant> > const&) () at /usr/lib/x86_64-linux-gnu/libprocesscore.so.9
#32 0x00007f30835076be in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffffebb3c10, r=0x56169eee2f10, this=0x56169eeeb580) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#33 doActivate<false>(QObject*, int, void**) (sender=0x56169eee3310, signal_index=4, argv=0x7ffffebb3c10) at kernel/qobject.cpp:3886
#34 0x00007f3039b517bb in  () at /usr/lib/x86_64-linux-gnu/libprocesscore.so.9
#35 0x00007f3039b67712 in  () at /usr/lib/x86_64-linux-gnu/libprocesscore.so.9
#36 0x00007f30834fe239 in QObject::event(QEvent*) (this=0x56169eee3310, e=0x7f3044011080) at kernel/qobject.cpp:1314
#37 0x00007f3084047dc3 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#38 0x00007f3084050bb8 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#39 0x00007f30834d069a in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x56169eee3310, event=0x7f3044011080) at ../../include/QtCore/5.15.2/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#40 0x00007f30834d2fa1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x56169c5c3b20) at kernel/qcoreapplication.cpp:1817
#41 0x00007f308352b947 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x56169c701ce0) at kernel/qeventdispatcher_glib.cpp:277
#42 0x00007f3081f194db in g_main_dispatch (context=0x7f3078005000) at ../../../glib/gmain.c:3325
#43 g_main_context_dispatch (context=0x7f3078005000) at ../../../glib/gmain.c:4016
#44 0x00007f3081f19788 in g_main_context_iterate (context=context@entry=0x7f3078005000, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4092
#45 0x00007f3081f19853 in g_main_context_iteration (context=0x7f3078005000, may_block=may_block@entry=1) at ../../../glib/gmain.c:4157
#46 0x00007f308352afa2 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x56169c6f9960, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#47 0x00007f30834cf1ab in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffffebb4210, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#48 0x00007f30834d7354 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#49 0x000056169bbe1fd2 in  ()
#50 0x00007f3082e7acb2 in __libc_start_main (main=0x56169bbe14a0, argc=1, argv=0x7ffffebb4588, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffffebb4578) at ../csu/libc-start.c:314
#51 0x000056169bbe227e in  ()
[Inferior 1 (process 1440936) detached]

Possible duplicates by query: bug 323576, bug 275662, bug 273653, bug 259161, bug 178201.

Reported using DrKonqi
Comment 1 Arjen Hiemstra 2021-02-12 10:28:08 UTC
Git commit 9807db5c976a9068b52d1284a1788d5aaaf9d03a by Arjen Hiemstra.
Committed on 11/02/2021 at 11:57.
Pushed by ahiemstra into branch 'master'.

Don't emit dataChanged for invalid indices

getQModelIndex can return an invalid index. If that happens, we emit
dataChanged for an invalid index, which is incorrect and may cause
errors in other models.

M  +3    -1    processcore/process_data_model.cpp

https://invent.kde.org/plasma/libksysguard/commit/9807db5c976a9068b52d1284a1788d5aaaf9d03a
Comment 2 Arjen Hiemstra 2021-02-12 10:28:31 UTC
Git commit 7c46d893a14e04a17cae446dd1b71643c76a72bf by Arjen Hiemstra.
Committed on 12/02/2021 at 10:28.
Pushed by ahiemstra into branch 'Plasma/5.21'.

Don't emit dataChanged for invalid indices

getQModelIndex can return an invalid index. If that happens, we emit
dataChanged for an invalid index, which is incorrect and may cause
errors in other models.


(cherry picked from commit 9807db5c976a9068b52d1284a1788d5aaaf9d03a)

M  +3    -1    processcore/process_data_model.cpp

https://invent.kde.org/plasma/libksysguard/commit/7c46d893a14e04a17cae446dd1b71643c76a72bf
Comment 3 David Edmundson 2021-02-18 10:34:34 UTC
Lets assume that fixes it, but keep an eye on it.

Please reopen if you have issues in 5.21.1
Comment 4 Oded Arbel 2021-02-18 13:37:10 UTC
I can't say I know exactly what caused this issue, but I did try some more repro and this hadn't reproduced for me for a while, so closing for now.