Bug 462044 - libksysguard: crash in KSysGuard::SensorProperty::setName
Summary: libksysguard: crash in KSysGuard::SensorProperty::setName
Status: RESOLVED FIXED
Alias: None
Product: plasma-systemmonitor
Classification: Applications
Component: general (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-20 00:36 UTC by Luca Beltrame
Modified: 2023-01-11 10:36 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Backtrace (2.12 KB, text/plain)
2022-11-20 00:36 UTC, Luca Beltrame
Details

Note You need to log in before you can comment on or make changes to this bug.
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.