Bug 462044

Summary: libksysguard: crash in KSysGuard::SensorProperty::setName
Product: [Applications] plasma-systemmonitor Reporter: Luca Beltrame <lbeltrame>
Component: generalAssignee: KSysGuard Developers <ksysguard-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: ahiemstra, kde, plasma-bugs-null
Priority: NOR    
Version First Reported In: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Backtrace

Description Luca Beltrame 2022-11-20 00:36:29 UTC
Created attachment 153890 [details]
Backtrace

SUMMARY

When starting ksystemstats with libksysguard as of 97382e8455854a6114663c76c5ca1962f2f9f436 on my desktop machine, ksystemstats crashes with the attached backtrace.

STEPS TO REPRODUCE
1. Start ksystemstats

OBSERVED RESULT
ksystemstats crashes.

EXPECTED RESULT
ksystemstats should not crash.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: latest (2022-11-20) git master
(available in About System)
KDE Plasma Version: latest (2022-11-20) git master
KDE Frameworks Version:  latest (2022-11-20) git master
Qt Version: 5.15 + KDE patches

ADDITIONAL INFORMATION
Comment 1 Luca Beltrame 2022-11-20 00:51:42 UTC
Actually the fault is in ksystemstats.  https://invent.kde.org/plasma/ksystemstats/-/merge_requests/43 implemented part of its changes in the GPU-agnostic part of the backend, but the AMD GPU backend was not updated, so it tries to access a null pointer and crashes during initialization.