From owner-freebsd-bugs@FreeBSD.ORG Fri Jul 7 14:55:54 2006 Return-Path: X-Original-To: freebsd-bugs@FreeBSD.org Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3EFFD16A4E0; Fri, 7 Jul 2006 14:55:54 +0000 (UTC) (envelope-from dunstan@freebsd.czest.pl) Received: from freebsd.czest.pl (freebsd.czest.pl [80.48.250.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0807343D4C; Fri, 7 Jul 2006 14:55:52 +0000 (GMT) (envelope-from dunstan@freebsd.czest.pl) Received: from laptop.freebsd.czest.pl (gw98.internetdsl.tpnet.pl [80.53.74.98]) by freebsd.czest.pl (8.13.4/8.12.9) with ESMTP id k67FB1Mo056984; Fri, 7 Jul 2006 15:11:03 GMT (envelope-from dunstan@freebsd.czest.pl) Received: from laptop.freebsd.czest.pl (localhost [127.0.0.1]) by laptop.freebsd.czest.pl (8.13.7/8.13.6) with ESMTP id k67Gujj8060523; Fri, 7 Jul 2006 16:56:45 GMT (envelope-from dunstan@laptop.freebsd.czest.pl) Received: (from dunstan@localhost) by laptop.freebsd.czest.pl (8.13.7/8.13.4/Submit) id k67GujPI060522; Fri, 7 Jul 2006 16:56:45 GMT (envelope-from dunstan) Date: Fri, 7 Jul 2006 16:56:43 +0000 From: "Wojciech A. Koszek" To: Atsuo Ohki Message-ID: <20060707165643.GA60398@FreeBSD.czest.pl> Mail-Followup-To: Atsuo Ohki , Robert Watson , freebsd-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org References: <200607060842.k668gK2K021382@smr00.gssm.otsuka.tsukuba.ac.jp> <200607071139.k67BdTqH027312@smr00.gssm.otsuka.tsukuba.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline In-Reply-To: <200607071139.k67BdTqH027312@smr00.gssm.otsuka.tsukuba.ac.jp> User-Agent: Mutt/1.5.11 X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-2.0.2 (freebsd.czest.pl [80.48.250.4]); Fri, 07 Jul 2006 15:11:04 +0000 (UTC) Cc: freebsd-bugs@FreeBSD.org, freebsd-gnats-submit@FreeBSD.org, Robert Watson Subject: Re: kern/99758: chown/chmod pty slave side in kernel X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jul 2006 14:55:54 -0000 On Fri, Jul 07, 2006 at 08:39:29PM +0900, Atsuo Ohki wrote: > I writes: > > Robert Watson writes: > >> ... > >> The tty_pts implementation in 7-CURRENT does the same, except more so, by > >> forcing revocation of the pty on last close. Unfortunately, this triggers > >> bugs in devfs. Your help in getting the 7.x pts implementation up and > >> running would be much appreciated. Take a look at src/sys/kern/tty_pts.c. > > > > Thank you for interested in my patch. > > > > I don't have a machine to run 7-current now, > > Now I have a machine running 7-current (cvs tag HEAD). > > Could you give me a pointer to how to trigger bugs in devfs > releated with pts implementation? Hello, Sure. I'm willing to hear more about your changes and patches! To reproduce problems I've seen, try to download Peter Wemm's stress suite, compile it, and run PTY code. As I recall, after unpacking stress2.tgz you'll have run.sh script and pty. You run it by typing: ./run ./pty. Try to switch to other virtual terminal and login. For debugging stuff, where I liked to put printf()s and KASSERTs here and there, I used window(1), because it doesn't bomp you with tons of function calls, and creates (AFAICT) 2 vTTYs. Let me know if you find something, -- Wojciech A. Koszek wkoszek@FreeBSD.org http://FreeBSD.czest.pl/dunstan/