From owner-freebsd-current@FreeBSD.ORG Tue May 18 22:28:19 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 D914F16A4CE for ; Tue, 18 May 2004 22:28:19 -0700 (PDT) Received: from mailout1.pacific.net.au (mailout1.pacific.net.au [61.8.0.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1431543D3F for ; Tue, 18 May 2004 22:28:19 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.0.86])i4J5SH4u021443; Wed, 19 May 2004 15:28:17 +1000 Received: from gamplex.bde.org (katana.zip.com.au [61.8.7.246]) i4J5SG2O005036; Wed, 19 May 2004 15:28:16 +1000 Date: Wed, 19 May 2004 15:28:17 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Mike Tancsa In-Reply-To: <6.0.3.0.0.20040518115134.034449d8@64.7.153.2> Message-ID: <20040519151012.J13534@gamplex.bde.org> References: <6.0.3.0.0.20040517154946.06d23d60@64.7.153.2> <6.0.3.0.0.20040518115134.034449d8@64.7.153.2> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@FreeBSD.org Subject: Re: sio / puc wedging on both -current and -stable (with trace) 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: Wed, 19 May 2004 05:28:20 -0000 On Tue, 18 May 2004, Mike Tancsa wrote: > At 11:50 PM 17/05/2004, Bruce Evans wrote: > > >... Type "s", then hold down the Enter key to repeat the "s" command until > >control returns here, then keep holding down the Enter key until something > >loops (may take many hundreds of commands). Record all the output using > >a serial console (don't type it in) and send it to me. > > OK, I have a trace. Here is a quick snippet. I will send you the complete > list which is quite long offlist Oops, unfortunately my instructions weren't complete enough, so the output is not useful and I'll have to ask you to repeat the work to obtain it. We're in in the interrupt handler for the same device as the console and are typing input into the console, so the interrupt handler will keep seeing console i/o (mainly echoed output) and will never return. To reach "here" (back in the same interrupt handler but for the original, non-console interrupt), use "n" instead of "s". "n" doesn't stop again until the end of the function. After "n", do 1 more "s" to leave the function. Then (or before this too) do a "t" to see where you are, and avoid going back too far. If one of the functions is looping, then "n" in it will just hang, and we want to see it looping, not no output for it hanging. After leaving siointr*, you can try either "n" or "s" to go back further. I think "n" will work, but "s" would provide more information if I've forgotten something. Keep not using PUC_FASTINTR. The serial break only works for breaking into non-fast interrupt handlers. Continue offlist. Bruce