Package: powernowd
Version: 0.96-1
Tag: patch

Problem: powernowd SIGSEGV's when it's shut down on systems with more
than one (either real, or virtual) CPU. 

Reproduce (e.g. on a P4 with HT enabled):

mp3:/tmp/powernowd-0.96# ./powernowd -d
PowerNow Daemon v0.96, (c) 2003-2005 John Clemens
Found 1 cpus:  -- 2 threads (or cores) per physical cpu
  cpu0: 325Mhz - 2600Mhz (8 steps)
  cpu1: 325Mhz - 2600Mhz (8 steps)

<hit CTRL+C>

Can't open scaling_setspeed: No such file or directory
Segmentation fault
mp3:/tmp/powernowd-0.96# 

I've attached a patch that fixes the problem. The author is already aware 
of this bug (I sent him a patch, which includes the fix and some more)

Best regards,
Bram Avontuur
- 
You can't have everything. Where would you put it?
97c97
< cpuinfo_t **cpuinfo;
---
> cpuinfo_t *cpuinfo;
562c562
<               cpu = cpuinfo[i-1];
---
>               cpu = &cpuinfo[i-1];
793c793
<       cpuinfo = &cpu;
---
>       cpuinfo = cpu;

Reply via email to