Bug 441881 - KSysGuard Crashes When Closing
Summary: KSysGuard Crashes When Closing
Status: REPORTED
Alias: None
Product: ksysguard
Classification: Applications
Component: general (show other bugs)
Version: 5.21.5
Platform: Debian testing Linux
: NOR crash
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2021-09-01 22:01 UTC by tonywahl
Modified: 2021-09-17 09:09 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Another crashlog of a similar incident (3.76 KB, text/vnd.kde.kcrash-report)
2021-09-01 22:13 UTC, tonywahl
Details
New crash information added by DrKonqi (4.75 KB, text/plain)
2021-09-17 09:09 UTC, Pavel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tonywahl 2021-09-01 22:01:33 UTC
Application: ksysguard (5.21.5)

Qt Version: 5.15.2
Frameworks Version: 5.83.0
Operating System: Linux 5.10.0-8-amd64 x86_64
Windowing System: X11
Drkonqi Version: 5.21.5
Distribution: Debian GNU/Linux bookworm/sid

-- Information about the crash:
- What I was doing when the application crashed:

I pressed the "x" button to close the program and apparently it crashed as it closed. I had just used KSysGuard to change the CPU priority of Handbrake to (Batch) 19. I don't know if it's relevant but I did it while it was encoding with a few other programs open (Vivaldi, KTorrent, Discord, Steam) so CPU usage was about 100%. I also opened both Handbrake and KSysGuard from KRunner.

The crash can be reproduced sometimes.

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

[KCrash Handler]
#4  0x00007f047f5b87a9 in operator== (s1=..., s2=...) at text/qstring.cpp:3437
#5  0x00007f04804942b5 in QLabel::setText (this=0x55db474b22e0, text=...) at widgets/qlabel.cpp:323
#6  0x00007f048120af6b in ?? () from /lib/x86_64-linux-gnu/libkdeinit5_ksysguard.so
#7  0x00007f0480f75b12 in KSGRD::SensorAgent::processAnswer (this=0x55db47862ed0, buf=<optimized out>, buflen=<optimized out>) at ./ksgrd/SensorAgent.cpp:186
#8  0x00007f0480f7c081 in KSGRD::SensorShellAgent::msgRcvd (this=0x55db47862ed0) at ./ksgrd/SensorShellAgent.cpp:93
#9  0x00007f047f74d5a6 in QtPrivate::QSlotObjectBase::call (a=0x7ffd794ab150, r=0x55db47862ed0, this=0x55db4786d8d0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#10 doActivate<false> (sender=0x55db478618e0, signal_index=15, argv=argv@entry=0x7ffd794ab150) at kernel/qobject.cpp:3886
#11 0x00007f047f746900 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f047f9aad80 <QProcess::staticMetaObject>, local_signal_index=local_signal_index@entry=6, argv=argv@entry=0x7ffd794ab150) at kernel/qobject.cpp:3946
#12 0x00007f047f68422d in QProcess::readyReadStandardOutput (this=<optimized out>, _t1=...) at .moc/moc_qprocess.cpp:367
#13 0x00007f047f6897ed in QProcessPrivate::tryReadFromChannel (this=0x55db4746b280, channel=0x55db4746b390) at io/qprocess.cpp:1073
#14 0x00007f047f689d25 in QProcessPrivate::_q_canReadStandardError (this=<optimized out>) at io/qprocess.cpp:1092
#15 QProcess::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x7ffd794ab300) at .moc/moc_qprocess.cpp:210
#16 0x00007f047f74d5e0 in doActivate<false> (sender=0x55db47a7d9a0, signal_index=3, argv=argv@entry=0x7ffd794ab300) at kernel/qobject.cpp:3898
#17 0x00007f047f746900 in QMetaObject::activate (sender=sender@entry=0x55db47a7d9a0, m=m@entry=0x7f047f9ad160 <QSocketNotifier::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffd794ab300) at kernel/qobject.cpp:3946
#18 0x00007f047f7509df in QSocketNotifier::activated (this=this@entry=0x55db47a7d9a0, _t1=..., _t2=<optimized out>, _t3=...) at .moc/moc_qsocketnotifier.cpp:178
#19 0x00007f047f7511db in QSocketNotifier::event (this=0x55db47a7d9a0, e=0x7ffd794ab410) at kernel/qsocketnotifier.cpp:302
#20 0x00007f048036015f in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55db47a7d9a0, e=0x7ffd794ab410) at kernel/qapplication.cpp:3632
#21 0x00007f047f716fca in QCoreApplication::notifyInternal2 (receiver=0x55db47a7d9a0, event=0x7ffd794ab410) at kernel/qcoreapplication.cpp:1063
#22 0x00007f047f76f0d5 in socketNotifierSourceDispatch (source=0x55db46ee0670) at kernel/qeventdispatcher_glib.cpp:107
#23 0x00007f047577f85b in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007f047577fb08 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007f047577fbbf in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007f047f76e51f in QEventDispatcherGlib::processEvents (this=0x55db46ee1cd0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#27 0x00007f047f71598b in QEventLoop::exec (this=this@entry=0x7ffd794ab620, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#28 0x00007f047f71dc00 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#29 0x00007f048120c06f in kdemain () from /lib/x86_64-linux-gnu/libkdeinit5_ksysguard.so
#30 0x00007f0481003d0a in __libc_start_main (main=0x55db4592b050, argc=1, argv=0x7ffd794ab848, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd794ab838) at ../csu/libc-start.c:308
#31 0x000055db4592b08a in _start ()
[Inferior 1 (process 24511) detached]

Possible duplicates by query: bug 422092, bug 419229, bug 416379, bug 410586, bug 353672.

Reported using DrKonqi
Comment 1 tonywahl 2021-09-01 22:13:40 UTC
Created attachment 141232 [details]
Another crashlog of a similar incident
Comment 2 Pavel 2021-09-17 09:09:02 UTC
Created attachment 141642 [details]
New crash information added by DrKonqi

ksysguard (5.22.0) using Qt 5.15.2

- What I was doing when the application crashed:
Closed ksysguard as usual. It reproduces in about 30% of the times I open and close ksysguard.

-- Backtrace (Reduced):
#6  0x00007f9321d02849 in QLabelPrivate::clearContents (this=this@entry=0x55c0b071a2e0) at widgets/qlabel.cpp:1386
#7  0x00007f9321d033ea in QLabel::setText (this=0x55c0b064b790, text=...) at widgets/qlabel.cpp:329
#8  0x000055c0ae67222a in TopLevel::answerReceived (this=0x55c0b0284000, id=<optimized out>, answerList=...) at /usr/src/debug/ksysguard5-5.22.0-2.1.x86_64/gui/ksysguard.cpp:466
#9  0x00007f93228f3b9e in KSGRD::SensorAgent::processAnswer (this=0x55c0b0646d50, buf=<optimized out>, buflen=<optimized out>) at /usr/src/debug/libksysguard5-5.22.5-1.1.x86_64/ksgrd/SensorAgent.cpp:306
#10 0x00007f93228f7a0c in KSGRD::SensorShellAgent::msgRcvd (this=0x55c0b0646d50) at /usr/src/debug/libksysguard5-5.22.5-1.1.x86_64/ksgrd/SensorShellAgent.cpp:93