From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 1 01:06:34 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30AEB16A4CE; Fri, 1 Apr 2005 01:06:34 +0000 (GMT) Received: from cyrus.watson.org (cyrus.watson.org [204.156.12.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id C544E43D48; Fri, 1 Apr 2005 01:06:33 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by cyrus.watson.org (Postfix) with SMTP id 2333746B17; Thu, 31 Mar 2005 20:06:33 -0500 (EST) Date: Fri, 1 Apr 2005 01:03:14 +0000 (GMT) From: Robert Watson X-Sender: robert@fledge.watson.org To: John Baldwin In-Reply-To: <200503311716.52034.jhb@FreeBSD.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@FreeBSD.org cc: William Michael Grim Subject: Re: 4BSD Scheduler Problem on 5.3 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Apr 2005 01:06:34 -0000 On Thu, 31 Mar 2005, John Baldwin wrote: > On Thursday 31 March 2005 03:38 pm, William Michael Grim wrote: > > Hello. > > > > I keep having kernel panics every couple weeks on my system. It occurs in > > the sched_switch() function. There are several other statements in the > > backtrace involving "??"; what are those? > > > > I have attached the dump output and system info to this email. Any > > feedback would be helpful. > > > > Thanks so much for your help. > > The real trace ends with Xint0x80_syscall(). The rest after that is > garbage memory. Your real problem is in exit1() or ttywakeup(). Since > ttywakeup() doesn't call exit1() (AFAIK), the exit1() frame is probably > bogus (gdb doesn't grok trapframes maybe?) and the real bug is a NULL > pointer deref in ttywakeup(). Perhaps it's a bug in the ptc driver? > (ptcopen is in the trace). What is the ptc driver anyway? I think we have a race in -STABLE relating to tty wakeups and open/close/device teardown. I've seen a panic relating to sio during a tty close on RELENG_5 about 5-6 months ago, but was unable to get a dump. Scott has since fixed dumps with twe, but I've not yet been able to get the bug to recur. I'll give it another try. Robert N M Watson