From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 1 18:52:43 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 95DB016A4CE; Fri, 1 Apr 2005 18:52:43 +0000 (GMT) Received: from critter.freebsd.dk (f170.freebsd.dk [212.242.86.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7BAC43D39; Fri, 1 Apr 2005 18:52:42 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.3/8.13.1) with ESMTP id j31Iqc6o089198; Fri, 1 Apr 2005 20:52:38 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: John Baldwin From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 01 Apr 2005 11:20:27 CDT." <200504011120.27285.jhb@FreeBSD.org> Date: Fri, 01 Apr 2005 20:52:38 +0200 Message-ID: <89197.1112381558@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: William Michael Grim cc: freebsd-hackers@FreeBSD.org cc: Robert Watson 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 18:52:43 -0000 In message <200504011120.27285.jhb@FreeBSD.org>, John Baldwin writes: >> 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. > >Sounds very plausible. Does Poul-Henning have any ideas? Is this before or after my tty changes ? There is a general nastyness about ttys/sessions/exit which I have never really felt comfortable about. My hope is that I have solved it by refcounting the tty structure. So if this is before my changes: "Yeah, known (but rare) issue)" If after my changes: "D**N!" -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.