Subject: Re: PR/32682 CVS commit: src/sys/kern
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Hauke Fath <hf@spg.tu-darmstadt.de>
List: netbsd-bugs
Date: 10/06/2006 11:40:03
The following reply was made to PR kern/32682; it has been noted by GNATS.

From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org,
	christos@zoulas.com (Christos Zoulas)
Subject: Re: PR/32682 CVS commit: src/sys/kern
Date: Fri, 6 Oct 2006 13:38:13 +0200

 Am 22.09.2006 um 18:25 Uhr +0000 schrieb Christos Zoulas:
 >  You also need to create the device node... Hopefully it will work.
 
 Looks like it's... at least... not enough.
 
 I've had one report where the abort trap went away after trying to 
 start Matlab a few times; and I have just seen and ktraced a case 
 where Matlab behaved just like before the patch. The ktrace ends in
 
 [...]
    3309 MATLAB   CALL  rt_sigaction(0x11,0xbfbf63a8,0xbfbf631c,8)
    3309 MATLAB   RET   rt_sigaction 0
    3309 MATLAB   CALL  rt_sigprocmask(1,0xbfbf6520,0,8)
    3309 MATLAB   RET   rt_sigprocmask 0
    3309 MATLAB   CALL  open(0xb9f56725,0x8002,0)
    3309 MATLAB   NAMI  "/emul/linux/dev/ptmx"
    3309 MATLAB   NAMI  "/emul/linux"
    3309 MATLAB   NAMI  "/emul/linux/dev/ptmx"
    3309 MATLAB   RET   open 8
    3309 MATLAB   CALL  ioctl(8,_IO('T',0x1,0),0xbfbf550c)
    3309 MATLAB   RET   ioctl 0
    3309 MATLAB   CALL  ioctl(8,_IOW('T',0x30,0x4),0xbfbf563c)
    3309 MATLAB   GIO   fd 8 read 40 bytes
         "\^A\0\0\0\^A\0\0\0/dev/null\0\0\0\0\0\0\0/dev/pts/1\0\0\0\0\0\0"
    3309 MATLAB   RET   ioctl 0
    3309 MATLAB   CALL  stat64(0xbfbf568c,0xbfbf55c4)
    3309 MATLAB   NAMI  "/emul/linux/dev/pts/1"
    3309 MATLAB   NAMI  "/dev/pts/1"
    3309 MATLAB   RET   stat64 0
    3309 MATLAB   CALL  statfs(0xbfbf568c,0xbfbf668c)
    3309 MATLAB   NAMI  "/emul/linux/dev/pts/1"
    3309 MATLAB   NAMI  "/dev/pts/1"
    3309 MATLAB   RET   statfs 0
    3309 MATLAB   CALL  ioctl(8,_IOR('T',0x31,0x4),0xbfbf66c8)
    3309 MATLAB   RET   ioctl -1 errno -22 Invalid argument
    3309 MATLAB   CALL  ioctl(8,_IO('T',0x1,0),0xbfbf657c)
    3309 MATLAB   RET   ioctl 0
    3309 MATLAB   CALL  ioctl(8,_IOW('T',0x30,0x4),0xbfbf66ac)
    3309 MATLAB   GIO   fd 8 read 40 bytes
         "\^A\0\0\0\^A\0\0\0/dev/null\0\0\0\0\0\0\0/dev/pts/1\0\0\0\0\0\0"
    3309 MATLAB   RET   ioctl 0
    3309 MATLAB   CALL  stat64(0xbd3d5810,0xbfbf6634)
    3309 MATLAB   NAMI  "/emul/linux/dev/pts/1"
    3309 MATLAB   NAMI  "/dev/pts/1"
    3309 MATLAB   RET   stat64 0
    3309 MATLAB   CALL  rt_sigaction(0x11,0xbfbf63a8,0xbfbf631c,8)
    3309 MATLAB   RET   rt_sigaction 0
    3309 MATLAB   CALL  rt_sigprocmask(1,0xbfbf6520,0,8)
    3309 MATLAB   RET   rt_sigprocmask 0
    3309 MATLAB   CALL  open(0xba99b2d0,0x8002,0)
    3309 MATLAB   NAMI  "/emul/linux/dev/pts/1"
    3309 MATLAB   NAMI  "/dev/pts/1"
    3309 MATLAB   RET   open -1 errno -13 Permission denied
    3309 MATLAB   CALL  rt_sigprocmask(1,0xbfbf04e0,0,8)
    3309 MATLAB   RET   rt_sigprocmask 0
    3309 MATLAB   CALL  kill(0xced, SIGABRT)
    3309 MATLAB   RET   kill 0
    3309 MATLAB   PSIG  SIGABRT SIG_DFL
    3309 MATLAB   NAMI  "MATLAB.core"
    3441 MATLAB   RET   poll 0
    3441 MATLAB   CALL  getppid
    3441 MATLAB   RET   getppid 1
    3441 MATLAB   CALL  kill(0xeef, SIGKILL)
    3441 MATLAB   RET   kill -1 errno -3 No such process
    3441 MATLAB   CALL  kill(0xcf2, SIGKILL)
    3441 MATLAB   RET   kill 0
    3314 MATLAB   RET   nanosleep -1 errno -4 Interrupted system call
    3314 MATLAB   PSIG  SIGKILL SIG_DFL
    3441 MATLAB   PSIG  SIGRT1 caught handler=0xbd4be460 
 mask=(1,2,3,4,6,8,10,11,12,13,14,15,16,18,19,20,21,22,23,24,25,26,27,28,30,31,32,33))
    3441 MATLAB   CALL  sigreturn(0x80a1ec0)
    3441 MATLAB   RET   sigreturn -1 errno -2 No such file or directory
    3441 MATLAB   CALL  exit_group(0)
 
 Unfortunately, I forgot to check the content and permissions of 
 /dev/pts before rebooting the machine. Will do next time...
 
 	hauke
 
 -- 
 /~\  The ASCII Ribbon Campaign                    Hauke Fath
 \ /    No HTML/RTF in email	        Institut für Nachrichtentechnik
   X     No Word docs in email	                  TU Darmstadt
 / \  Respect for open standards              Ruf +49-6151-16-3281