[3559] in Athena Bugs
Re: Tracking the elusive no initial xterm bug
daemon@ATHENA.MIT.EDU (Dave Morrison)
Thu Nov 2 04:26:46 1989
To: bugs@ATHENA.MIT.EDU
From: Dave Morrison <drmorris@ATHENA.MIT.EDU>
Cc: probe@ATHENA.MIT.EDU
Date: Wed, 01 Nov 89 21:03:30 EST
A user who had an occurance came into the consulting office recently.
He was still logged in so I ran over and tried the stuff on the sheet
Richard made.
Nothing brought up that xterm.
I telnetted in, which did nothing. I did a ps looking for an xterm
process. None existed. I tried scanttys anyway, and nothing happened.
Here is a ps alxww: There is more after the ps so keep reading...
F UID PID PPID CP PRI NI ADDR SZ RSS WCHAN STAT TT TIME COMMAND
3 0 0 0 0 -25 0 4fe 0 0 runout D ? 0:52 swapper
1000001 0 1 0 0 5 0 1cec 21 3 proc I ? 0:26 init
1000003 0 2 0 1 -24 0 9441216 0 proc D ? 7:08 pagedaemon
1000001 0 58 1 1 1 0 13a6 155 52 selwait I ? 2:15 /etc/named /etc/named.boot
1000003 0 72 1 0 -2 0 ec8 59 0 usrpt D ? 0:00
1000003 0 74 1 0 -3 0 e56 59 0 quotaNQUOT D ? 0:58
1000003 0 75 1 22 -2 0 fe2 59 0 afs_brsDae D ? 0:03
1000003 0 76 1 11 -2 0 10a0 59 0 afs_brsDae D ? 0:04
1000001 0 132 1 0 1 0 1710 81 29 selwait I ? 0:18 /etc/syslogd
1000201 0 172 1 1 15 0 1510 4 3 u I ? 4:03 /etc/update -n
1000201 0 176 1 2 15 0 11b0 28 14 u I ? 3:33 /etc/cron
1000001 0 183 1 1 1 0 1500 40 29 selwait I ? 0:06 /etc/inetd
1000000 0 185 1 0 1 0 0 4 0 async_bufh IW ? 0:13 /etc/biod 4
1000000 0 186 1 0 1 0 0 4 0 async_bufh IW ? 0:15 /etc/biod 4
1000000 0 187 1 0 1 0 0 4 0 async_bufh IW ? 0:17 /etc/biod 4
1000000 0 188 1 0 1 0 0 4 0 async_bufh IW ? 0:23 /etc/biod 4
1000001 0 194 1 0 1 0 1d2c 37 7 selwait I ? 0:25 /etc/timed
1400001 0 210 1 5 1 0 aac 64 24 mbutl I ? 3:48 /etc/athena/zhm
1400000 0 24057 1 1 5 0 0 62 0 proc IW ? 0:04 - ttyv0 console (toehold)
1008001 0 24082 24057 9 1 0 198c 822 224 selwait S ? 7:31 - -su -bs :0 ttyv0 (Xqvss)
100800110260 24380 1 12 1 0 1e74 245 121 selwait I ? 0:06 /usr/etc/zwgc
1000001 0 24405 176 7 5 0 b44 11 9 proc I ? 0:00 sh -c sleep `echo $ADDR | awk -F. '{ print $4 * 7 }' `; /usr/lib/sendmail -q?
1000201 0 24408 24405 2 15 0 b50 4 1 u I ? 0:00 sleep 287
1008000 0 22708 1 69 1 0 0 177 0 mbutl IW p0 0:01 xterm -geometry 80x56+0+0
1008000 0 22710 22708 3 4 0 0 186 0 pt_tty IW p0 0:00 xterm -geometry 80x56+0+0
1008001 0 24364 24057 1 1 0 167c 450 34 selwait I p0 0:14 - -L -config /etc/athena/xdm/xlogin-config -display unix:0 ttyv0 (xlogin)
100000010260 24368 24364 23 5 0 0 15 0 proc IW p0 0:00 sh /etc/athena/xdm/Xsession .xsession
100820110260 24373 24368 10 15 0 1d92 127 1 u I p0 0:06 csh -f /usr/athena/lib/init/xsession
100800110260 24378 1 1 1 0 1726 90 31 selwait S p0 0:04 uwm
140000110260 24396 24373 42 1 0 1dca 88 2 mbutl I p0 0:04 znol on
140000010260 24397 24373 45 1 0 0 77 0 mbutl IW p0 0:00 zwrite rjlgb
1008001 0 24399 1 8 1 0 18b4 254 156 selwait S p0 0:10 xterm
100c00110260 24400 24399 4 -1 0 12da 0 0 proc D p2 0:00 (csh)
100000110260 24436 24400 33 33 0 16ba 101 87 R p2 0:00 (ps)
900110260 24437 24400 3 -5 0 1992 131 69 buf D p2 0:06 (csh)
1000001 0 24421 183 2 1 0 15a2 29 18 selwait I p3 0:00 telnetd
1400001 0 24422 24421 28 5 0 1a5c 108 66 proc I p3 0:01 login -h COPILOT.MIT.EDU -p
1008001 0 24423 24422 24 3 0 9bc 128 65 pt_tty I p3 0:01 -csh (csh)
1008000 0 4685 1 8 4 0 0 441 0 pt_tty IW v0 0:09 - -L -config /etc/athena/xdm/xlogin-config -display unix:0 ttyv0 (xlogin)
Here's what ls -l /dev/tty{p,v}* revealed:
crwxrw-rw- 1 rjlgb 20, 0 Oct 26 21:34 /dev/ttyp0
crw--w--w- 1 19356 20, 1 Oct 26 13:30 /dev/ttyp1
crw--w--w- 1 rjlgb 20, 2 Oct 26 21:49 /dev/ttyp2
crw--w---- 1 root 20, 3 Oct 26 21:44 /dev/ttyp3
crw-rw-rw- 1 root 20, 4 Oct 26 18:47 /dev/ttyp4
crw-rw-rw- 1 root 20, 5 Oct 26 18:13 /dev/ttyp5
crw-rw-rw- 1 root 20, 6 Oct 26 18:13 /dev/ttyp6
crw-rw-rw- 1 root 20, 7 Oct 26 18:14 /dev/ttyp7
crw-rw-rw- 1 root 20, 8 Oct 26 18:14 /dev/ttyp8
crw-rw-rw- 1 root 20, 9 Oct 26 18:14 /dev/ttyp9
crw-rw-rw- 1 root 20, 10 Oct 26 18:15 /dev/ttypa
crw-rw-rw- 1 root 20, 11 Oct 27 1988 /dev/ttypb
crw-rw-rw- 1 root 20, 12 Oct 27 1988 /dev/ttypc
crw-rw-rw- 1 root 20, 13 Oct 27 1988 /dev/ttypd
crw-rw-rw- 1 root 20, 14 Oct 27 1988 /dev/ttype
crwxrw-rw- 1 10172 20, 15 Oct 23 12:27 /dev/ttyv0
Counting up xterms, the one he was missing would have been ttyp1 (ttyv0
due to old xlogin not dying, ttyp0 for his console). Don't know if that
helps. On the other ttys, I brought up the other xterm from the window
manger on p2, and I was logged in as root on p3.
A final note. When when to logout he got the following:
even end_session -force didn't work. I finally gave up and did a kill.
************************************************************
Your session is still running.
end_session failed because:
The file /tmp/session_gate_pid.10260 doesn't exist or is
not readable.
If you are running a .xsession file other than the system
default, and that file does not invoke the program
'session_gate', then end_session will not work. You should
end your session by terminating the last process you started
in your .xsession file.
If you did run session_gate, then the file was somehow
deleted. Try typing 'end_session -force' (this time only)
to end your session.
************************************************************
athena% ps aux
USER PID %CPU %MEM SZ RSS TT STAT TIME COMMAND
root 24082 13.4 16.9 1067 478 ? S 8:13 - -su -bs :0 ttyv0 (Xqvss)
rjlgb 24548 4.6 4.4 131 120 p2 R 0:00 (ps)
root 24463 3.3 12.2 410 347 p0 S 0:03 xterm
rjlgb 24378 1.5 3.3 180 88 p0 S 0:06 uwm
rjlgb 24464 0.3 4.6 235 127 p2 S 0:04 (csh)
root 172 0.1 0.4 5 4 ? I 4:04 /etc/update -n
root 176 0.1 1.1 48 25 ? I 3:33 /etc/cron
rjlgb 24380 0.0 6.9 355 193 ? I 0:08 /usr/etc/zwgc
root 58 0.0 2.6 209 68 ? I 2:15 /etc/named /etc/named.boot
root 194 0.0 1.0 66 21 ? I 0:25 /etc/timed
root 132 0.0 1.5 126 38 ? I 0:18 /etc/syslogd
root 24421 0.0 0.9 57 19 p3 I 0:00 telnetd
root 2 0.0 0.5 1216 0 ? D 7:09 pagedaemon
root 0 0.0 0.2 0 0 ? D 0:52 swapper
root 24364 0.0 2.8 656 71 p0 I 0:14 - -L -config /etc/athena/xdm/xlogin-config -display unix:0 ttyv0 (xlogin
root 74 0.0 0.2 77 0 ? D 0:58
root 1 0.0 0.4 37 5 ? I 0:26 init
root 24423 0.0 3.7 236 99 p3 I 0:01 -csh (csh)
root 24422 0.0 2.9 174 76 p3 I 0:01 login -h COPILOT.MIT.EDU -p
root 210 0.0 1.1 113 25 ? I 3:48 /etc/athena/zhm
root 183 0.0 1.1 63 26 ? I 0:06 /etc/inetd
root 75 0.0 0.2 77 0 ? D 0:03
root 76 0.0 0.2 77 0 ? D 0:04
root 188 0.0 0.0 11 0 ? IW 0:23 /etc/biod 4
root 22708 0.0 0.0 372 161 p0 IW 0:01 xterm -geometry 80x56+0+0
root 72 0.0 0.2 77 0 ? D 0:00
root 24057 0.0 0.0 111 0 ? IW 0:04 - ttyv0 console (toehold)
rjlgb 24368 0.0 0.0 33 0 p0 IW 0:00 sh /etc/athena/xdm/Xsession .xsession
root 186 0.0 0.0 11 0 ? IW 0:15 /etc/biod 4
rjlgb 24397 0.0 0.0 124 0 p0 IW 0:00 zwrite rjlgb
rjlgb 24396 0.0 0.0 135 0 p0 IW 0:04 znol on
root 187 0.0 0.0 11 0 ? IW 0:17 /etc/biod 4
root 185 0.0 0.0 11 0 ? IW 0:13 /etc/biod 4
rjlgb 24373 0.0 0.0 235 47 p0 IW 0:06 csh -f /usr/athena/lib/init/xsession
root 4685 0.0 0.0 647 43 v0 IW 0:09 - -L -config /etc/athena/xdm/xlogin-config -display unix:0 ttyv0 (xlogin
root 22710 0.0 0.0 381 161 p0 IW 0:00 xterm -geometry 80x56+0+0