From: e...@praseodymium.cistron.nl (Edvard Tuinder)
Subject: Lost pts devices on Sol-2.5 (kernel bug?)
Date: 1996/02/22
Message-ID: <4ggfva$ng7@wildlife.tnix.net>#1/1
X-Deja-AN: 140578597
distribution: inet
organization: Cistron Internet Services BV
nntp-posting-user: ed
newsgroups: comp.unix.solaris

Hi,

I noticed something weird on several Solaris-2.5 hosts.  Some pts devices
are no longer being used when people login:

ed         pts/5        Feb 21 18:49	(einstein.cistron.nl)
ewout      pts/6        Feb 21 19:11	(gaya.tnix.net)
ed         pts/0        Feb 22 01:50	(gaya.tnix.net)
ed         pts/1        Feb 22 01:51	(gaya.tnix.net)
ed         pts/2        Feb 22 01:58	(gaya.tnix.net)
ed         pts/7        Feb 22 01:59	(gaya.tnix.net)

As you can see, devices pts/3 and pts/4 are not allocated. The last use
of the devices has been way back:

ed        pts/3        einstein.cistron Sat Feb  3 05:31 - 05:37  (00:05)
ewout     pts/3        gaya.tnix.net    Fri Feb  2 14:59 - 15:13  (00:13)
ed        pts/4        einstein.cistron Tue Feb 13 22:21 - 22:22  (00:00)
ed        pts/4        gaya.tnix.net    Mon Feb 12 23:16 - 23:44  (00:28)

I thought it might have something to do with open file descriptors, so
fuser is the way to go:

# fuser -u /dev/pts/3
/dev/pts/3:    21853o(news)   20039o(root)   20037o(root)   17422o(root)

So the processes 21853, 20039, 20037 and 17422 should have an open file
reference to /dev/pts/3.

However, there are no processes running with these pid's. Same goes for 
a check on /dev/pts/4.

Anybody any idea on what is going on? I have seen this fenomena on several
hosts with the same symptoms, open file references, but no matching pid's.
Did I come across a kernel bug or something?

One system has the SunPC patch installed, the others are running vanilla
2.5

Ed
-- 
Edvard Tuinder
Cistron Internet Services		Finger e...@troi.cistron.nl for PGP key
            ``Huh nice.. Totally surrounded by no beer at all.''