Subject: pkg/23120: openssh core dumps on Solaris
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <ag@ersatz.org>
List: netbsd-bugs
Date: 10/10/2003 10:00:18
>Number:         23120
>Category:       pkg
>Synopsis:       openssh core dumps on Solaris
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 10 10:01:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Alex Gerasimoff
>Release:        pksrc from CVS
>Organization:
>Environment:
SunOS testsun-01 5.7 Generic_106541-27 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
>Description:
openssh-3.7.1.2 compiles and installs OK on Solaris 7 from pkgsrc,
but when I try to run it, it dumps core.

I tried to disable support for skey, tcp-wrappers and some other 
stuff(in the Makefile), but it dumps core anyway.

When I extract the sources from the openssh archive  and compile and install it 
manually (without applying patches), the sshd seems to be OK.
(use configure, make (not bmake) in in the work directory, make install)

config.log contains both 
--with-skey=/data/pkg --without-skey
because in them Makefile there is 

.if ${OPSYS} == "Darwin" || ${OPSYS} == "SunOS"
.  include "../../security/skey/buildlink2.mk"
CONFIGURE_ARGS+=        --with-skey=${BUILDLINK_PREFIX.skey}
# XXX: NetBSD has 4 args (4: sslen) to skeychallenge instead of 3
#CONFIGURE_ARGS+=       --with-skey=/usr
CONFIGURE_ARGS+=        --without-skey
.else
CONFIGURE_ARGS+=        --without-skey
.endif

which does not make sense to me.

Should I send the core file and binary ?
Should I try re-compile with support for debug informatin ?

bash-2.05# gdb /data/pkg/sbin/sshd  core 
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris"...(no debugging symbols found)...
Core was generated by `/data/pkg/sbin/sshd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /data/pkg/lib/libwrap.so.7...(no debugging symbols found)...done.
Loaded symbols for /data/pkg/lib/libwrap.so.7
Reading symbols from /usr/lib/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /data/pkg/lib/libz.so.0...(no debugging symbols found)...done.
Loaded symbols for /data/pkg/lib/libz.so.0
Reading symbols from /usr/lib/libsocket.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/libc.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /data/pkg/lib/libcrypto.so.300.1...done.
Loaded symbols for /data/pkg/lib/libcrypto.so.300.1
Reading symbols from /usr/lib/libaio.so.1...done.
Loaded symbols for /usr/lib/libaio.so.1
Reading symbols from /usr/lib/libdl.so.1...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/lib/libmp.so.2...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from /usr/platform/SUNW,UltraSPARC-IIi-cEngine/lib/libc_psr.so.1...done.
Loaded symbols for /usr/platform/SUNW,UltraSPARC-IIi-cEngine/lib/libc_psr.so.1
#0  0x00019f78 in main ()
(gdb) where
#0  0x00019f78 in main ()
(gdb) 








>How-To-Repeat:
bmake install on Solaris machine.

Similar problem was also reported with Solaris 8 machine.
>Fix:
not known
>Release-Note:
>Audit-Trail:
>Unformatted: