From owner-freebsd-alpha Thu Nov 16 12:54:27 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id 9C64137B4CF for ; Thu, 16 Nov 2000 12:54:24 -0800 (PST) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by pike.osd.bsdi.com (8.11.0/8.9.3) with ESMTP id eAGKsBB66477; Thu, 16 Nov 2000 12:54:11 -0800 (PST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <8v1etf$vl$2@kemoauc.mips.inka.de> Date: Thu, 16 Nov 2000 12:54:49 -0800 (PST) From: John Baldwin To: (Christian Weisgerber) Subject: Re: SMPng stability Cc: freebsd-alpha@FreeBSD.org Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 16-Nov-00 Christian Weisgerber wrote: > Andrew Gallatin wrote: > >> Do you have: >> >> options DDB >> options BREAK_TO_DEBUGGER >> options MUTEX_DEBUG >> options WITNESS >> options WITNESS_DDB > > I do now. GENERIC plus the options above. Which don't make any > difference. The box will lock up on its way into single user mode > or, if it manages to get that far, eventually during a disk access > in single user mode. ddb is _not_ triggered. > > Once the box is wedged, I can't break into ddb anymore. At least > HALT still works. Alright. Try this: First, add the following to your kernel config: options KTR options KTR_EXTEND options KTR_COMPILE="(KTR_PROC|KTR_INTR|KTR_LOCK)" options KTR_MASK="(KTR_PROC|KTR_INTR)" options KTR_ENTRIES=16384 Boot into single-user mode, then run the following commands: # sysctl -w debug.ktr_verbose=1 ; command_that_will_reliably_crash_my_machine ; sysctl -w debug.ktr_verbose=0 Hmm, it might be easier to just make a /crash.sh shell script containing all these commands (once ktr_verbose is on, you probably won't be able to type the commands in without going insane, hence have a shell script that turns it off for you). -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message