From owner-freebsd-current Tue Dec 1 13:59:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA22478 for freebsd-current-outgoing; Tue, 1 Dec 1998 13:59:16 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.54]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA22472 for ; Tue, 1 Dec 1998 13:59:15 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.9.1/8.9.1) id OAA00603 for freebsd-current@freebsd.org; Tue, 1 Dec 1998 14:07:13 -0800 (PST) (envelope-from sgk) From: Steve Kargl Message-Id: <199812012207.OAA00603@troutmask.apl.washington.edu> Subject: Crash dump howto? To: freebsd-current@FreeBSD.ORG Date: Tue, 1 Dec 1998 14:07:13 -0800 (PST) X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Anyone care to share their method on getting a kernel crash dump on a very recent -current tree? Hardware: Micron Millenia Pro2+ (dual 200 MHz Pentium Pro), 256 MB memory Adaptec 2940 Ultra SCSI controller, Seagate ST34371N 4.1MB SCSI2 drive, Quantum Lightning 730S 700MB SCSI2 drive, Plextor CD-ROM PX-12CS I'm running an ELF SMP kernel, and I have "options DDB" and "options AHC_ALLOW_MEMIO". Kernels have been configured with the -g to config(8). [This reminds me, how does one strip an ELF kernel?] da0 is the Seagate drive, and da1 is the Quantum drive. Under heavy load: dev=0x20405, bno = 13, bsize = 8192, size = 8192, fs = /usr panic: ffs_blkfree: bad size mp_lock = 00000001; cpuid = 0; lapic.id = 01000000 Debugger("panic") Stopped at _Debugger+0x35: movb $0, _in_Debugger.98 db> trace _Debugger() at _Debugger+0x35 _panic() at _panic+0x9f _ffs_blkfree() at _ffs_blkfree+0xc2 _ffs_reallocblks() at _ffs_reallocblks+0x420 _cluster_write() at _cluster_write+0x15f _ffs_write() at _ffs_write+0x56f _vn_write() at _vn_write+0xef _write() at _write+0xba _syscall() at _syscall+0x187 _Xinit0x80_syscall at _Xinit0x80_syscall+0x4c db>panic panic: from debugger mp_lock = 01000002; cpuid = 1; lapic.id = 00000000 boot() called on CPU #1 (da1:ahc0:0:2:0) SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0 (da1:ahc0:0:2:0) error code 0 dumping to dev 409, offset 907232 Fatal trap 12: page fault while in kernel mode mp_lock = 01000003; cpuid = 1; lapic.id = 00000000 fault virtual address = 0x20 fault code = supervisor read, page not present instruction pointer = 0x8:0x20 stack pointer = 0x10:0xf9232998 frame pointer = 0x10:0x0 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32, 1, gran 1 process eflags = interrupt enabled, resume, IOPL = 0 current process = 95350 (procmail) interrupt mask = net tty bio cam <- SMP: XXX kernel: type 12 trap, code = 0 Stopped at _Debugger+0x35: movb $0,_in_Debugger.98 db> panic Reach for reset button. I have tried dumpon /dev/da0s1b dumpon /dev/da1s1b With appropriate disklabels, these are swap partitions of 500 and 700 MBs. My last attempt was dumpon -v /dev/da1b dumpon: crash dumps to /dev/da1b (4, 9) -- Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message