Subject: kern/28417: ptyfs hangs the box when launching a xterm.
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Juan RP <juan@xtraeme.nopcode.org>
List: netbsd-bugs
Date: 11/25/2004 01:09:00
>Number:         28417
>Category:       kern
>Synopsis:       ptyfs hangs the box when launching a xterm.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 25 01:09:00 +0000 2004
>Originator:     Juan RP
>Release:        NetBSD 2.99.10 i386
>Organization:
>Environment:


System: NetBSD 2.99.10 (Nocturno) #118: Thu Nov 25 01:49:39 CET 2004
	juan@Nocturno:/home/juan/build/obj/sys/arch/i386/compile/Nocturno



>Description:


mount_ptyfs(8) hangs my box when launching a xterm
using xorg from pkgsrc (dunno about XFree86).

I have this line in /etc/fstab:

ptyfs /dev/pts ptyfs rw 0 0

And my kernel has COMPAT_BSDPTY and file-system PTYFS.

[juan@Nocturno][~]> ident /netbsd |grep tty
     $NetBSD: tty.c,v 1.170 2004/11/06 02:03:20 wrstuden Exp $
     $NetBSD: tty_conf.c,v 1.44 2004/03/23 13:22:33 junyoung Exp $
     $NetBSD: tty_bsdpty.c,v 1.2 2004/11/24 22:19:27 christos Exp $
     $NetBSD: tty_pty.c,v 1.82 2004/11/13 19:16:18 christos Exp $
     $NetBSD: tty_ptm.c,v 1.3 2004/11/24 22:19:27 christos Exp $
     $NetBSD: tty_subr.c,v 1.27 2004/03/23 13:22:05 junyoung Exp $
     $NetBSD: tty_tty.c,v 1.23 2003/10/15 11:29:00 hannken Exp $
     $NetBSD: tty_43.c,v 1.18 2004/04/25 06:23:40 matt Exp $
[juan@Nocturno][~]>


>How-To-Repeat:



Add the following line into /etc/fstab:

ptyfs /dev/pts ptyfs rw 0 0

Launch X11 (XFree86 or xorg) and run a xterm, the system will hang.


>Fix:


Sorry, dunno.