Skip to content
Tcl Source Code View Ticket
Login

View Ticket

unix io.test fails using ssh

Closed / Fixed221983ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2000-11-08 19:12:25
Using F-Secure SSH Client 4.1 Build 12 connecting to
AIX 4.3.3 running f-secure-ssh-2.1.0-dss-aix4.3.3 with
terminal set to xterm,
io.test hangs.  Running the test from a hardwired console
succeeds.

Maybe same bug as #119302
davygrvyplain2001-01-13 07:28:35
shouldn't $TERM be set to vt100?
dkf Ticket [221983ffff]: 1 change [History diff]2001-02-07 22:28:01
nobodyplain2001-10-11 02:12:36
Logged In: NO 

I recently ran into a similar problem using SSH 
Communications Security Corp. "SSH Secure Shell (TM)". 
Verbose testing of io.test indicated that the all tests 
through 14.5 passed, and 14.6 hung. The statement that's 
hanging appears to be 
    catch {z eval flush stdout} msg1

Interactively, just doing a "flush stdout" hangs the 
interpreter.
hobbsplain2001-10-13 03:25:13
Logged In: YES 
user_id=72656

I believe this problem is related to the fact that AIX 
chokes when writing something with zero length on certain 
channels.
andreas_kupriesplain2001-10-13 06:41:48
Logged In: YES 
user_id=75003

See #465765 for the item Jeff alludes to.
nobodyplain2001-10-13 07:29:39
Logged In: NO 

An addition piece of information (that may be obvious) 
regarding the SSH Secure Shell io.test hangup - I 
discovered that if I used "telnet" to get to the same 
server, while connected via SSH, io.test didn't hang. 

So, it may be that SSH handles the channels in a different 
manner than standard telnet? (I'm guessing a bit above my 
area of expertise here...).
hobbsplain2002-03-23 07:00:49
Logged In: YES 
user_id=72656

The zero-length write problem has been addressed in 8.4a4, 
so this should be reverified (or considered fixed).
nobodyplain2002-03-26 00:40:40
Logged In: NO 

I saw a comment about reverifying the error/fix with Tcl 
8.4a4; I can't really do that easily, as the client that is 
having the problem doesn't really want the new non-
production interpreter on their system. However, if there's 
a "c" file (or files) I could send them for recompilation & 
testing, I could verify the fix that way.

If that sort of testing is too difficult/unstructured for 
you to want to deal with, I understand! I wouldn't want to 
introduce any odd side effects by mixing source code if you 
think it might be a problem. On the other hand, if the 
resulting interpreter passes the test suite, then it might 
be OK.

Feel free to contact me at [email protected] if you 
want me to test this.
hobbsplain2002-03-26 02:10:42
Logged In: YES 
user_id=72656

Andreas notes the patch is retrievable from here (likely 
need to fix the chopped URL):

See also
http://cvs.sourceforge.net/cgi-
bin/viewcvs.cgi/tcl/tcl/unix/tclUnixChan.c.diff?
r1=text&tr1=1.27&r2=text&tr2=1.28&diff_format=h
nobodyplain2002-04-02 08:03:55
Logged In: NO 

I attempted to compile 8.3 with the patch, but ran into 
issues with the AIX compilation. I attempted to compile 
with --disable-load, and ran into a problem because there's 
no rule to make lib.exp.  One of our Unix guys (who is 
unfortunatly not here anymore) said that it needs to run 
ldAix, but doesn't seem to be doing that.

Without --disable-load, I was able to get a compile, but 
tclsh coredumps, gives odd "bytecode errors", etc.

This is unrelated to the bug you're trying to fix, so you 
may not want to deal with it. On the other hand, if you 
want to give me a hand with this AIX compilation issue, I 
sure wouldn't mind, especially if it can help the community 
at large. I have searched the tcl Usenet archives, done a 
lot of wandering around on Google, etc., but haven't found 
anything that helps me.

I'm using gnu make 3.79.1, and cc (not gcc), if that helps. 
I have LIBPATH=(the directory that libtcl8.3.so is in).

The system is: RISC/6000 running AIX 4.3.3.08

