Warning: dev (03:01) tty->count(2) != #fd's(1) in do_tty_hangup ??

Warning: dev (03:01) tty->count(2) != #fd's(1) in do_tty_hangup ??

Post by Pascal A. Dupu » Sun, 01 Feb 1998 04:00:00



Hello,

This problem recently appeared when launching the Midnight Commander. I got
messages like : subshell.c : unable to open master slave of pty. The
problem also appeared in rxvt. It tried to open all pty, failed and died.
I noticed the message in my log file, and located in
linux/drivers/char/tty_io.c, where the function do_tty_hangup call
check_tty_count in the same file. I recreated all tty and pty, to
no available. Rebooting was the cure ... Does someone know what is causing
this problem ? How could I track it ?

My config : linux-2.0.33, gcc-2.7.2.3, glibc-2.0.6 as main library, with
a number of applications still running under libc-5.4.38. I recompiled most
stuff accessing tty : bash, agetty, login, mc, ... under the glibc2 system.

Pascal A. Dupuis

--
The Tao doesn't take sides; it gives birth to both wins and losses.
The Guru doesn't take sides; she welcomes both hackers and lusers.
The Tao is like a stack: the data changes but not the structure.
the more you use it, the deeper it becomes;
the more you talk of it, the less you understand.  Hold on to the root.

 
 
 

Warning: dev (03:01) tty->count(2) != #fd's(1) in do_tty_hangup ??

Post by Meelis Roo » Sun, 01 Feb 1998 04:00:00


Have had the same warnings (except maybe the numbers). Kernel 2.0.3x
(probably was 2.0.30). On bootup, RC5 client was started up from
/etc/rc.d/rc.local using su to a normal user. On half boots, it gave
some messages on tty1 but cleaned the screen afretwards. It also logged
the same messages to syslog. Several of them.
But afterwards everything is as usual and teh system works fine.

--

                        www:    http://www.cs.ut.ee/~mroos/

 
 
 

1. dev (03:01) tty->count(1) != #fd's(2)

Hi,

Can anybody explain what these syslog messages could mean?

Jul  4 00:53:46 helios kernel: Warning: dev (03:02) tty->count(1) !=
#fd's(2) in release_dev
Jul 10 16:07:13 helios kernel: Warning: dev (03:03) tty->count(1) !=
#fd's(2) in release_dev
Jul 11 03:55:36 helios kernel: Warning: dev (03:00) tty->count(1) !=
#fd's(2) in release_dev
Jul 17 01:38:09 helios kernel: Warning: dev (03:02) tty->count(1) !=
#fd's(2) in release_dev
Jul 30 11:40:00 helios kernel: Warning: dev (03:03) tty->count(1) !=
#fd's(2) in release_dev
Aug  2 16:51:04 helios kernel: Warning: dev (03:01) tty->count(1) !=
#fd's(2) in do_tty_hangup
Aug  2 16:55:30 helios kernel: Warning: dev (03:02) tty->count(1) !=
#fd's(2) in do_tty_hangup

I am having some very strange problems with my Linux box
and I believe that understanding these messages could help.

~> mount
/dev/hda3 on / type ext2 (rw)
/dev/hda4 on /usr type ext2 (rw)
/dev/hda1 on /var type ext2 (rw)

/dev/hda2 is a swap partition.

I have RedHat 4.2, kernel 2.0.30

2. Installing Open Server 5, can't get CDRom working

3. Warning: dev (04:c3) tty->count(1) != #fd's(2) in do_tty_hangup

4. 2.4.20-pre2-ac2 pcmcia panic + OOPS

5. Interpret message: Warning: dev (03:03) tty->count(1) != #fd's(2) in do_tty_hangup

6. Quantum 740 HD and Linux

7. warning:dev (04:C0) tty->count(2) !=#fd's(3) in tty_open

8. Pentium 4 and Solaris 8 intel

9. Warning: dev (04:c0) tty->count(1) != #fd's(2) in tty_open

10. Warning: dev (pts(136,0)) tty->count(5) != #fd's(4) in tty_open

11. tty->count() != fd's(3)

12. Hard Drive errror end_request I/O error, dev 03:01, section 2326552

13. end_request: I/O error, dev 03:01