From owner-freebsd-current@FreeBSD.ORG Fri Oct 22 11:37:07 2004 Return-Path: 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 939DD16A4CE for ; Fri, 22 Oct 2004 11:37:07 +0000 (GMT) Received: from relay02.pair.com (relay02.pair.com [209.68.5.16]) by mx1.FreeBSD.org (Postfix) with SMTP id 275EE43D53 for ; Fri, 22 Oct 2004 11:37:07 +0000 (GMT) (envelope-from pho@holm.cc) Received: (qmail 95344 invoked from network); 22 Oct 2004 11:37:05 -0000 Received: from 0x50a43fc7.hknxx1.adsl-dhcp.tele.dk (HELO peter.osted.lan) (80.164.63.199) by relay02.pair.com with SMTP; 22 Oct 2004 11:37:05 -0000 X-pair-Authenticated: 80.164.63.199 Received: from peter.osted.lan (localhost.osted.lan [127.0.0.1]) by peter.osted.lan (8.13.1/8.13.1) with ESMTP id i9MBb42o058870; Fri, 22 Oct 2004 13:37:04 +0200 (CEST) (envelope-from pho@peter.osted.lan) Received: (from pho@localhost) by peter.osted.lan (8.13.1/8.13.1/Submit) id i9MBb2Cu058869; Fri, 22 Oct 2004 13:37:02 +0200 (CEST) (envelope-from pho) Date: Fri, 22 Oct 2004 13:37:01 +0200 From: Peter Holm To: Julian Elischer Message-ID: <20041022113701.GA58819@peter.osted.lan> References: <200410212055.12644.marc.ramirez@bluecirclesoft.com> <417873D8.3070401@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <417873D8.3070401@elischer.org> User-Agent: Mutt/1.4.2.1i cc: Marc Ramirez cc: freebsd-current@freebsd.org Subject: Re: How to force a panic X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Oct 2004 11:37:07 -0000 On Thu, Oct 21, 2004 at 07:43:36PM -0700, Julian Elischer wrote: > Marc Ramirez wrote: > >Sorry, folks, I'm being a dunce. I'm trying to get a coredump, and it's > >been a while for me. > > > >I'm currently fetching and building 5.3RC1, but in the meantime, I'm > >running > >FreeBSD laptop.ghostmrami.com 5.3-BETA7 FreeBSD 5.3-BETA7 #0: Thu Oct 21 > >18:46:32 EDT 2004 > >mrami@laptop.ghostmrami.com:/usr/src/sys/i386/compile/LAPTOPOLDCARD i386 > > > >supped on > > > >drwxr-xr-x 2 root wheel 512 Oct 11 15:10 > >/usr/local/etc/cvsup/sup/src-all/ > > > >When I break into ddb, I type in panic, it says it's panicking, and then > >just freezes. diediedie doesn't seem to be there, either. > > > >Is there a new/better way to force a dump? > > > > > "call doadump" > For that to work I had to add: RCS file: /home/ncvs/src/sys/kern/kern_shutdown.c,v retrieving revision 1.163.2.2 diff -r1.163.2.2 kern_shutdown.c 244a245,246 > if (panicstr == NULL) > panicstr = "In doadump()"; /* Major hack XXX pho */ Whithout thet hack I get: ~KDB: enter: Line break on console [thread 100466] Stopped at kdb_enter+0x2b: nop db> call doadump Dumping 255 MB panic: blockable sleep lock (sleep mutex) taskqueue @ kern/subr_taskqueue.c:132 cpuid = 0 Uptime: 3d1h20m32s -- Peter Holm