[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

EOVERFLOW while accessing /dev/pts/256



[Please Cc me, I'm not subscribed.]

I'm not even sure this is a bug... But it almost looks like that old
pty devices are not reused.
What can I do to regain access to my screen session? Rebooting this
this server would be quite painful.

md@attila:~$ uname -a
Linux attila 2.6.6-b50 #1 Mon May 10 23:30:25 CEST 2004 ppc GNU/Linux
md@attila:~$ tty
/dev/pts/256
md@attila:~$ screen -x
Cannot access '/dev/pts/256': Value too large for defined data type
[Exit 1]
md@attila:~$ d /dev/pts/
totale 0
crw--w----  1 md tty 136,   1 Sep  3 18:19 1
crw--w----  1 md tty 136,  10 Sep 12 20:44 10
crw--w----  1 md tty 136, 139 Sep 13 10:15 139
crw--w----  1 md tty 136, 143 Sep 13 08:53 143
crw--w----  1 md tty 136,   2 Sep 13 10:15 2
crw--w----  1 md tty 136, 211 Sep 12 20:29 211
crw--w----  1 md tty 136, 219 Sep 13 10:04 219
crw--w----  1 md tty 136, 251 Sep 11 00:10 251
crw--w----  1 md tty 136,   0 Sep 13 10:15 256
crw--w----  1 md tty 136,   5 Sep 10 15:01 5
crw--w----  1 md tty 136,   6 Sep 13 10:15 6
md@attila:~$

I tried logging in again and now the shell is using /dev/pty/257 with
minor 1.


When running screen -x:

[...]
ioctl(0, TCGETS or TCGETS, {B9600 opost isig icanon echo ...}) = 0
readlink("/proc/self/fd/0", 0x1006a5a0, 4095) = -1 EACCES (Permission denied)
fstat64(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
stat64("/dev/pts", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
open("/dev/pts", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
getdents64(3, /* 13 entries */, 1024)   = 312
stat64("/dev/pts/256", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0close(3)                                = 0
stat("/dev/pts/256", 0x7fffe600)        = -1 EOVERFLOW (Value too large for defined data type)
[...]

-- 
ciao, |
Marco | [7961 peuj7Wpgw12Zg]



Reply to: