Page fault while in kernel mode

From: Scott DF <sdf_at_expertune.com>
Date: Wed, 21 Jan 2004 08:42:06 -0600
It was suggested I post to this list from Usenet CUBFM.  Here is my post 
to that list.

--- original post ---
After upgrading from 5.1 to 5.2, I get a panic when I try to boot. I
can boot into single user mode, but a normal boot produces this:

Fatal trap 12: page fault while in kernel mode
fault virtual address = 0x5d
fault code = supervisor read, page not present
instruction pointer = 0x8:0xc059c4de
stack pointer = 0x10:02cbe61bbc
frame pointer = 0x10:0xcbe61bd4
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 508 (lkdload)
trap number = 12
panic: page fault

-----
This is my upgrade procedure:

cvsup /path/supfile
cd /usr/src
mergemaster -p
make buildworld
make buildkernel KERNCONF=KERNELNAME
make installkernel KERNCONF=KERNELNAME
reboot
boot -s
fsck -p && mount -a
cd /usr/src && make installworld
mergemaster -i
reboot
boot

Everything looked OK on file changes in mergemaster, so I installed
each file.
--- end original post ---

Per Steve's suggestion, I re-built the kernel with the debug options. 
Here is the trace from db> prompt

bus_generic_driver_added(c26c0c80,c2b0f28c,c07a1d74,c2b0f290,c2b0f28c) 
at bus_generic_driver_added+0x1e
devclass_add_driver(c1526b00,c2b0f28c,0,0,c28708c0) at
devclass_add_driver+0xe0
driver_module_handler(c28708c0,0,c2b0f290,cbebdc5c,c077a3f0) at
driver_module_handler+0x6f
module_register_init(c2b0f2a8,c077a3f0,cbebdc5c,cbebdc60,0) at
module_register_init+0x81
linker_file_sysinit(c2843000,c26c2d20,cbebdc84,1,c2843000) at
linker_file_sysinit+0xa0
linker_load_file(c26c2d20,cbebdca8,109,c26c4000,0) at linker_load_file+0x107
linker_load_module(c26c4000,0,0,0cbebdc84) at linker_load_module+0xc7
kldload(c276bb40,cbebdd14,c0799250,3ee,1) at kldload+0x123
syscall(2f,2f,2f,0,bfbfeeb0,) at syscall+0x2c0
Xint0x80_syscall() at Xint0x80_syscall+0x1d
--- syscall (304, FreeBSD ELF32, kldload), eip = 0x280bcdef, esp = 
0xbfbfee4c,
ebp = 0xbfbfee84 ---

The 5.2 GENERIC kernel will not boot either.

I hope this is enough to get started.

Scott
Received on Wed Jan 21 2004 - 05:42:23 UTC

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