Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Nov 2000 12:54:49 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        (Christian Weisgerber) <naddy@mips.inka.de>
Cc:        freebsd-alpha@FreeBSD.org
Subject:   Re: SMPng stability
Message-ID:  <XFMail.001116125449.jhb@FreeBSD.org>
In-Reply-To: <8v1etf$vl$2@kemoauc.mips.inka.de>

next in thread | previous in thread | raw e-mail | index | archive | help

On 16-Nov-00 Christian Weisgerber wrote:
> Andrew Gallatin <gallatin@cs.duke.edu> 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 <jhb@FreeBSD.org> -- 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.001116125449.jhb>