https://bugs.kde.org/show_bug.cgi?id=484019

--- Comment #16 from Thomas Berger <l...@lokis-chaos.de> ---
I was able to create a debug prefix. I found a very strange behavior:

1. In `linuxcpu.cpp, line 89, we call `m_temperature->update()`
2. m_temperature is a pointer to `KSysGuard::SensorProperty` created by an
earlier call to KSysGuard::makeSensorsFeatureSensor

The assumption would be, that this call ends up in the overload
`SensorsFeatureSensor::update()`, but instead it calls the base class
implementation SensorProperty::update() which is empty. 

I installed all all plugins in my prefix, and every other plugin using
`makeSensorsFeatureSensor` gets the update call "served" by 
`SensorsFeatureSensor::update()` and i can break in this function as well. My
initial assumption was, that this is a linker issue, so i moved from gcc-14 to
clang-18.1, but the effect stays the same.

The lmsensors and the gpu plugin work fine, i can't find the difference in
code, that could cause this.

Here is the call from the cpu plugin:

```
* frame #0: 0x00007f8e0cfbf6fa
libKSysGuardSystemStats.so.2`KSysGuard::SensorProperty::update(this=0x0000558f0e93dbe0)
at SensorProperty.h:110:5
  frame #1: 0x00007f8e07af39f7
ksystemstats_plugin_cpu.so`LinuxCpuObject::update(this=0x0000558f0e8cc6a0,
system=7800, user=47299, wait=460, idle=575242) at linuxcpu.cpp:90:20
```

And here is the call from the lmsensors plugin for another sensor

```
* frame #0: 0x00007fbde133f9c0
libKSysGuardSystemStats.so.2`KSysGuard::SensorsFeatureSensor::update(this=0x0000559ed44ac480)
at SensorsFeatureSensor.cpp:147:22
  frame #1: 0x00007fbddbe9ea9b
ksystemstats_plugin_lmsensors.so`LmSensorsPlugin::update(this=0x0000559ed44aa570)
at lmsensors.cpp:71:17
```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to