Bug 444826 - plasma-systemmonitor crash in KSysGuard::Process::children() const()
Summary: plasma-systemmonitor crash in KSysGuard::Process::children() const()
Status: RESOLVED WORKSFORME
Alias: None
Product: plasma-systemmonitor
Classification: Applications
Component: general (show other bugs)
Version: 5.23.2
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-02 13:04 UTC by Julien Delquié
Modified: 2021-12-08 04:35 UTC (History)
3 users (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 Julien Delquié 2021-11-02 13:04:01 UTC
SUMMARY

When I filter process in plasma-systemmonitor, and if I kill a process with many sub-processes, 

STEPS TO REPRODUCE
1. Launch plasma-systemmonitor
2. Filter processes
3. Kill a process with many sub-processes

OBSERVED RESULT

Processes are killed but plasma-systemmonitor crashes.

EXPECTED RESULT

Processes are killed and plasma-systemmonitor still run without any issue.

SOFTWARE/OS VERSIONS

Application: plasma-systemmonitor (5.23.2)

Operating System: Gentoo Linux
KDE Plasma Version: 5.23.2
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2
Kernel Version: 5.15.0-gentoo-x86_64 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-9700K CPU @ 3.60GHz
Memory: 31.3 Gio of RAM
Graphics Processor: NVIDIA GeForce GTX 1660 Ti/PCIe/SSE2

ADDITIONAL INFORMATION

[KCrash Handler]
#4  0x00007f31d0552500 in KSysGuard::Process::children() const () from /usr/lib64/libprocesscore.so.9
#5  0x00007f31d055fa3f in ?? () from /usr/lib64/libprocesscore.so.9
#6  0x00007f31d055fb01 in KSysGuard::ProcessDataModel::parent(QModelIndex const&) const () from /usr/lib64/libprocesscore.so.9
#7  0x00007f31f83f7b1e in QIdentityProxyModel::parent(QModelIndex const&) const () from /usr/lib64/libQt5Core.so.5
#8  0x00007f31f83f7b1e in QIdentityProxyModel::parent(QModelIndex const&) const () from /usr/lib64/libQt5Core.so.5
#9  0x00007f31f83d81ce in QAbstractItemModelPrivate::rowsAboutToBeRemoved(QModelIndex const&, int, int) () from /usr/lib64/libQt5Core.so.5
#10 0x00007f31f83f82d2 in ?? () from /usr/lib64/libQt5Core.so.5
#11 0x00007f31f845bcd0 in ?? () from /usr/lib64/libQt5Core.so.5
#12 0x00007f31f83d414e in QAbstractItemModel::rowsAboutToBeRemoved(QModelIndex const&, int, int, QAbstractItemModel::QPrivateSignal) () from /usr/lib64/libQt5Core.so.5
#13 0x00007f31f83dbfbd in QAbstractItemModel::beginRemoveRows(QModelIndex const&, int, int) () from /usr/lib64/libQt5Core.so.5
#14 0x00007f31f83f82d2 in ?? () from /usr/lib64/libQt5Core.so.5
#15 0x00007f31f845bcd0 in ?? () from /usr/lib64/libQt5Core.so.5
#16 0x00007f31f83d414e in QAbstractItemModel::rowsAboutToBeRemoved(QModelIndex const&, int, int, QAbstractItemModel::QPrivateSignal) () from /usr/lib64/libQt5Core.so.5
#17 0x00007f31f83dbfbd in QAbstractItemModel::beginRemoveRows(QModelIndex const&, int, int) () from /usr/lib64/libQt5Core.so.5
#18 0x00007f31d055fe87 in ?? () from /usr/lib64/libprocesscore.so.9
#19 0x00007f31f845bc97 in ?? () from /usr/lib64/libQt5Core.so.5
#20 0x00007f31d053d172 in KSysGuard::Processes::beginRemoveProcess(KSysGuard::Process*) () from /usr/lib64/libprocesscore.so.9
#21 0x00007f31d0551303 in ?? () from /usr/lib64/libprocesscore.so.9
#22 0x00007f31d0550278 in KSysGuard::Processes::processesUpdated() () from /usr/lib64/libprocesscore.so.9
#23 0x00007f31f845bc97 in ?? () from /usr/lib64/libQt5Core.so.5
#24 0x00007f31f845bc97 in ?? () from /usr/lib64/libQt5Core.so.5
#25 0x00007f31f846062a in QTimer::timeout(QTimer::QPrivateSignal) () from /usr/lib64/libQt5Core.so.5
#26 0x00007f31f84530ef in QObject::event(QEvent*) () from /usr/lib64/libQt5Core.so.5
#27 0x00007f31f945776f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#28 0x00007f31f8424cf8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#29 0x00007f31f847b6ae in QTimerInfoList::activateTimers() () from /usr/lib64/libQt5Core.so.5
#30 0x00007f31f847bf6c in ?? () from /usr/lib64/libQt5Core.so.5
#31 0x00007f31f6950b1b in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#32 0x00007f31f6950dc8 in ?? () from /usr/lib64/libglib-2.0.so.0
#33 0x00007f31f6950e7f in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#34 0x00007f31f847c0b0 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#35 0x00007f31f842322b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#36 0x00007f31f842bf80 in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#37 0x0000556c0596ad73 in ?? ()
#38 0x00007f31f7dd67fd in __libc_start_main () from /lib64/libc.so.6
#39 0x0000556c0596b30a in ?? ()
[Inferior 1 (process 6609) detached]
Comment 1 Nate Graham 2021-11-08 18:06:33 UTC
Any chance you could reproduce the crash with debug symbols for plasma-systemmonitor?
Comment 2 Bug Janitor Service 2021-11-23 04:38:33 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2021-12-08 04:35:51 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!