Bug 437607

Summary: plasma-systemmonitor crash in KSysGuard::CGroupDataModel::update
Product: [Applications] plasma-systemmonitor Reporter: Alex <alex765>
Component: generalAssignee: KSysGuard Developers <ksysguard-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: ahiemstra, nate, plasma-bugs
Priority: NOR    
Version: 5.21.5   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 5.22
Attachments: backtrace from drkonqi

Description Alex 2021-05-24 14:09:03 UTC
Created attachment 138741 [details]
backtrace from drkonqi

I thought this might have been 433013, but this crash occurred on plasma 5.21.5.

It seemed to happen when defocusing the window, but I haven't tried to reproduce it yet.
Comment 1 Bug Janitor Service 2021-05-25 09:10:29 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/libksysguard/-/merge_requests/163
Comment 2 Nate Graham 2021-05-25 17:38:39 UTC
Git commit 4eb79bb3b12bb55e8003cceff8d2187c4df3d4df by Nate Graham, on behalf of David Redondo.
Committed on 25/05/2021 at 17:38.
Pushed by ngraham into branch 'master'.

Do not crash when a filesystem error is encountered

directory_iterator(path&) will throw if an error happens. Avoid this
by using the error_code overload.

M  +6    -2    processcore/cgroup_data_model.cpp

https://invent.kde.org/plasma/libksysguard/commit/4eb79bb3b12bb55e8003cceff8d2187c4df3d4df
Comment 3 Nate Graham 2021-05-25 17:39:12 UTC
Git commit c855dab4cd9d8eb1ca7f6820143358b0c9d3302a by Nate Graham, on behalf of David Redondo.
Committed on 25/05/2021 at 17:39.
Pushed by ngraham into branch 'Plasma/5.22'.

Do not crash when a filesystem error is encountered

directory_iterator(path&) will throw if an error happens. Avoid this
by using the error_code overload.


(cherry picked from commit 4eb79bb3b12bb55e8003cceff8d2187c4df3d4df)

M  +6    -2    processcore/cgroup_data_model.cpp

https://invent.kde.org/plasma/libksysguard/commit/c855dab4cd9d8eb1ca7f6820143358b0c9d3302a