Date: Tue, 17 Dec 2002 12:19:08 -0600 From: "Scot W. Hetzel" <hetzels@westbend.net> To: <freebsd-current@freebsd.org> Subject: Kernel Panic in runq_check Message-ID: <018401c2a5f8$cb48bf10$12fd2fd8@Admin01>
next in thread | raw e-mail | index | archive | help
I have a CURRENT system that is panicing on me every couple of days. I have
enabled crash dumps in the rc.conf file, but when the system is rebooted,
savecore doesn't find any core files on the swap partition. The system has
128M RAM installed, and the swap partion is ~512M.
I am using a GENERIC kernel with SMP options enabled (see diff at bottom of
message).
Is there anything I need to add to the kernel config file to enable dumping
of core files?
Can I force a core dump when it panics? How?
Current# ls /usr/obj/usr/src/srcC/sys/GENERIC-SMP/kernel*
/usr/obj/usr/src/srcC/sys/GENERIC-SMP/kernel
/usr/obj/usr/src/srcC/sys/GENERIC-SMP/kernel.debug
The system was built from sources cvsuped on Dec 4th. I was trying to
compile soureces cvsuped from yesterday when the panic occured.
FreeBSD Current.westbend.net 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Thu Dec 5
19:11:47 CST 2002
root@Current.westbend.net:/usr/obj/usr/src/srcC/sys/GENERIC-SMP i386
cpuid=0; lapic.id=00000000
instruction pointer = 0x8:0xc02f3d21
stack pointer = 0x10:0xc8678cdc
frame pointer = 0x10:0xc8678cdc
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, Pres 1, def32 1, gran 1
processor eflags = interrupt enabled, IOPL = 0
current process = 12 (idle: cpu 0)
kernel: type 30 trap, code = 0
stopped at runq_check+0x21: cmpl $0x1, %eax
nm -n /boot/kernel_smp/kernel | grep c02f3d
c02f3d00 T runq_check
c02f3d30 T runq_choose
c02f3dc0 T runq_remove
Current# grep dump /etc/rc.conf
dumpdev="/dev/da0s1b" # Device name to crashdump to (or NO).
dumpdir="/var/crash" # Directory where crash dumps are to be stored
savecore_flags="" # Used if dumpdev is enabled above, and present.
Current# df
Filesystem 1K-blocks Used Avail Capacity
Mounted on
/dev/da0s1a 516062 121330 353448 26%
/
devfs 1 1 0 100%
/dev
/dev/da0s1f 516062 3232 471546 1%
/tmp
/dev/da0s1g 2310684 576178 1549652 27%
/usr
/dev/da0s1e 516062 123158 351620 26%
/var
Current# disklabel -r /dev/da0s1
# /dev/da0s1:
type: SCSI
disk: da0s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 553
sectors/unit: 8888924
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 1048576 0 4.2BSD 2048 16384 89 # (Cyl. 0 - 65*)
b: 1048576 1048576 swap # (Cyl. 65*- 130*)
c: 8888924 0 unused 0 0 # (Cyl. 0 - 553*)
e: 1048576 2097152 4.2BSD 2048 16384 89 # (Cyl. 130*- 195*)
f: 1048576 3145728 4.2BSD 2048 16384 89 # (Cyl. 195*- 261*)
g: 4694620 4194304 4.2BSD 2048 16384 89 # (Cyl. 261*- 553*)
Current# dmesg
Copyright (c) 1992-2002 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.0-CURRENT #1: Thu Dec 5 19:11:47 CST 2002
root@Current.westbend.net:/usr/obj/usr/src/srcC/sys/GENERIC-SMP
Preloaded elf kernel "/boot/kernel_smp/kernel" at 0xc067d000.
Timecounter "i8254" frequency 1193182 Hz
CPU: Pentium/P54C (200.46-MHz 586-class CPU)
Origin = "GenuineIntel" Id = 0x52c Stepping = 12
Features=0x3bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,APIC>
real memory = 134217728 (128 MB)
avail memory = 123412480 (117 MB)
Programming 24 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> irq 0
IOAPIC #0 intpin 17 -> irq 10
IOAPIC #0 intpin 18 -> irq 12
IOAPIC #0 intpin 19 -> irq 11
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): apic id: 0, version: 0x00030010, at 0xfee00000
cpu1 (AP): apic id: 1, version: 0x00030010, at 0xfee00000
io0 (APIC): apic id: 2, version: 0x00170011, at 0xfec00000
Intel Pentium detected, installing workaround for F00F bug
Initializing GEOMetry subsystem
npx0: <math processor> on motherboard
npx0: INT 16 interface
Using $PIR table, 6 entries at 0xc00fcdd0
pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX3 ATA controller> port 0xf000-0xf00f at device 7.1 on
pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <display, VGA> at device 9.0 (no driver attached)
fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0xe400-0xe41f mem
0xd4000000-0xd40fffff,0xd4100000-0xd4100fff irq 12 at device 10.0 on pci0
fxp0: Ethernet address 00:a0:c9:85:b5:ed
inphy0: <i82555 10/100 media interface> on miibus0
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ahc0: <Adaptec aic7880 Ultra SCSI adapter> port 0xe800-0xe8ff mem
0xd4101000-0xd4101fff irq 11 at device 12.0 on pci0
aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs
orm0: <Option ROMs> at iomem 0xc8000-0xccfff,0xc0000-0xc7fff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port
0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
pmtimer0 on isa0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0401> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
Timecounters tick every 10.000 msec
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via IOAPIC #0 intpin 2
acd0: CDROM <CD-ROM CCD-52X6S> at ata0-master PIO4
Waiting 15 seconds for SCSI devices to settle
da0 at ahc0 bus 0 target 0 lun 0
da0: <SEAGATE ST34572W 0784> Fixed Direct Access SCSI-2 device
da0: 20.000MB/s transfers (20.000MHz, offset 15), Tagged Queueing Enabled
da0: 4340MB (8888924 512 byte sectors: 255H 63S/T 553C)
SMP: AP CPU #1 Launched!
Current# diff GENERIC GENERIC-SMP
25c25
< ident GENERIC
---
> ident GENERIC-SMP
31a32
> #makeoptions KERNEL=kernel_smp #install kernel to /boot/kernel_smp
(doesn't work for installkernel)
71,72c72,73
< #options SMP # Symmetric MultiProcessor Kernel
< #options APIC_IO # Symmetric (APIC) I/O
---
> options SMP # Symmetric MultiProcessor Kernel
> options APIC_IO # Symmetric (APIC) I/O
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?018401c2a5f8$cb48bf10$12fd2fd8>
