Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Mar 1997 10:48:05 -0600 (CST)
From:      Brad Noble <bnoble@siue.edu>
To:        questions@freebsd.org
Subject:   getty works, login hangs
Message-ID:  <199703281648.KAA04537@shiva.ee.siue.edu>

next in thread | raw e-mail | index | archive | help
I'm having a problem with the login program hanging when getty
passes control to it.

To eliminate any extraneous device influences, I've looped sio0 to
sio1 using a null modem cable.  If I use tip on both serial ports
simultaneously, everything communicates fine.  When I enable getty
on one of the ports and tip to it from the other port, getty accepts
a login name, forks login, which gets stuck.  Eventually login
times out and getty restarts.  Here's what it looks like:

========================================================================
Running tip from cuaa0:

root@infoserver.ee.siue.edu# tip slink
connected
 
   FreeBSD (infoserver.ee.siue.edu) (ttyd1)
 
login: bnoble
Password:Login timed out after 300 seconds
   FreeBSD (infoserver.ee.siue.edu) (ttyd1)
    
login:

========================================================================
What's happening on ttyd1:

root@infoserver.ee.siue.edu# ps auxwtd1
USER       PID %CPU %MEM   VSZ  RSS  TT  STAT STARTED       TIME COMMAND
root     23088  0.0  1.1   156  520  d1  Is+  10:22AM    0:00.02 /usr/libexec/getty std.38400 ttyd1
root@infoserver.ee.siue.edu# !p
ps auxwtd1
USER       PID %CPU %MEM   VSZ  RSS  TT  STAT STARTED       TIME COMMAND
root     23088  0.1  1.4   220  668  d1  S<s+ 10:22AM    0:00.06 login -p bnoble
root@infoserver.ee.siue.edu# !p
ps auxwtd1
USER       PID %CPU %MEM   VSZ  RSS  TT  STAT STARTED       TIME COMMAND
root     23088  0.0  1.4   220  668  d1  I<s+ 10:22AM    0:00.06 login -p bnoble

I've tested this on a 686 running 2.1.6 and 2.2 and also on a 586
running 2.1.5.  Both system do exactly the samething.  Does anyone
have any insight into this problem?

Thanks,

-Brad
========================================================================
Brad Noble                                   bnoble@ee.siue.edu
Department of Electrical Engineering         http://www.ee.siue.edu/~bnoble
Southern Illinois University at Edwardsville 618-692-2524



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703281648.KAA04537>