Messages in this thread | | | Date | Mon, 17 Aug 1998 10:48:54 -0400 (EDT) | From | "Richard B. Johnson" <> | Subject | Out of ptys |
| |
More info on 'out of ptys' error when logging in on the network. I made a 'service' that runs `strace in.telnetd`. Here is a heavily-edited script of the session...
Script started on Mon Aug 17 10:27:52 1998 # telnet quark 12345 Trying 204.178.40.236... Connected to quark.analogic.com. Escape character is '^]'. [SNIPPED shared library stuff] setsockopt(0, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0 stat("/dev/ptyp0", {st_mode=S_IFCHR|0666, st_rdev=makedev(2, 0), ...}) = 0 open("/dev/ptyp0", O_RDWR) = -1 EIO (I/O error) open("/dev/ptyp1", O_RDWR) = -1 EIO (I/O error) open("/dev/ptyp2", O_RDWR) = 3 brk(0x8011000) = 0x8011000 [Okay, we got a pty]
[SNIPPED socket stuff] write(0, "\377\375\30\377\375 \377\375#\377"..., 12) = 12 read(0, "\377\373\30\377\373 \377\373#\377"..., 1024) = 12 write(0, "\377\372 \1\377\360\377\372#\1\377"..., 24) = 24 read(0, "\377\372 \00038400,38400\377\360"..., 1024) = 110 ioctl(3, TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(3, TCSETS, {B9600 opost isig icanon echo ...}) = 0 brk(0x8012000) = 0x8012000 brk(0x8013000) = 0x8013000 open("/usr/lib/terminfo/v/vt100-am", O_RDONLY) = 4 read(4, "\32\1,\0\25\0\7\0\16\1\363\1", 12) = 12 brk(0x8014000) = 0x8014000 read(4, "vt100|vt100-am|dec vt100 (w/adva"..., 44) = 44 brk(0x8015000) = 0x8015000 read(4, "\0\1\0\0\1\0\0\0\0\0\0\0\0\1\1\0"..., 21) = 21 read(4, "\0", 1) = 1 read(4, "P\0\10\0\30\0\377\377\377\377\377"..., 14) = 14 read(4, "\377\377\0\0\2\0\4\0\25\0\32\0&\0"..., 540) = 540 read(4, "\7\0\r\0\33[%i%p1%d;%p2%dr\0\33["..., 499) = 499 close(4) = 0
ioctl(1, TCGETS, 0xbffff1dc) = -1 EINVAL (Invalid argument) ioctl(2, TCGETS, 0xbffff1d0) = -1 EINVAL (Invalid argument)
These are invalid because the first 2 opens failed. We don't have fds 1 and 2, only 0 and 3. (3 was the pty).
brk(0x8016000) = 0x8016000 fork() = 264 sigaction(SIGHUP, {SIG_IGN}, {SIG_DFL}) = 0 ioctl(3, TCGETS, {B9600 opost isig icanon echo ...}) = 0 write(0, "\377\373\3\377\375\1\377\375\37\377"..., 15) = 15 read(0, "\377\375\3\377\374\1\377\373\37\377"..., 1024) = 24 ioctl(3, TCGETS, {B9600 opost isig icanon echo ...}) = 0 ioctl(3, TIOCSWINSZ, {ws_row=25, ws_col=80, ws_xpixel=33, ws_ypixel=0}) = 0 ioctl(3, TIOCPKT, [1]) = 0 ioctl(0, FIONBIO, [1]) = 0 ioctl(3, FIONBIO, [1]) = 0 setsockopt(0, SOL_SOCKET, SO_OOBINLINE, [1], 4) = 0 sigaction(SIGTSTP, {SIG_IGN}, {SIG_DFL}) = 0 sigaction(SIGTTOU, {SIG_IGN}, {SIG_DFL}) = 0 sigaction(SIGCHLD, {0x8004660, [], SA_RESTART}, {SIG_DFL}) = 0
open("/dev/tty", O_RDWR) = -1 ENXIO (No such device or address)
This exists and should succeed:
File: "tty" Size: 0 Filetype: Character Device Mode: (0666/crw-rw-rw-) Uid: ( 0/ root) Gid: ( 5/ tty) Device: 8,1 Inode: 6756 Links: 1 Device type: 5,0 Access: Mon Aug 17 10:44:32 1998(00000.00:01:06) Modify: Fri Aug 14 18:04:49 1998(00002.16:40:49) Change: Fri Aug 14 18:04:49 1998(00002.16:40:49)
Cheers, Dick Johnson ***** FILE SYSTEM WAS MODIFIED ***** Penguin : Linux version 2.1.115 on an i586 machine (66.15 BogoMips). Warning : It's hard to remain at the trailing edge of technology.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html
| |