Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48837 - powernowd segfault, when "cpufreq_userspace" kernel module is not loaded
Summary: powernowd segfault, when "cpufreq_userspace" kernel module is not loaded
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Daniel Black (RETIRED)
URL: https://sourceforge.net/tracker/index...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-23 18:08 UTC by Rico Schiekel
Modified: 2004-05-23 15:35 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rico Schiekel 2004-04-23 18:08:40 UTC
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
Comment 1 Daniel Black (RETIRED) gentoo-dev 2004-04-24 01:45:33 UTC
Submitted upstream (ref URL) - will do some fixes to ensure the existance of the module and provide user info on adding modules.
Comment 2 Danny van Dyk (RETIRED) gentoo-dev 2004-05-06 14:37:53 UTC
Daniel: ping ? Have you commited those fixes already so we can close this one ?
Comment 3 Daniel Black (RETIRED) gentoo-dev 2004-05-09 17:04:19 UTC
not yet.
Comment 4 Daniel Black (RETIRED) gentoo-dev 2004-05-11 21:59:53 UTC
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.
Comment 5 Daniel Black (RETIRED) gentoo-dev 2004-05-23 15:35:18 UTC
I'm just going to assume cpufreq_userspace is a module and not kernel inbuilt for the time being.