Bug 625 - Local Port Forwarding does not work in AIX 5.1 or AIX 5.2
Summary: Local Port Forwarding does not work in AIX 5.1 or AIX 5.2
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 3.6.1p2
Hardware: PPC AIX
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-12 12:11 AEST by Anthony
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony 2003-08-12 12:11:36 AEST
Local port forwarding does not work with AIX 5.1 or AIX 5.2.  The same results
occur with both OpenSSH_3.4p1 and OpenSSH_3.6.1p2.  ssh segmentation faults 
when the connection is made to the local forwarded port.  Debug out put follows.

debug1: Connections to local port 24800 forwarded to remote address 
192.168.1.100:23
debug1: Local forwarding listening on 127.0.0.1 port 24800.
debug1: fd 4 setting O_NONBLOCK
debug2: fd 4 is O_NONBLOCK
debug1: channel 0: new [port listener]
debug1: Entering interactive session.
debug1: Connection to port 24800 forwarding to 192.168.1.100 port 23 requested.
debug1: fd 5 setting TCP_NODELAY
debug2: fd 5 is O_NONBLOCK
debug2: fd 5 is O_NONBLOCK
debug1: channel 1: new [direct-tcpip]
Memory fault(coredump)
Comment 1 Darren Tucker 2003-08-12 15:50:53 AEST
What compiler are you using?  If it's the gcc-2.9whatever from the AIX toolbox 
CD, I suspect it's a compiler problem (I've seen it miscompile openssl and I 
suspect it of causing another couple of problems).

FWIW 3.6.1p2 works for me on 5.1 and 5.2 (compiled with gcc 3.3):

$ echo `uname` `oslevel`
AIX 5.2.0.0
$ ssh -v -L 2000:127.0.0.1:22 localhost
OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090702f
[snip]
debug1: Connection to port 2000 forwarding to 127.0.0.1 port 22 requested.
debug1: channel 2: new [direct-tcpip]
debug1: channel 2: open confirm rwindow 131072 rmax 32768
debug1: channel 2: rcvd eof
debug1: channel 2: output open -> drain
debug1: channel 2: obuf empty
debug1: channel 2: close_write
debug1: channel 2: output drain -> closed
[snip]
Comment 2 Anthony 2003-09-02 12:51:33 AEST
Compiled with gcc 3.3.1 and local port forwarding worked.

Original tests were done with openssh that was compiled with xlc "IBM Visual 
Age C/C++" and also with the openssh binaries distributed by IBM and 
bullfreeware.
Comment 3 Damien Miller 2004-04-14 12:24:19 AEST
Mass change of RESOLVED bugs to CLOSED