[5.3-BETA3] kernel panic on boot

From: <bsd-daemon_at_spray.se>
Date: Sat, 11 Sep 2004 20:25:38 GMT
Hello!

Which line do I have to put in the kernel config to be able to dump this early in the booting process?
The "Kernel Debugging" chapter in the "Developers handbook" is a bit unclear on this subject (it says the dump device can be hard-coded via the dump clause in the config(5) line of a kernel configuration file), and nothing can be found in NOTES either.

Boot output follows:


BIOS drive A: is disk0
BIOS drive C: is disk1
BIOS 640kB/97280kB available memory

FreeBSD/i386 bootstrap loader, Revision 1.1
(root_at_harlow.cse.buffalo.edu, Sat Sep  4 01:20:02 UTC 2004)
Loading /boot/defaults/loader.conf
/boot/kernel/kernel text=0x415884 data=0x7d564+0x75f9c syms=[0x4+0x5b980+0x6f87e]
Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel] in 9 seconds... Booting [/boot/kernel/kernel]...
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
SMAP type=01 base=0000000000000000 len=00000000000a0000
SMAP type=02 base=00000000000f0000 len=0000000000010000
SMAP type=01 base=0000000000100000 len=0000000005f00000
SMAP type=02 base=00000000fffe0000 len=0000000000020000
SMAP type=02 base=00000000fec00000 len=0000000000001000
SMAP type=02 base=00000000fee00000 len=0000000000001000
SMAP type=c3fe72bf base=c3b736bbc3af2ebb len=c3ffdebbc3ffe0bb
Copyright (c) 1992-2004 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 5.3-BETA3 #0: Sat Sep  4 12:07:48 UTC 2004
    root_at_harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
