[bug-notifications] [openssh 0005006]: Compressed connections do not Work

Mantis Bug Tracker noreply at opencsw.org
Sun Sep 30 21:58:18 CEST 2012


A NOTE has been added to this issue. 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=5006 
====================================================================== 
Reported By:                ihsan
Assigned To:                yann
====================================================================== 
Project:                    openssh
Issue ID:                   5006
Category:                   regular use
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     acknowledged
====================================================================== 
Date Submitted:             2012-09-30 20:54 CEST
Last Modified:              2012-09-30 21:58 CEST
====================================================================== 
Summary:                    Compressed connections do not Work
Description: 
Client: OpenSSH 5.4p1, stock FreeBSD 8.3

"Compression" set to "yes" in sshd_config

sshd debug output: 
debug1: trying public key file /home/xxx/.ssh/authorized_keys
debug1: fd 7 clearing O_NONBLOCK
debug1: matching key found: file /home/xxx/.ssh/authorized_keys, line 1
Found matching DSA key: xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
debug1: restore_uid: 0/0
debug1: ssh_dss_verify: signature correct
debug1: do_pam_account: called
Accepted publickey for xxxxx from xxx.xxx.xxx.xxx port 38033 ssh2
ld.so.1: sshd: fatal: libz.so.1: open failed: No such file or directory
ld.so.1: sshd: fatal: relocation error: file /opt/csw/sbin/sshd: symbol
inflateInit_: referenced symbol not found
debug1: monitor_read_log: child log fd closed
debug1: monitor_child_preauth: xxxxx has been authenticated by privileged
process
debug1: do_cleanup
debug1: PAM: cleanup

Workaround:
Disable Compression in sshd_config

====================================================================== 

---------------------------------------------------------------------- 
 (0010145) yann (manager) - 2012-09-30 21:58
 https://www.opencsw.org/mantis/view.php?id=5006#c10145 
---------------------------------------------------------------------- 
Still strange, here's the truss output of sshd which shows where it looks
for libz:


# truss -f /opt/csw/sbin/sshd -d -d -d 2>&1 | grep libz
1260:   stat64("/opt/csw/lib/amd64/libz.so.1", 0x08046DB0) Err#2 ENOENT
1260:   stat64("/opt/csw/lib/pentium_pro+mmx/libz.so.1", 0x08046DB0) Err#2
ENOENT
1260:   stat64("/opt/csw/lib/pentium_pro/libz.so.1", 0x08046DB0) Err#2
ENOENT
1260:   stat64("/opt/csw/lib/pentium+mmx/libz.so.1", 0x08046DB0) Err#2
ENOENT
1260:   stat64("/opt/csw/lib/pentium/libz.so.1", 0x08046DB0) Err#2 ENOENT
1260:   stat64("/opt/csw/lib/i486/libz.so.1", 0x08046DB0) Err#2 ENOENT
1260:   stat64("/opt/csw/lib/i386/libz.so.1", 0x08046DB0) Err#2 ENOENT
1260:   stat64("/opt/csw/lib/i86/libz.so.1", 0x08046DB0) Err#2 ENOENT
1260:   stat64("/opt/csw/lib/libz.so.1", 0x08046DB0)    Err#2 ENOENT
1260:   stat64("/lib/libz.so.1", 0x08046DB0)            Err#2 ENOENT
1260:   stat64("/usr/lib/libz.so.1", 0x08046DB0)        Err#2 ENOENT
ld.so.1: sshd: fatal: libz.so.1: open failed: No such file or
directory1260:    write(2, " l d . s o . 1 :   s s h".., 71)      = 71

However, /opt/csw/lib/libz.so.1 is present:


# ls -lh /opt/csw/lib/libz.so.1* 
lrwxrwxrwx   1 root     root          13 Jun 25 19:49
/opt/csw/lib/libz.so.1 -> libz.so.1.2.7
-rwxr-xr-x   1 root     bin         112K Jun 14 23:10
/opt/csw/lib/libz.so.1.2.7


I wonder if it's related to some chrooting. Still searching.



More information about the bug-notifications mailing list