| Summary: | Model crash in KSysGuard::ProcessDataModel::Private::getQModelIndex() when process is deleted | ||
|---|---|---|---|
| Product: | [Applications] plasma-systemmonitor | Reporter: | David Redondo <kde> |
| Component: | general | Assignee: | KSysGuard Developers <ksysguard-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | CC: | ahiemstra, jan.rathmann, nate, plasma-bugs-null |
| Priority: | NOR | ||
| Version First Reported In: | master | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/libksysguard/-/commit/32bb10e38eeafed1c11288e3c416fb586300a7a2 | Version Fixed/Implemented In: | 6.1.0 |
| Sentry Crash Report: | |||
|
Description
David Redondo
2021-11-18 14:50:56 UTC
*** Bug 447443 has been marked as a duplicate of this bug. *** A possibly relevant merge request was started @ https://invent.kde.org/plasma/libksysguard/-/merge_requests/354 Git commit 560d8dad2671c9d8bbd877cd6d796516c9e5ae96 by Arjen Hiemstra. Committed on 11/06/2024 at 12:01. Pushed by ahiemstra into branch 'master'. processcore: Properly check if process exists before dereferencing Q_ASSERT will only trigger in debug builds. In release builds we can therefore still dereference a potential null pointer, so do a proper check instead since there are places where we pass a process' parent without checking if that parent exists. M +1 -2 processcore/process_data_model.cpp https://invent.kde.org/plasma/libksysguard/-/commit/560d8dad2671c9d8bbd877cd6d796516c9e5ae96 Git commit 32bb10e38eeafed1c11288e3c416fb586300a7a2 by Arjen Hiemstra. Committed on 11/06/2024 at 14:17. Pushed by ahiemstra into branch 'Plasma/6.1'. processcore: Properly check if process exists before dereferencing Q_ASSERT will only trigger in debug builds. In release builds we can therefore still dereference a potential null pointer, so do a proper check instead since there are places where we pass a process' parent without checking if that parent exists. (cherry picked from commit 560d8dad2671c9d8bbd877cd6d796516c9e5ae96) Co-authored-by: Arjen Hiemstra <ahiemstra@heimr.nl> M +1 -2 processcore/process_data_model.cpp https://invent.kde.org/plasma/libksysguard/-/commit/32bb10e38eeafed1c11288e3c416fb586300a7a2 |