Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184075 - x11-plugins/gkrellm-cpufreq not CPU-Hotplug-aware: crashes gkrellm
Summary: x11-plugins/gkrellm-cpufreq not CPU-Hotplug-aware: crashes gkrellm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jim Ramsay (lack) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-03 10:23 UTC by jannis
Modified: 2007-07-03 15:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch that fixes the descrbed issue (gkrellm-cpufreq-hotplug.patch,1.51 KB, patch)
2007-07-03 10:27 UTC, jannis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jannis 2007-07-03 10:23:26 UTC
gkrellm-cpufreq will crash gkrellm (segfault) when one or more CPU/Cores is disabled from the start or is disabled while the plugin is running. Here's an excerpt of I mail I wrote to the author that describes the problem:

I found out that suspend2 disables the "non-boot-CPUs" (meaning
core "1" here) and re-enabling it after the resume-process is
completed. This happens via "CPU Hotplug" and I can trigger that
manually via "/sys/devices/system/cpu/cpu1/online" (cpu0 cannot be
disabled).

Reproducible: Always

Steps to Reproduce:
1. Have a system with more than 1 core and CONFIG_HOTPLUG_CPU=1
2. Run gkrellm with the gkrellm-cpufreq plugin loaded
3. echo 0 > /sys/devices/system/cpu/cpu1/online

Actual Results:  
gkrellm crashed with sefault in the cpufreq-plugin

Expected Results:  
not crash ;)
Comment 1 jannis 2007-07-03 10:27:11 UTC
Created attachment 123753 [details, diff]
Patch that fixes the descrbed issue

Mailed this to the but yet got nothing but a return receipt.
Maybe should not change version to 0.6.1 but could make 0.6-r1
Comment 2 Jim Ramsay (lack) (RETIRED) gentoo-dev 2007-07-03 15:57:23 UTC
Thanks very much for the patch, I have added committed x11-plugins/gkrellm-cpufreq-0.6-r1 that contains this fix.