Subject: kernel panic
To: None <current-users@netbsd.org, netbsd-bugs@netbsd.org>
From: Sean Davis <dive-nb@endersgame.net>
List: netbsd-bugs
Date: 09/08/2001 21:47:53
I've had the kernel panic three times so far on this build (kernel built
some 22 hours after the new ffs_softdep() stuff was merged in, if that is
any help) and this time I managed to catch it with DDB.
Note, ddb.onpanic was 1, so i dumped it using 'sync', but i believe I got
the information that will help whoever out there understands this better
than I do :)
Any help would be greatly appreciated. I'm about to do a cvs update and
rebuild/install kernel/userland, just to see if that fixes it, but I'm
curious as to what caused this.
here's the gdb output:
<root@eros(/var/crash){1}> # gdb netbsd.2
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386--netbsd"...(no debugging symbols found)...
(gdb) target kcore netbsd.2.core
#0 0xc0212478 in db_last_command ()
(gdb) symbol-file /netbsd.gdb
Reading symbols from /netbsd.gdb...done.
(gdb) bt
#0 0xc0212478 in db_last_command ()
#1 0x8715000 in ?? ()
#2 0xc01ab00b in cpu_reboot (howto=256, bootstr=0x0)
at ../../../../arch/i386/i386/machdep.c:1846
#3 0xc010af89 in db_sync_cmd () at ../../../../ddb/db_command.c:744
#4 0xc010ab29 in db_command (last_cmdp=0xc0212478, cmd_table=0xc01f1540)
at ../../../../ddb/db_command.c:320
#5 0xc010ad3a in db_command_loop () at ../../../../ddb/db_command.c:579
#6 0xc010dbce in db_trap (type=6, code=0) at ../../../../ddb/db_trap.c:88
#7 0xc01a8714 in kdb_trap (type=6, code=0, regs=0xe5217b4c)
at ../../../../arch/i386/i386/db_interface.c:125
#8 0xc01afac0 in trap (frame={tf_gs = -1061289968, tf_fs = -1072562160,
tf_es = -450887664, tf_ds = -268435440, tf_edi = -1071527072,
tf_esi = 0, tf_ebp = -450790488, tf_ebx = -1071527068, tf_edx = 2,
tf_ecx = 0, tf_eax = 16, tf_trapno = 6, tf_err = 0,
tf_eip = -1072548681, tf_cs = 8, tf_eflags = 66118,
tf_esp = -1071527072, tf_ss = -1061806528, tf_vm86_es = -1071527072,
tf_vm86_ds = 0, tf_vm86_fs = 0, tf_vm86_gs = 16})
at ../../../../arch/i386/i386/trap.c:215
#9 0xc0100b7f in calltrap ()
#10 0xc019bfae in uvm_map (map=0xc021cb60, startp=0xe5217c0c, size=4096,
uobj=0xc021cae0, uoffset=-1, align=0, flags=5927)
at ../../../../uvm/uvm_map.h:355
#11 0xc019aef9 in uvm_km_valloc_align (map=0xc021cb60, size=4096, align=0)
---Type <return> to continue, or q <return> to quit---
at ../../../../uvm/uvm_km.c:752
#12 0xc019aeb6 in uvm_km_valloc (map=0xc021cb60, size=4096)
at ../../../../uvm/uvm_km.c:730
#13 0xc01a7367 in _bus_dmamem_map (t=0xc0216b80, segs=0xc0b61e40, nsegs=1,
size=4096, kvap=0xe5217c88, flags=4)
at ../../../../arch/i386/i386/bus_machdep.c:803
#14 0xc01c48be in tl_init (sc=0xc0b61c00) at ../../../../dev/pci/if_tl.c:623
#15 0xc01c5ff0 in tl_ifwatchdog (ifp=0xc0b61c40)
at ../../../../dev/pci/if_tl.c:1491
#16 0xc015cb8f in if_slowtimo (arg=0x0) at ../../../../net/if.c:1125
#17 0xc011d746 in softclock (v=0x0) at ../../../../kern/kern_clock.c:973
#18 0xc011d579 in hardclock (frame=0xe5217d0c)
at ../../../../kern/kern_clock.c:897
#19 0xc01cdcb4 in clockintr (arg=0xe5217d0c)
at ../../../../arch/i386/isa/clock.c:409
#20 0xc0100cd4 in Xintr0 ()
(gdb)
The system's dmesg follows:
NetBSD 1.5X (EROS) #133: Thu Sep 6 20:27:44 EDT 2001
dive@eros.endersgame.net:/current/src/sys/arch/i386/compile/EROS
cpu0: Intel Pentium III (Coppermine) Celeron (686-class), 534.57 MHz
cpu0: I-cache 16 KB 32b/line 4-way, D-cache 16 KB 32b/line 2-way
cpu0: L2 cache 128 KB 32b/line 4-way
cpu0: features 383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 383f9ff<PGE,MCA,CMOV,FGPAT,PSE36,MMX,FXSR,SSE>
total memory = 511 MB
avail memory = 472 MB
using 6574 buffers containing 26296 KB of memory
BIOS32 rev. 0 found at 0xfb300
PCI BIOS rev. 2.1 found at 0xfb330
PCI IRQ Routing Table rev. 1.0 found at 0xfdee0, size 176 bytes (9 entries)
PCI Interrupt Router at 000:07:0 (vendor 0x8086 product 0x7000)
PCI Exclusive IRQs: 7 9 11
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x8086 product 0x7190 (rev. 0x03)
pchb0: random number generator enabled
ppb0 at pci0 dev 1 function 0: vendor 0x8086 product 0x7191 (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga0 at pci1 dev 0 function 0: vendor 0x10de product 0x002c (rev. 0x15)
wsdisplay0 at vga0: console (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0
pcib0: vendor 0x8086 product 0x7110 (rev. 0x02)
pciide0 at pci0 dev 7 function 1: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
atapibus0 at pciide0 channel 0: 2 targets
cd0 at atapibus0 drive 0: <ASUS CD-S500/A, , V3.4H> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd1 at atapibus0 drive 1: <Pioneer DVD-ROM ATAPIModel DVD-104S 012, , E1.25> type 5 cdrom removable
cd1: 32-bit data port
cd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
pciide0: primary channel interrupting at irq 14
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
cd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
atapibus1 at pciide0 channel 1: 2 targets
cd2 at atapibus1 drive 0: <MATSHITA CD-RW CW-7585, , 1.04> type 5 cdrom removable
cd2: 32-bit data port
cd2: drive supports PIO mode 4, DMA mode 2
pciide0: secondary channel interrupting at irq 15
cd2(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
vendor 0x8086 product 0x7112 (USB serial bus, revision 0x01) at pci0 dev 7 function 2 not configured
vendor 0x8086 product 0x7113 (miscellaneous bridge, revision 0x02) at pci0 dev 7 function 3 not configured
ppb1 at pci0 dev 11 function 0: vendor 0x1014 product 0x0022 (rev. 0x01)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
tl0 at pci2 dev 0 function 0
tl0: Compaq Dual Port Netelligent 10/100 TX
tl0: Ethernet address 00:08:c7:a4:a9:40
tl0: interrupting at irq 9
nsphy0 at tl0 phy 1: DP83840 10/100 media interface, rev. 1
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
tlphy0 at tl0 phy 31: ThunderLAN 10BASE-T media interface, rev. 5
tlphy0: 10base5
tl1 at pci2 dev 1 function 0
tl1: Compaq Dual Port Netelligent 10/100 TX
tl1: Ethernet address 00:08:c7:a4:a9:c0
tl1: interrupting at irq 7
nsphy1 at tl1 phy 1: DP83840 10/100 media interface, rev. 1
nsphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
tlphy1 at tl1 phy 31: ThunderLAN 10BASE-T media interface, rev. 5
tlphy1: 10base5
pciide1 at pci0 dev 19 function 0: Triones/Highpoint HPT366 IDE Controller
pciide1: bus-master DMA support present
pciide1: primary channel wired to native-PCI mode
pciide1: using irq 11 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <IBM-DPTA-372050>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 19574 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 40088160 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)
vendor 0x1103 product 0x0004 (miscellaneous mass storage, revision 0x01) at pci0 dev 19 function 1 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
sb0 at isa0 port 0x220-0x237 irq 5 drq 1 drq2 5: dsp v4.16
audio0 at sb0: full duplex, mmap, independent
opl at sb0 not configured
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
biomask ed4d netmask efcd ttymask ffcf
boot device: wd0
root on wd0a dumps on wd0b
init: copying out path `/sbin/init' 11
XFree86 aperture driver version 2.0
Pentium Pro MTRR support enabled
IP Filter: v3.4.16 initialized. Default = pass all, Logging = enabled
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsdisplay0: screen 5 added (80x25, vt100 emulation)
wsdisplay0: screen 6 added (80x25, vt100 emulation)
wsdisplay0: screen 7 added (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
And here is my kernel config file, for good measure:
# $Id: EROS,v 1.1 2001/09/05 01:48:02 dive Exp $
machine i386
ident "EROS"
maxusers 64
makeoptions COPTS="-O -march=pentiumpro"
makeoptions DEBUG="-g"
options I686_CPU
options MTRR
options DUMMY_NOPS
options UCONSOLE
options EXEC_ELF32
options EXEC_SCRIPT
options EXEC_AOUT
options RTC_OFFSET=0
options NTP
options LKM
options COMPAT_LINUX
options SYSVMSG
options SYSVSEM
options SYSVSHM
options PCIBIOS
options COMPAT_15
options COMPAT_43
options SOFTDEP
options NEW_PIPE
options GATEWAY
options IPFILTER_LOG
options PFIL_HOOKS
options INET
options DDB
options WSEMUL_VT100
options WS_KERNEL_FG=WSCOL_GREEN
options WSDISPLAY_COMPAT_PCVT
options WSDISPLAY_COMPAT_SYSCONS
options WSDISPLAY_COMPAT_USL
options WSDISPLAY_COMPAT_RAWKBD
options KTRACE
options DEBUG
file-system FFS
file-system MFS
file-system KERNFS
file-system PROCFS
file-system CD9660
config netbsd root on wd0a type ffs
mainbus0 at root
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0
ppb0 at pci0 dev 1 function 0
ppb1 at pci0 dev 11 function 0
pci1 at ppb0 bus 1
pci2 at ppb1 bus 2
pcib0 at pci0 dev 7 function 0
isa0 at pcib0
vga0 at pci1 dev 0 function 0
npx0 at isa0 port 0xf0 irq 13
pckbc0 at isa0
pckbd0 at pckbc0
pmsi0 at pckbc0
pcdisplay0 at isa0
wsdisplay0 at vga0 console ?
wskbd0 at pckbd0 console ?
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
com0 at isa0 port 0x3f8 irq 4
pciide0 at pci0 dev 7 function 1 flags 0x0000
pciide1 at pci0 dev 19 function 0 flags 0x0000
atapibus0 at pciide0 channel 0
atapibus1 at pciide0 channel 1
cd0 at atapibus0 drive 0 flags 0x0000
cd1 at atapibus0 drive 1 flags 0x0000
cd2 at atapibus1 drive 0 flags 0x0000
wd0 at pciide1 channel 0 drive 0 flags 0x0000
fdc0 at isa0 port 0x3f0 irq 6 drq 2
fd0 at fdc0 drive 0
tl0 at pci2 dev 0 function 0
tl1 at pci2 dev 1 function 0
nsphy0 at tl0 phy 1
nsphy1 at tl1 phy 1
tlphy0 at tl0 phy 31
tlphy1 at tl1 phy 31
sb0 at isa0 port 0x220 irq 5 drq 1 drq2 5
audio0 at sb0
pseudo-device bpfilter 4
pseudo-device ipfilter
pseudo-device loop
pseudo-device pty
pseudo-device rnd
pseudo-device wsmux 2
pseudo-device vnd 2
pseudo-device md 2