powernowd segfault, when "cpufreq_userspace" kernel module is not loaded. after loading the module, all went fine. Reproducible: Always Steps to Reproduce: 1. emerge powernowd 2. check "cpufreq_userspace" module not loaded 3. /etc/init.d/powernowd start Actual Results: /sbin/runscript.sh: line 529: 19365 Killed /usr/sbin/powernowd -q ${POWERNOWD_OPTS} or the same line with a seg fault message. output in /var/log/messages: Apr 24 02:45:58 phobos powernowd: PowerNow Daemon v0.90hun6, (c) 2003-2004 John Clemens Apr 24 02:45:58 phobos powernowd: Found 1 physical cpu and 1 virtual cpu: Apr 24 02:45:58 phobos powernowd: Error writing file governor Apr 24 02:58:49 phobos Unable to handle kernel paging request at ffffffffa0383160 RIP: Apr 24 02:58:49 phobos <ffffffff8024b5dc>{strnlen+12}PML4 103027 PGD 105027 PMD 3e286067 PTE 0 Apr 24 02:58:49 phobos Oops: 0000 [1] SMP Apr 24 02:58:49 phobos CPU 0 Apr 24 02:58:49 phobos Pid: 19365, comm: powernowd Tainted: PF 2.6.5-gentoo-r1 Apr 24 02:58:49 phobos RIP: 0010:[<ffffffff8024b5dc>] <ffffffff8024b5dc>{strnlen+12} Apr 24 02:58:49 phobos RSP: 0018:00000100090d7d50 EFLAGS: 00010297 Apr 24 02:58:49 phobos RAX: ffffffffa0383160 RBX: 0000010024a17000 RCX: 000000000000000a Apr 24 02:58:49 phobos RDX: 00000100090d7df0 RSI: fffffffffffffffe RDI: ffffffffa0383160 Apr 24 02:58:49 phobos RBP: 0000000000000000 R08: 0000010024a17000 R09: ffffffffffffff00 Apr 24 02:58:49 phobos R10: 0000000000000001 R11: 0000000000000246 R12: 0000010024a1700f Apr 24 02:58:49 phobos R13: ffffffffa0383160 R14: 00000000ffffffff R15: 00000100090d7db8 Apr 24 02:58:49 phobos FS: 0000000000b165d0(0000) GS:ffffffff8054e9c0(0000) knlGS:0000000000000000 Apr 24 02:58:49 phobos CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b Apr 24 02:58:49 phobos CR2: ffffffffa0383160 CR3: 0000000000101000 CR4: 00000000000006e0 Apr 24 02:58:49 phobos Process powernowd (pid: 19365, stackpage=10030bbbf30) Apr 24 02:58:49 phobos Stack: ffffffff8024bef9 0000010000000000 ffffffff801564c7 0000000000000010 Apr 24 02:58:49 phobos 0000010024a17000 ffffffff803bc4ff 0000000000000010 0000000000000000 Apr 24 02:58:49 phobos 0000010024a17000 ffffffff80479320 Apr 24 02:58:49 phobos Call Trace:<ffffffff8024bef9>{vsnprintf+745} <ffffffff801564c7>{find_get_page+23} Apr 24 02:58:49 phobos <ffffffff8024c2be>{scnprintf+142} <ffffffff8016767d>{do_no_page+1293} Apr 24 02:58:49 phobos <ffffffff8015aa87>{buffered_rmqueue+439} <ffffffff8015ab41>{__alloc_pages+161} Apr 24 02:58:49 phobos <ffffffff8031a967>{show_scaling_governor+119} <ffffffff8031ab82>{show+66} Apr 24 02:58:49 phobos <ffffffff801abf1d>{fill_read_buffer+109} <ffffffff801abfe6>{sysfs_read_file+54} Apr 24 02:58:49 phobos <ffffffff80175ef4>{vfs_read+228} <ffffffff80176179>{sys_read+73} Apr 24 02:58:49 phobos <ffffffff80111894>{system_call+124} Apr 24 02:58:49 phobos Apr 24 02:58:49 phobos Code: 80 3f 00 74 11 48 ff ce 48 ff c0 48 83 fe ff 74 05 80 38 00 Apr 24 02:58:49 phobos RIP <ffffffff8024b5dc>{strnlen+12} RSP <00000100090d7d50> Apr 24 02:58:49 phobos CR2: ffffffffa0383160
Submitted upstream (ref URL) - will do some fixes to ensure the existance of the module and provide user info on adding modules.
Daniel: ping ? Have you commited those fixes already so we can close this one ?
not yet.
Commited new init script. Remerge to get script install. Limitations - This script tries to modprobe the cpufreq_userspace module if it exists. It will not work if it is compiled into the kernel which I need to fix. If you know a way of testing this I'd like to know.
I'm just going to assume cpufreq_userspace is a module and not kernel inbuilt for the time being.