Subject: port-sparc/1314: utmp / who bug.
To: None <gnats-bugs@gnats.netbsd.org>
From: Neil J. McRae <neil@demon.net>
List: netbsd-bugs
Date: 08/04/1995 15:49:26
>Number:         1314
>Category:       port-sparc
>Synopsis:       After a number of xterms are opened up utmp is not updated correctly
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug  4 06:05:03 1995
>Last-Modified:
>Originator:     Neil J. McRae
>Organization:
Neil J. McRae.                                       Demon Internet
neil@demon.net
>Release:        August 2 12:04
>Environment:
Sun Sparc IPX, NetBSD-Current 2/8/95 , libs 15/6/95, bins 15/6/95,
System: NetBSD NetBSD.demon.co.uk 1.0A NetBSD 1.0A (NETBSD) #1: Fri Aug 4 12:17:47 BST 1995 neil@NetBSD.demon.co.uk:/usr/src/sys/arch/sparc/compile/NETBSD sparc


>Description:
   When running a kernel with more that 32 pty's after opening ttyqe
   /var/run/utmp is not updated correctly:
   Note that I have ttyp0 through to ttyr5 in use, but who/finger/w does not
   indicate them, and where I to open another xterm the ttyr5 would be over
   written with an entry for ttyr6

neil     ttyr5    Aug  4 15:39  (:0.0)
neil     console  Aug  4 15:34 
neil     ttyp0    Aug  4 15:35  (:0.0)
neil     ttyp2    Aug  4 15:35  (:0.0)
neil     ttyp3    Aug  4 15:35  (:0.0)
neil     ttyp4    Aug  4 15:35  (:0.0)
neil     ttyp5    Aug  4 15:35  (:0.0)
neil     ttyp6    Aug  4 15:35  (:0.0)
neil     ttyp7    Aug  4 15:35  (:0.0)
neil     ttyp8    Aug  4 15:35  (:0.0)
neil     ttyp9    Aug  4 15:35  (:0.0)
neil     ttypa    Aug  4 15:35  (:0.0)
neil     ttypb    Aug  4 15:35  (:0.0)
neil     ttypc    Aug  4 15:35  (:0.0)
neil     ttypd    Aug  4 15:35  (:0.0)
neil     ttype    Aug  4 15:35  (:0.0)
neil     ttypf    Aug  4 15:35  (:0.0)
neil     ttyq0    Aug  4 15:35  (:0.0)
neil     ttyq1    Aug  4 15:35  (:0.0)
neil     ttyq2    Aug  4 15:35  (:0.0)
neil     ttyq3    Aug  4 15:35  (:0.0)
neil     ttyq4    Aug  4 15:35  (:0.0)
neil     ttyq5    Aug  4 15:35  (:0.0)
neil     ttyq6    Aug  4 15:35  (:0.0)
neil     ttyq7    Aug  4 15:35  (:0.0)
neil     ttyq8    Aug  4 15:35  (:0.0)
neil     ttyq9    Aug  4 15:35  (:0.0)
neil     ttyqa    Aug  4 15:35  (:0.0)
neil     ttyqb    Aug  4 15:35  (:0.0)
neil     ttyqc    Aug  4 15:36  (:0.0)
neil     ttyqd    Aug  4 15:36  (:0.0)
neil     ttyqe    Aug  4 15:36  (:0.0)


>How-To-Repeat:
    Build a current kernel with more than 32 pty support and open up the 
    lots of xterms. If a user remotely logs in his entry is also not
    added to utmp.

>Fix:
    It looks like a hard limit in utmp is being reached? Work around, no
    idea. 
>Audit-Trail:
>Unformatted: