Newsgroups: vmsnet.networks.tcp-ip.cmu-tek
Subject: TELNET RWAST problem
From: "Andy, Systems Manager" <udaa055@elm.cc.kcl.ac.uk>
Date: Wed, 30 Sep 92 13:55 BST
Reply-To: "Andy, Systems Manager" <UDAA055@ELM.CC.KCL.AC.UK>
Organization: The Internet
Return-Path: <SYNFUL@CMUTEK.CC.CMU.EDU>
Errors-To: SYNFUL@CMUTEK.CC.CMU.EDU
X-Listname: CMU-TEK TCP/IP Mailing list <CMU-TEK-TCP@CMUTEK.CC.CMU.EDU>
Via: uk.ac.kcl.cc.elm; Wed, 30 Sep 1992 13:53:10 +0100

Some time ago, I posted details of a problem with the TELNET part of CMUTEK, in
that its use seems to cause processes to hang in RWAST under certain
conditions. The suggested fix then was to install a patch to TTDRIVER under VMS
5.5.

Well I'm now on VMS 5.5-1 with CMUTEK 6.6-5 and all patches I can find relating
to TTDRIVER and the ETDRIVER; still I get hung processes in RWAST. All are
stuck with the IPnnn: device busy.  FTP seems to be no problem at all.

Since the only cure for this seems to be a reboot, I wonder if anyone has any
further suggestions as to what the problem might be and, more importantly, how
to fix it!

Enclosed below is the output from Nick De Smith's MWAIT program showing the
RWAST'ed process state, and some stuff from ANALYZE/SYSTEM on the prtocess.
This bit is quite long! Any CMU gurus who can read and understand this stuff
would do me a great favour if they spot the problem! I'll happily supply any
further details.

Regards,

Andy Harper
Kings College London, England
----- Output from MWAIT on the Hung Process  -------------------

$ mwait
_Target PID: 2500341e
  Pid    User name    Process name    Prior  State  Port
2500341E UDBS068      Crazy Diamond    6/4   RWAST  VTA2152
        Wait mask: 00000001, Cluster: 0, Time:    0 00:00:00.04
        0: E0000007, 1: E0000000         Mode: Current: KERNEL, Previous:
KERNEL
        AST status: Active: (none), Enabled: KESU, AST(s) waiting
        Process resource wait is ENABLED.
        Process is marked for deletion.
        Process has 1. outstanding BIO operation (BIOCNT: 17., BIOLM: 18.)
        Process has 4. outstanding ASTS active (ASTCNT: 76. ASTLM: 80.)
        Process registers:
                R0:  00000001   R1:  7FFC0530   R2:  FFFFFF40   R3:  00000000
                R4:  806B2780   R5:  000000C0   R6:  7FFC0530   R7:  FFFFFF40
                R8:  806BCE30   R9:  00000034   R10: 7FFED7D4   R11: 7FFE2BDC
                AP:  7FFE7674   FP:  7FFE7628   PC:  802EF0F4   PSL: 00000004
        $DASSGN while channel busy: R5 = channel, R6 = CCB
        (Channel: 00C0)




----- Various bits form an ANALYZE /SYSTEM on the process   -----

$ SHOW PROCESS/ALL 	! Some long stuff about memory mapping omitted!

Process status:  02040023   RES,DELPEN,RESPEN,PHDRES

PCB address              806B2780    JIB address              81380F70
PHD address              82028C00    Swapfile disk address    00000000
Master internal PID      0034001E    Subprocess count                0
Internal PID             0034001E    Creator internal PID     00000000
Extended PID             2500341E    Creator extended PID     00000000
State                       RWAST    Termination mailbox          0000
Current priority                6    AST's enabled                KESU
Base priority                   4    AST's active                 NONE
UIC                [00503,000264]    AST's remaining                76
Mutex count                     0    Buffered I/O count/limit       17/18
Waiting EF cluster              0    Direct I/O count/limit         30/30
Starting wait time       1B001B17    BUFIO byte count/limit      40512/40688
Event flag wait mask     00000001    # open files allowed left      99
Local EF cluster 0       E0000007    Timer entries allowed left     50
Local EF cluster 1       E0000000    Active page table count         0
Global cluster 2 pointer 00000000    Process WS page count         324
Global cluster 3 pointer 00000000    Global WS page count           74


Process header
--------------

First free P0 address      00098A00    Accumulated CPU time       00001F4B
Free PTEs between P0/P1      115930    CPU since last quantum         0092
First free P1 address      7FE94C00    Subprocess quota                  2
Free page file pages          18661    AST limit                        80
Page fault cluster size          64    Process header index           0002
Page table cluster size           2    Backup address vector      000073A1
Flags                          0082    WSL index save area        00006F00
Direct I/O count               3640    PTs having locked WSLs            5
Buffered I/O count             4057    PTs having valid WSLs            19
Limit on CPU time          00008CA0    Active page tables               21
Maximum page file count       20480    Maximum active PTs               33
Total page faults             12681    Guaranteed fluid WS pages        20
File limit                      100    Extra dynamic WS entries        658
Timer queue limit                50    Locked WSLE counts array       E104
Current page file template 03000000    Valid WSLE counts array        E4AE



Saved process registers
-----------------------
R0   = 00000001    R1   = 7FFC0530    R2   = FFFFFF40    R3   = 00000000
R4   = 806B2780    R5   = 000000C0    R6   = 7FFC0530    R7   = FFFFFF40
R8   = 806BCE30    R9   = 00000034    R10  = 7FFED7D4    R11  = 7FFE2BDC
AP   = 7FFE7674    FP   = 7FFE7628    PC   = 802EF0F4    PSL  = 00000004
KSP  = 7FFE7628    ESP  = 7FFE9800    SSP  = 7FFECBE4    USP  = 7FE972B0
P0BR = 82047800    P0LR = 000004C5    P1BR = 818BCC00    P1LR = 001FF4A7




Process section table information
---------------------------------

	Last entry allocated     FFE0
	First free PST entry     0000


Process section table
---------------------

	INDEX      ADDRESS   PAGES     WINDOW     VBN    CLUSTER  CHANNEL  REFCNT  FLINK BLINK   FLAGS

	 FFF8     00004E00 0000000D   81876080  00000028      0  7FFC05D0     0     FFF8  FFF8   WRT CRF
	 FFF0     00042E00 00000003   818DFC80  00000003      0  7FFC0580     0     FFE0  FFE0   WRT CRF
	 FFE8     03987C00 0000001A   818DC500  00000002      0  7FFC0560    26     FFE8  FFE8
	 FFE0     0004B200 00000001   818DFC80  00000045      0  7FFC0580     0     FFF0  FFF0   WRT CRF


                            Process active channels
                            -----------------------

Channel	 Window		  Status	Device/file accessed
-------	 ------		  ------	--------------------
  0010	00000000	          	HSC001$DUS21:
  0020	81876080	          	HSC001$DUS21:[PACKAGES.CMUTEK.SYSEXE]TELNET.EXE;2 (section file)
  0030	818DF380	          	HSC001$DUS0:[SYS0.SYSCOMMON.SYSLIB]SMGSHR.EXE;1 (section file)
  0040	00000000	          	VTA2152:
  0050	00000000	          	VTA2152:
  0060	818DB280	          	HSC001$DUS0:[SYS0.SYSCOMMON.SYSLIB]LIBRTL.EXE;8 (section file)
  0070	818DFC80	          	HSC001$DUS0:[SYS0.SYSCOMMON.SYSLIB]LBRSHR.EXE;7 (section file)
  0080	00000000	          	VTA2152:
  0090	818DC500	          	HSC001$DUS0:[SYS5.NETWORK]FTPMSGS.EXE;11
  00A0	00000000	          	VTA2152:
  00B0	00000000	          	VTA2152:
  00C0	00000000	     Busy 	IP8277:



Channel	 Window		  Status	Device/file accessed
-------	 ------		  ------	--------------------


                            Process activated images
                            ------------------------

ICB       Start     End       Type            Image Name  Major ID,Minor ID
--------  --------  --------  --------------  -----------------------------
7FFAC278  00000200  0000EDFF  MAIN       SHR  TELNET  0,0
7FFAC358  00042C00  0004B3FF  GLOBAL     SHR  LBRSHR  2,9
7FFABFF8  0000EE00  000295FF  GLOBAL     SHR  SMGSHR  1,102
7FFACBB0  00029600  00042BFF  GLOBAL     SHR  LIBRTL  1,14
7FFAC478  00090C00  000989FF  MERGED     SHR  SHRIMGMSG  0,0

Total images = 5		Pages allocated = 664


$ SHOW CALL

	Call Frame Generated by CALLG Instruction

Condition Handler	7FFE7628  00000000
SP Align Bits = 00	7FFE762C  00000000
   Saved  AP		7FFE7630  7FFE7674	CTL$GL_KSTKBAS+00474
   Saved  FP		7FFE7634  7FFE7644	CTL$GL_KSTKBAS+00444
   Return PC		7FFE7638  802B0820	EXE$EXCEPTION+00225
Align Stack by 0 Bytes =>


$ SHOW CALL /NEXT		! Repeated several times.....

	Call Frame Generated by CALLS Instruction

Condition Handler	7FFE7644  00000000
SP Align Bits = 00	7FFE7648  21FC0000
   Saved  AP		7FFE764C  7FFE76C8	CTL$GL_KSTKBAS+004C8
   Saved  FP		7FFE7650  7FFE7680	CTL$GL_KSTKBAS+00480
   Return PC		7FFE7654  802E85B2	EXE$RUNDWN+001D2
	R2		7FFE7658  00000000
	R3		7FFE765C  7FFC05F8
	R4		7FFE7660  806B2780	PCB
	R5		7FFE7664  FFFFFF40
	R6		7FFE7668  7FFE5C00	CTL$A_DISPVEC+00400
	R7		7FFE766C  00000000
	R8		7FFE7670  806BCE30	IPDRIVER+001C0
Align Stack by 0 Bytes =>
Argument List		7FFE7674  00000001
			7FFE7678  000000C0



	Call Frame Generated by CALLG Instruction

Condition Handler	7FFE7680  00000000
SP Align Bits = 00	7FFE7684  00000000
   Saved  AP		7FFE7688  7FFE76C8	CTL$GL_KSTKBAS+004C8
   Saved  FP		7FFE768C  7FFE769C	CTL$GL_KSTKBAS+0049C
   Return PC		7FFE7690  802B0820	EXE$EXCEPTION+00225
Align Stack by 0 Bytes =>



	Call Frame Generated by CALLS Instruction

Condition Handler	7FFE769C  00000000
SP Align Bits = 00	7FFE76A0  20FC0000
   Saved  AP		7FFE76A4  7FFE7774	CTL$GL_KSTKBAS+00574
   Saved  FP		7FFE76A8  7FFE7758	CTL$GL_KSTKBAS+00558
   Return PC		7FFE76AC  802F9779	EXE$CREPRC+00CA1
	R2		7FFE76B0  00000000
	R3		7FFE76B4  7FFE2682	IAC$AW_VECSET+0000A
	R4		7FFE76B8  806B2780	PCB
	R5		7FFE76BC  00000000
	R6		7FFE76C0  7FFE5C00	CTL$A_DISPVEC+00400
	R7		7FFE76C4  00000000
Align Stack by 0 Bytes =>
Argument List		7FFE76C8  00000001
			7FFE76CC  00000000



	Call Frame Generated by CALLG Instruction

Condition Handler	7FFE7758  00000000
SP Align Bits = 00	7FFE775C  00300000
   Saved  AP		7FFE7760  7FFE77D8	CTL$GL_KSTKBAS+005D8
   Saved  FP		7FFE7764  7FFE778C	CTL$GL_KSTKBAS+0058C
   Return PC		7FFE7768  802E9955	EXE$ASTDEL+00003
	R4		7FFE776C  806B2780	PCB
	R5		7FFE7770  000000C0
Align Stack by 0 Bytes =>



	Call Frame Generated by CALLG Instruction

Condition Handler	7FFE778C  00000000
SP Align Bits = 00	7FFE7790  00000000
   Saved  AP		7FFE7794  7FFE77D8	CTL$GL_KSTKBAS+005D8
   Saved  FP		7FFE7798  7FFE77A8	CTL$GL_KSTKBAS+005A8
   Return PC		7FFE779C  802B0820	EXE$EXCEPTION+00225
Align Stack by 0 Bytes =>



	Call Frame Generated by CALLS Instruction

Condition Handler	7FFE77A8  00000000
SP Align Bits = 00	7FFE77AC  21FC0000
   Saved  AP		7FFE77B0  7FFECC10
   Saved  FP		7FFE77B4  7FFE77E4	CTL$GL_KSTKBAS+005E4
   Return PC		7FFE77B8  802E85B2	EXE$RUNDWN+001D2
	R2		7FFE77BC  00000000
	R3		7FFE77C0  7FFC05F8
	R4		7FFE77C4  806B2780	PCB
	R5		7FFE77C8  FFFFFF40
	R6		7FFE77CC  7FFE5C00	CTL$A_DISPVEC+00400
	R7		7FFE77D0  00000003
	R8		7FFE77D4  806BCE30	IPDRIVER+001C0
Align Stack by 0 Bytes =>
Argument List		7FFE77D8  00000001
			7FFE77DC  000000C0