WARNING: WITNESS option enabled, expect reduced performance.
Preloaded elf kernel "/boot/kernel/kernel" at 0xc09d6000.
Calibrating clock(s) ... i8254 clock: 1193779 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
Timecounter "i8254" frequency 1193182 Hz quality 0
Calibrating TSC clock ... TSC clock: 133263149 Hz
CPU: Pentium/P54C (133.26-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x52b  Stepping = 11
  Features=0x3bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,APIC>
real memory  = 100663296 (96 MB)
Physical memory chunk(s):
0x0000000000001000 - 0x000000000009efff, 647168 bytes (158 pages)
0x0000000000100000 - 0x00000000003fffff, 3145728 bytes (768 pages)
0x0000000000c29000 - 0x0000000005e1ffff, 85946368 bytes (20983 pages)
avail memory = 88948736 (84 MB)
APIC: Using the MPTable enumerator.
SMP: Added CPU 0 (BSP)
SMP: Added CPU 1 (AP)
MPTable: <Preset Config 6>
APIC ID: physical 0, logical 0:0
APIC ID: physical 1, logical 0:1
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
bios32: Found BIOS32 Service Directory header at 0xc00fe100
bios32: Entry = 0xfa8f6 (c00fa8f6)  Rev = 0  Len = 1
pcibios: PCI BIOS entry at 0xf0000+0xa1a0
pnpbios: Found PnP BIOS data at 0xc00f1790
pnpbios: Entry = f0000:185e  Rev = 1.0
pnpbios: OEM ID 1127406
Other BIOS signatures found:
Intel Pentium detected, installing workaround for F00F bug
ioapic0: Changing APIC ID to 2
ioapic0: Routing external 8259A's -> intpin 0
ioapic0: intpin 0 -> ExtINT (edge, high)
ioapic0: intpin 1 -> ISA IRQ 1 (edge, high)
ioapic0: intpin 2 -> ISA IRQ 2 (edge, high)
ioapic0: intpin 3 -> ISA IRQ 3 (edge, high)
ioapic0: intpin 4 -> ISA IRQ 4 (edge, high)
ioapic0: intpin 5 -> ISA IRQ 5 (edge, high)
ioapic0: intpin 6 -> ISA IRQ 6 (edge, high)
ioapic0: intpin 7 -> ISA IRQ 7 (edge, high)
ioapic0: intpin 8 -> ISA IRQ 8 (edge, high)
ioapic0: intpin 9 -> ISA IRQ 9 (edge, high)
ioapic0: intpin 10 -> ISA IRQ 10 (edge, high)
ioapic0: intpin 11 -> ISA IRQ 11 (edge, high)
ioapic0: intpin 12 -> ISA IRQ 12 (edge, high)
ioapic0: intpin 13 -> ISA IRQ 13 (edge, high)
ioapic0: intpin 14 -> ISA IRQ 14 (edge, high)
ioapic0: intpin 15 -> ISA IRQ 15 (edge, high)
lapic: Routing ExtINT -> LINT0
lapic: Routing NMI -> LINT1
ioapic0: Routing IRQ 0 -> intpin 2
ioapic0 <Version 1.1> irqs 0-15 on motherboard
cpu0 BSP:
     ID: 0x00000000   VER: 0x00030010 LDR: 0x01000000 DFR: 0x0fffffff
  lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff
wlan: <802.11 Link Layer>
null: <null device, zero device>
random: <entropy source, Software, Yarrow>
io: <I/O>
mem: <memory>
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
pci_open(1):    mode 1 addr port (0x0cf8) is 0x80002000
pci_open(1a):   mode1res=0x80000000 (0x80000000)
pci_cfgcheck:   device 0 [class=060000] [hdr=00] is there (id=04a38086)
pcibios: BIOS version 2.10


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x22
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc0781162
stack pointer           = 0x10:0xc0c21c24
frame pointer           = 0x10:0xc0c21c30
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         = 0 (swapper)
[thread 0]
Stopped at      mptable_walk_table+0x16:        cmpw    $0,0x22(%eax)
db> tr
mptable_walk_table(c0781a00,c0c21c42) at mptable_walk_table+0x16
mptable_pci_probe_table(0) at mptable_pci_probe_table+0x69
mptable_hostb_probe(c120fc00) at mptable_hostb_probe+0x6b
device_probe_child(c120fd00,c120fc00,c0891a20,c120fc00,c120fd00) at device_probe_child+0xc4
device_probe_and_attach(c120fc00) at device_probe_and_attach+0x51
bus_generic_attach(c120fd00,c120fd00,c081b630,c120fd00,c120fd00) at bus_generic_attach+0x16
legacy_attach(c120fd00) at legacy_attach+0x19
device_attach(c120fd00,0,c120fd00,c120fd80,0) at device_attach+0x58
device_probe_and_attach(c120fd00) at device_probe_and_attach+0xb4
bus_generic_attach(c120fd80,c120fd80,c120fd80,c0c21d44,c0612fe8) at bus_generic_attach+0x16
nexus_attach(c120fd80) at nexus_attach+0x13
device_attach(c120fd80,c0886130,c120fd80,c0886130,c29000) at device_attach+0x58
device_probe_and_attach(c120fd80) at device_probe_and_attach+0xb4
root_bus_configure(c1248380,c080f18a,0) at root_bus_configure+0x16
configure(0,c1ec00,c1e000,0,c043f475) at configure+0x1b
mi_startup() at mi_startup+0x96
begin() at begin+0x2c

(gdb) l *mptable_walk_table+0x16
0xc0781162 is in mptable_walk_table (/usr/src/sys/i386/i386/mptable.c:389).
384     {
385             u_int i;
386             u_char *entry;
387
388             entry = (u_char *)(mpct + 1);
389             for (i = 0; i < mpct->entry_count; i++) {
390                     switch (*entry) {
391                     case MPCT_ENTRY_PROCESSOR:
392                     case MPCT_ENTRY_IOAPIC:
393                     case MPCT_ENTRY_BUS:
(gdb)

If I can give you more useful information, please ask.

Thanks
Gustav Bylesjo
Received on Sat Sep 11 2004 - 18:25:40 UTC

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