Re: sysctl -a crash on todays current

From: Stanislav Sedov <stas_at_FreeBSD.org>
Date: Sat, 9 May 2009 23:03:25 +0400
On Sat, 9 May 2009 12:21:00 -0500 (CDT)
Larry Rosenman <ler_at_lerctr.org> mentioned:

> On Sat, 9 May 2009, Mel Flynn wrote:
> 
> > On Saturday 09 May 2009 17:23:25 Larry Rosenman wrote:
> >> I hit the following page-fault panic on todays -CURRENT, when running
> >> sysctl -a: I have the core and kernel.
> >
> > <snip trace>
> >
> >> Reading symbols from /boot/modules/cpu.ko...done.
> >> Loaded symbols for /boot/modules/cpu.ko
> >
> > Recompile that module and search archive for the why.
> Thanks.  It actually doesn't compile at the moment due to kernel tree changes.
> (Maintainer CC'd).
> 
> I've removed that KLD from the system and we're fine.
> 
> # cd /usr/ports/sysutils/devcpu
> # make
> ===>  Found saved configuration for devcpu-0.8.1
> ===>  Extracting for devcpu-0.8.3
> => MD5 Checksum OK for devcpu-0.8.3.tar.bz2.
> => SHA256 Checksum OK for devcpu-0.8.3.tar.bz2.
> ===>  Patching for devcpu-0.8.3
> /usr/bin/sed -i.bak -e "s,%%PREFIX%%,/usr/local,g"  /usr/ports/sysutils/devcpu/work/devcpu-0.8.3/cpu_microcode_tool/cpu_microcode_tool.8
> ===>  Configuring for devcpu-0.8.3
> ===>  Building for devcpu-0.8.3
> ===> cpu (all)
> Warning: Object directory not changed from original /usr/ports/sysutils/devcpu/work/devcpu-0.8.3/cpu
> _at_ -> /usr/src/sys
> machine -> /usr/src/sys/amd64/include
> awk -f _at_/tools/makeobjops.awk _at_/kern/device_if.m -h
> cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc   -I. -I_at_ -I_at_/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common  -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c cpu.c
> cpu.c: In function 'cpu_ioctl':
> cpu.c:158: error: invalid operands to binary &
> cpu.c: In function 'cpu_open':
> cpu.c:427: error: invalid operands to binary &
> *** Error code 1
> 
> Stop in /usr/ports/sysutils/devcpu/work/devcpu-0.8.3/cpu.
> *** Error code 1
> 
> Stop in /usr/ports/sysutils/devcpu/work/devcpu-0.8.3.
> *** Error code 1
> 
> Stop in /usr/ports/sysutils/devcpu.
> *** Error code 1
> 
> Stop in /usr/ports/sysutils/devcpu.
> #
> 

You should not use devcpu port on CURRENT. This code is already
included both into STABLE and HEAD branches (sys/modules/cpuctl).

-- 
Stanislav Sedov
ST4096-RIPE

!DSPAM:4a05d398994291470650666!
Received on Sat May 09 2009 - 17:04:01 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:47 UTC