From owner-freebsd-current@FreeBSD.ORG Tue Sep 16 12:25:31 2003 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 688FB16A4B3 for ; Tue, 16 Sep 2003 12:25:31 -0700 (PDT) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id D163243F93 for ; Tue, 16 Sep 2003 12:25:30 -0700 (PDT) (envelope-from nate@rootlabs.com) Received: (qmail 9799 invoked by uid 1000); 16 Sep 2003 19:25:31 -0000 Date: Tue, 16 Sep 2003 12:25:31 -0700 (PDT) From: Nate Lawson To: Andrew Thompson In-Reply-To: <3F6763D3.8010007@fud.org.nz> Message-ID: <20030916122442.D9796@root.org> References: <20030916115255.A9706@root.org> <3F6763D3.8010007@fud.org.nz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: current@freebsd.org Subject: Re: ACPI and a Toshiba Tecra 8000 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: Tue, 16 Sep 2003 19:25:31 -0000 On Wed, 17 Sep 2003, Andrew Thompson wrote: > Nate Lawson wrote: > > gdb kernel.debug > > l *scsuspend+0x17 > >That should show the offending code segment. > > (gdb) l *scsuspend+0x17 > 0xc03d7b17 is in scsuspend (/usr/src/sys/isa/syscons_isa.c:111). > 106 int retry = 10; > 107 static int dummy; > 108 sc_softc_t *sc; > 109 > 110 sc = &main_softc; > 111 sc_cur_scr = sc->cur_scp->index; > 112 > 113 if (sc_no_suspend_vtswitch) > 114 return (0); > 115 Ok, this shows it's not ok to unconditionally deref sc->cur_scp. Now I'll look for what cases it is NULL. I'll get back to you in a day or so. -Nate