Subject: Re: ptm
To: Love <lha@stacken.kth.se>
From: Denis Lagno <dlagno@smtp.ru>
List: netbsd-bugs
Date: 06/05/2004 15:14:33
> Index: tty_pty.c
> ===================================================================
> RCS file: /sources/netbsd/NetBSD-cvs/src/sys/kern/tty_pty.c,v
> retrieving revision 1.78
> diff -u -u -w -r1.78 tty_pty.c
> --- tty_pty.c	27 May 2004 03:56:49 -0000	1.78
> +++ tty_pty.c	4 Jun 2004 19:21:15 -0000
> @@ -1512,7 +1512,7 @@
>  	switch (cmd) {
>  	case TIOCPTMGET:
>  		if ((error = pty_alloc_master(p, &cfd, &newdev)) != 0)
> -			goto bad;
> +			return error;
>  
>  		if ((error = pty_grant_slave(p, newdev)) != 0)
>  			goto bad;

thanks.  I see no panic with this patch applied.

> I can't try this since I'm updating my system.  Can you get a backtrace
> when this is happning ?

if you still interested in backtrace, it was like that:

breakpoint ...
cpu_Debugger ...
panic ...
__assert ...
fd_unused ...
fdremove ...
ptmioctl ...
spec_ioctl ...
VOP_IOCTL ...
vn_ioctl ...
sys_ioctl ...
syscall_plain ...
--- syscall (number 54) ---