Created attachment 4979 fix the problem xfce4-sensors-plugin-1.2.5 Segmentation fault when: /sys/class/power_supply/BAT0/model_name does not exists, but /sys/class/power_supply/BAT0/alarm exists.
Created attachment 4980 panel-infloop-fix As the reason of such situation when first file not exists, some elements (chipfeature) are initialized not completely and the field named 'valid' is FALSE. But... it cause an endless-loop on iterating elements in the sensors-plugin.c So, I have fixed this problem too... patch is attached, but... What the best way in this case, do you think? Keep an invalid element in the array or remove it (i. e. don't add)?
Comment on attachment 4979 fix the problem What does this fix? It is only an invariant of my implementation, and it even takes more lines to write down, while at the same time being less semantically correct.
Comment on attachment 4980 panel-infloop-fix This helps. Thanks.
fixed in commit 240bf2e..efb6e7c
Comment on attachment 4979 fix the problem Sorry, overlooked the large space between the two parts. You are right. Fixing...
and commit efb6e7c..c6d907d