Works for me - Was: [Bug 293] New: sshd 3.3p1 doesn't work on Slackware

Phil Howard phil-openssh-unix-dev at ipal.net
Wed Jun 26 02:34:23 EST 2002


On Tue, Jun 25, 2002 at 11:13:44PM +1000, bugzilla-daemon at mindrot.org wrote:

| http://bugzilla.mindrot.org/show_bug.cgi?id=293
[...]
| After compiling sshd 3.3p1 on Slackware 7.2 and Slackware 8.0
| (for Slackware 7.2 with:
| LIBS=-lcrypt ./configure --with-ssl-dir=/usr/local/openssl-0.9.6d --with-tcp-
| wrappers
| )
| 
| the sshd doesn't allow new connections even tho 3.2.3p1 does.
| The error i get in /var/log/syslog is:
| --
| Jun 25 11:27:14 Slynet sshd[18678]: fatal: mmap(65536): Invalid argument
| Jun 25 11:27:48 Slynet sshd[18682]: fatal: mmap(65536): Invalid argument
| Jun 25 11:30:31 Slynet sshd[18733]: fatal: mmap(65536): Invalid argument
| Jun 25 11:53:03 Slynet sshd[24948]: fatal: mmap(65536): Invalid argument
| Jun 25 11:53:25 Slynet sshd[24950]: fatal: mmap(65536): Invalid argument
| Jun 25 11:54:38 Slynet sshd[24954]: fatal: mmap(65536): Invalid argument
| Jun 25 12:22:40 Slynet sshd[31001]: fatal: mmap(65536): Invalid argument
| --
| 
| This happens for every incoming connection .. the connection brakes off and the 
| other client closes with a 'broken pipe'

I just compiled openssh 3.3p1 with openssl 0.9.6d and zlib 1.1.4 and it
works fine for me.  The kernel is 2.4.18.  The only hitch I'm running
into is trying to get a static compile done (of at least sshd).

Here's a snippet of what strace tells me:

=============================================================================
socketpair(PF_UNIX, SOCK_STREAM, 0, [3, 7]) = 0
shmat(3, 0x8097790, 0x2ptrace: umoven: Input/output error
)                = ?
shmat(7, 0x8097790, 0x2ptrace: umoven: Input/output error
)                = ?
mmap2(NULL, 65536, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS, -1, 0) = 0x40254000
mmap2(NULL, 1310720, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS, -1, 0) = 0x40264000
fork()                                  = 29595
[pid 29595] close(7)                    = 0
[pid 29595] SYS_199(0x4023da58, 0, 0x4023e760, 0x4023c1f0, 0x80925e0) = 0
[pid 29595] open("/etc/passwd", O_RDONLY) = 7
[pid 29595] shmat(7, 0x4023e760, 0x1ptrace: umoven: Input/output error
)   = ?
[pid 29595] shmat(7, 0x4023e760, 0x2ptrace: umoven: Input/output error
)   = ?
[pid 29595] fstat64(0x7, 0xbfffebac)    = 0
[pid 29595] old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
[pid 29595] _llseek(7, 0, [0], SEEK_CUR) = 0
[pid 29595] read(7, "root:x:0:0:root:/root:/bin/tcsh\n"..., 4096) = 1522
[pid 29595] close(7)                    = 0
[pid 29595] munmap(0x40017000, 4096)    = 0
[pid 29595] chroot("/var/empty")        = 0
[pid 29595] chdir("/")                  = 0
[pid 29595] SYS_199(0x4023da58, 0, 0x4023e760, 0x4023c1f0, 0x809266f) = 0
[pid 29595] msgctl(65022, IPC_RMID, 0x4023c1f0) = 0
[pid 29595] open("/etc/group", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 29595] ipc_subcall(0x1, 0x8093138, 0x4023e760, 0x8093138) = 0
[pid 29595] msgctl(65022, IPC_STAT, 0x4023c1f0) = 0
[pid 29595] msgget(65022, 0x2|02)       = 0
[pid 29595] SYS_199(0x4023da58, 0x2, 0x4023e760, 0x4023c1f0, 0x809266f) = 65022
[pid 29595] semop(1076091480, 0x4023c1f0, 2) = 65022
[pid 29595] write(2, "debug1: list_hostkey_types: ssh-"..., 45debug1: list_hostkey_types: ssh-dss,ssh-rsa
) = 45
[pid 29595] brk(0x809b000)              = 0x809b000
[pid 29595] write(2, "debug1: SSH2_MSG_KEXINIT sent\r\n", 31debug1: SSH2_MSG_KEXINIT sent
) = 31
[pid 29595] write(4, "\0\0\1\274\t\24\213\34\323H\1\207*;\263\310\313\334\3\323"..., 448) = 448
[pid 29595] select(5, [4], NULL, NULL, NULL <unfinished ...>
[pid 29593] close(3)                    = 0
[pid 29593] read(7,  <unfinished ...>
[pid 29595] <... select resumed> )      = 1 (in [4])
[pid 29595] read(4, "\0\0\1l\5\24\230p\367t6\315X_s\275\244=J\372\tz\0\0\0="..., 8192) = 368
=============================================================================

-- 
-----------------------------------------------------------------
| Phil Howard - KA9WGN |   Dallas   | http://linuxhomepage.com/ |
| phil-nospam at ipal.net | Texas, USA | http://phil.ipal.org/     |
-----------------------------------------------------------------



More information about the openssh-unix-dev mailing list