Here's an example of the type of errors that I see:

syrin(landacor)/maxsys/x/train/release/tcl8.3/unix:tclsh
% set fred bob
bob
% exit
UpdateStringProc should not be invoked for type 
IOT/Abort trap(coredump)

syrin(landacor)/maxsys/x/train/release/tcl8.3/unix:tclsh
% set a
can't read "a": no such variable
% set a a
Segmentation fault(coredump)
andreas_kupriesplain2002-04-03 01:25:34
Logged In: YES 
user_id=75003

Note that there were a number of changes
in the build system files to support
compilation under AIX. These changes
originated in the 8.4alpha series of the
core but were recently backported to 8.3.4.

Take the newest files of
* configure.in
* configure
* Makefile.in
* tcl.m4
* aclocal.m4
* ldAix

(all in the unix directory)

and try again.
nobodyplain2002-04-03 04:30:28
Logged In: NO 

I re-sent the newest 8.3.4 bundle from SourceForge, just to 
be sure I had the most current distribution.

Using just ./configure & make resulted in a small tclsh and 
a large libtcl8.3.so. I had to set LIBPATH to point to 
the .so file before tclsh would start. This core-dumped:

  syrin(landacor)/maxsys/x/train/release/tcl8.3/unix:tclsh
  % exit
  TclExecuteByteCode: unrecognized opCode 216
  IOT/Abort trap(coredump)

Using just "./configure --disable-load" & make couldn't 
compile:

  <cut>
ar cr libtcl8.3.a regcomp.o regexec.o regfree.o regerror.o 
tclAlloc.o tclAsync.o tclBasic.o tclBinary.o tclCkalloc.o 
tclClock.o tclCmdAH.o tclCmdIL.o tclCmdMZ.o tclCompCmds.o 
tclCompExpr.o tclCompile.o tclDate.o tclEncoding.o tclEnv.o 
tclEvent.o tclExecute.o tclFCmd.o tclFileName.o tclGet.o 
tclHash.o tclHistory.o tclIndexObj.o tclInterp.o tclIO.o 
tclIOCmd.o tclIOGT.o tclIOSock.o tclIOUtil.o tclLink.o 
tclListObj.o tclLiteral.o tclLoad.o tclMain.o tclNamesp.o 
tclNotify.o tclObj.o tclPanic.o tclParse.o tclParseExpr.o 
tclPipe.o tclPkg.o tclPosixStr.o tclPreserve.o tclProc.o 
tclRegexp.o tclResolve.o tclResult.o tclScan.o 
tclStringObj.o tclThread.o tclStubInit.o tclStubLib.o 
tclTimer.o tclUtf.o tclUtil.o tclVar.o tclMtherr.o 
tclUnixChan.o tclUnixEvent.o tclUnixFCmd.o tclUnixFile.o 
tclUnixPipe.o tclUnixSock.o tclUnixTime.o tclUnixInit.o 
tclUnixThrd.o  tclUnixNotfy.o memcmp.o strstr.o strtoul.o 
strtod.o fixstrtod.o tclLoadNone.o
if test "xtclLoadNone.o" = "xtclLoadAout.o"; then \
        ranlib libtcl8.3.a; \
fi
make: *** No rule to make target `lib.exp', needed by 
`binaries'.  Stop.

If you want to email me directly at [email protected] 
rather than going through these SourceForge boards, that's 
fine. Thanks for any suggestions, I'm probably doing 
something stupid but I'm not a Unix (especially AIX) expert.
andreas_kupriesplain2002-04-22 10:31:37
Logged In: YES 
user_id=75003

Date: Fri, 19 Apr 2002 10:38:21 -0700
From: WBA Wayland Augur <[email protected]>
To: 'Jeff Hobbs' <[email protected]>, 'Andreas Kupries'
<[email protected]>
Subject: RE: [Tcl-bugs] [ tcl-Bugs-221983 ] unix io.test
fails using ssh

Hello Jeff and Andreas
....

Back to the original issue - the bug with Tcl locking up on
exist under SSH
appears to be fixed. Thanks for your help!
Log in (anonymous is fine) to add a comment.