From owner-freebsd-current Tue Dec 17 10:19:36 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4964237B404 for ; Tue, 17 Dec 2002 10:19:31 -0800 (PST) Received: from mail.westbend.net (ns1.westbend.net [216.47.253.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2256D43EB2 for ; Tue, 17 Dec 2002 10:19:30 -0800 (PST) (envelope-from hetzels@westbend.net) Received: from Admin01 (admin01.westbend.net [216.47.253.18]) by mail.westbend.net (8.12.6/8.12.6) with SMTP id gBHIJFDG091194 for ; Tue, 17 Dec 2002 12:19:15 -0600 (CST) (envelope-from hetzels@westbend.net) Message-ID: <018401c2a5f8$cb48bf10$12fd2fd8@Admin01> From: "Scot W. Hetzel" To: Subject: Kernel Panic in runq_check Date: Tue, 17 Dec 2002 12:19:08 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Spam-Status: No, hits=0.2 required=8.0 tests=QUOTED_EMAIL_TEXT,SPAM_PHRASE_00_01,USER_AGENT_OE version=2.43 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 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: on motherboard npx0: INT 16 interface Using $PIR table, 6 entries at 0xc00fcdd0 pcib0: at pcibus 0 on motherboard pci0: on pcib0 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xf000-0xf00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: at device 9.0 (no driver attached) fxp0: 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: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ahc0: 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: