ssh hangs or gives Segmentation fault

Jean-Pierre.Eckmann at physics.unige.ch Jean-Pierre.Eckmann at physics.unige.ch
Tue Sep 20 05:55:01 EST 2005


Details of installation attached.

Effect: when I build and test (with full path names) ssh in the openssh... 
directory, everything works fine. When I "install" it as per attached file 
into a test-directory and run it from there, there are 2 phenomena:

either it just hangs, eating 96% of CPU
or     it dies with a Segmentation fault (this is what happens most often)

Help needed
-------------- next part --------------
PLEASE NOTE: Is this a bug?

I can run ssh in the directory in which I build it , but it crashes or
hangs in the install directory. 



openssh-survey-version: 1

openssh-version: OpenSSH_4.2p1, OpenSSL 0.9.7d 17 Mar 2004

configure-invocation: configure --prefix=/users/eckmann/export/ssh

host: i686-pc-linux-gnu

uname: Linux

uname-r: 2.6.13

uname-m: i686

uname-p: i686

oslevel: 

oslevel-r: 

cc: gcc

cflags: -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -std=gnu99 

cppflags: 

ldflags: 

libs: -lresolv -lcrypto -lutil -lz -lnsl  -lcrypt

ccver-v: Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.3/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada --disable-checking --libdir=/usr/lib --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux
Thread model: posix
gcc version 3.3.3 (SuSE Linux)

ccver-V: gcc: `-V' option must have argument

cppdefines:
#define __DBL_MIN_EXP__ (-1021)
#define __FLT_MIN__ 1.17549435e-38F
#define __CHAR_BIT__ 8
#define __WCHAR_MAX__ 2147483647
#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
#define __FLT_EVAL_METHOD__ 2
#define __unix__ 1
#define unix 1
#define __i386__ 1
#define __SIZE_TYPE__ unsigned int
#define __ELF__ 1
#define __DBL_MIN_10_EXP__ (-307)
#define __FINITE_MATH_ONLY__ 0
#define __GNUC_PATCHLEVEL__ 3
#define __FLT_RADIX__ 2
#define __LDBL_EPSILON__ 1.08420217248550443401e-19L
#define __SHRT_MAX__ 32767
#define __LDBL_MAX__ 1.18973149535723176502e+4932L
#define __linux 1
#define __unix 1
#define __LDBL_MAX_EXP__ 16384
#define __LONG_MAX__ 2147483647L
#define __linux__ 1
#define __SCHAR_MAX__ 127
#define __DBL_DIG__ 15
#define __USER_LABEL_PREFIX__ 
#define linux 1
#define __tune_pentium__ 1
#define __STDC_HOSTED__ 1
#define __LDBL_MANT_DIG__ 64
#define __FLT_EPSILON__ 1.19209290e-7F
#define __LDBL_MIN__ 3.36210314311209350626e-4932L
#define __WCHAR_TYPE__ long int
#define __FLT_DIG__ 6
#define __FLT_MAX_10_EXP__ 38
#define __INT_MAX__ 2147483647
#define __gnu_linux__ 1
#define __FLT_MAX_EXP__ 128
#define __DECIMAL_DIG__ 21
#define __DBL_MANT_DIG__ 53
#define __WINT_TYPE__ unsigned int
#define __GNUC__ 3
#define __LDBL_MIN_EXP__ (-16381)
#define __tune_i586__ 1
#define __LDBL_MAX_10_EXP__ 4932
#define __DBL_EPSILON__ 2.2204460492503131e-16
#define __DBL_MAX__ 1.7976931348623157e+308
#define __DBL_MAX_EXP__ 1024
#define __FLT_DENORM_MIN__ 1.40129846e-45F
#define __LONG_LONG_MAX__ 9223372036854775807LL
#define __FLT_MAX__ 3.40282347e+38F
#define __GXX_ABI_VERSION 102
#define __FLT_MIN_10_EXP__ (-37)
#define __FLT_MIN_EXP__ (-125)
#define i386 1
#define __GNUC_MINOR__ 3
#define __DBL_MAX_10_EXP__ 308
#define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L
#define __DBL_MIN__ 2.2250738585072014e-308
#define __PTRDIFF_TYPE__ int
#define __LDBL_MIN_10_EXP__ (-4931)
#define __REGISTER_PREFIX__ 
#define __LDBL_DIG__ 18
#define __NO_INLINE__ 1
#define __i386 1
#define __FLT_MANT_DIG__ 24
#define __VERSION__ "3.3.3 (SuSE Linux)"

config.h:
#define _CONFIG_H
/* #undef SETEUID_BREAKS_SETUID */
/* #undef BROKEN_SETREUID */
/* #undef BROKEN_SETREGID */
/* #undef BROKEN_SETRESUID */
/* #undef BROKEN_SETRESGID */
#define SPT_TYPE SPT_REUSEARGV
/* #undef SPT_PADCHAR */
/* #undef BROKEN_SYS_TERMIO_H */
/* #undef HAVE_SECUREWARE */
#define LOGIN_PROGRAM_FALLBACK "/bin/login"
#define _PATH_PASSWD_PROG "/usr/bin/passwd"
/* #undef HAVE_PW_CLASS_IN_PASSWD */
/* #undef HAVE_PW_EXPIRE_IN_PASSWD */
/* #undef HAVE_PW_CHANGE_IN_PASSWD */
/* #undef HAVE_ACCRIGHTS_IN_MSGHDR */
#define HAVE_CONTROL_IN_MSGHDR 1
/* #undef BROKEN_INET_NTOA */
#define HAVE_SYS_ERRLIST 1
#define HAVE_SYS_NERR 1
/* #undef IP_TOS_IS_BROKEN */
/* #undef HAVE_GETUSERATTR */
#define HAVE_BASENAME 1
#define PAM_TTY_KLUDGE 1
/* #undef SSHPAM_CHAUTHTOK_NEEDS_RUID */
/* #undef USE_PIPES */
/* #undef BROKEN_SNPRINTF */
/* #undef HAVE_CYGWIN */
/* #undef BROKEN_REALPATH */
/* #undef HAVE_NEXT */
/* #undef USE_PAM */
/* #undef WITH_AIXAUTHENTICATE */
/* #undef AIX_LOGINFAILED_4ARG */
/* #undef SKEYCHALLENGE_4ARG */
/* #undef WITH_IRIX_ARRAY */
/* #undef WITH_IRIX_PROJECT */
/* #undef WITH_IRIX_AUDIT */
/* #undef WITH_IRIX_JOBS */
/* #undef PRNGD_SOCKET */
/* #undef PRNGD_PORT */
#define ENTROPY_TIMEOUT_MSEC 200
#define SSH_PRIVSEP_USER "sshd"
/* #undef MANTYPE */
#define HAVE_OPENSSL 1
/* #undef RSAREF */
#define HAVE_STRUCT_TIMEVAL 1
#define HAVE_HOST_IN_UTMP 1
#define HAVE_HOST_IN_UTMPX 1
#define HAVE_ADDR_IN_UTMP 1
#define HAVE_ADDR_IN_UTMPX 1
#define HAVE_ADDR_V6_IN_UTMP 1
#define HAVE_ADDR_V6_IN_UTMPX 1
/* #undef HAVE_SYSLEN_IN_UTMPX */
#define HAVE_PID_IN_UTMP 1
#define HAVE_TYPE_IN_UTMP 1
#define HAVE_TYPE_IN_UTMPX 1
#define HAVE_TV_IN_UTMP 1
#define HAVE_TV_IN_UTMPX 1
#define HAVE_ID_IN_UTMP 1
#define HAVE_ID_IN_UTMPX 1
#define HAVE_EXIT_IN_UTMP 1
/* #undef HAVE_TIME_IN_UTMP */
/* #undef HAVE_TIME_IN_UTMPX */
/* #undef DISABLE_LOGIN */
/* #undef DISABLE_PUTUTLINE */
/* #undef DISABLE_PUTUTXLINE */
/* #undef DISABLE_LASTLOG */
/* #undef NO_SSH_LASTLOG */
/* #undef DISABLE_UTMP */
#define DISABLE_UTMPX 1
/* #undef DISABLE_WTMP */
#define DISABLE_WTMPX 1
/* #undef LOGIN_NEEDS_UTMPX */
/* #undef LOGIN_NEEDS_TERM */
/* #undef LOGIN_NO_ENDOPT */
/* #undef CONF_LASTLOG_FILE */
/* #undef CONF_UTMP_FILE */
/* #undef CONF_WTMP_FILE */
/* #undef CONF_UTMPX_FILE */
/* #undef CONF_WTMPX_FILE */
/* #undef USE_EXTERNAL_ASKPASS */
#define HAVE___PROGNAME 1
#define HAVE___FUNCTION__ 1
#define HAVE___func__ 1
/* #undef GSSAPI */
/* #undef KRB5 */
/* #undef HEIMDAL */
/* #undef USE_AFS */
/* #undef SKEY */
/* #undef LIBWRAP */
#define HAVE_LOGIN 1
#define HAVE_DAEMON 1
#define HAVE_GETPAGESIZE 1
#define XAUTH_PATH "/usr/X11R6/bin/xauth"
/* #undef HAVE_MD5_PASSWORDS */
/* #undef DISABLE_SHADOW */
#define HAS_SHADOW_EXPIRE 1
/* #undef HAVE_OSF_SIA */
/* #undef HAVE_GETPWANAM */
/* #undef HAVE_OLD_PAM */
/* #undef PAM_SUN_CODEBASE */
/* #undef MAIL_DIRECTORY */
#define HAVE_U_INT 1
#define HAVE_INTXX_T 1
#define HAVE_U_INTXX_T 1
#define HAVE_UINTXX_T 1
#define HAVE_INT64_T 1
#define HAVE_U_INT64_T 1
#define HAVE_U_CHAR 1
#define HAVE_SIZE_T 1
#define HAVE_SSIZE_T 1
#define HAVE_CLOCK_T 1
#define HAVE_MODE_T 1
#define HAVE_PID_T 1
#define HAVE_SA_FAMILY_T 1
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
#define HAVE_STRUCT_ADDRINFO 1
#define HAVE_STRUCT_IN6_ADDR 1
#define HAVE_STRUCT_SOCKADDR_IN6 1
#define HAVE_SS_FAMILY_IN_SS 1
/* #undef HAVE___SS_FAMILY_IN_SS */
/* #undef HAVE_DEV_PTMX */
/* #undef HAVE_DEV_PTS_AND_PTC */
/* #undef IPADDR_IN_DISPLAY */
#define USER_PATH "/usr/bin:/bin:/usr/sbin:/sbin:/users/eckmann/export/ssh/bin"
#define _PATH_SSH_PIDDIR "/var/run"
/* #undef BROKEN_GETADDRINFO */
/* #undef BROKEN_UPDWTMPX */
#define DONT_TRY_OTHER_AF 1
#define IPV4_IN_IPV6 1
/* #undef BSD_AUTH */
/* #undef NO_X11_UNIX_SOCKETS */
/* #undef NO_IPPORT_RESERVED_CONCEPT */
/* #undef BROKEN_SAVED_UIDS */
#define GLOB_HAS_ALTDIRFUNC 1
/* #undef GLOB_HAS_GL_MATCHC */
/* #undef BROKEN_ONE_BYTE_DIRENT_D_NAME */
/* #undef HAVE_ETC_DEFAULT_LOGIN */
/* #undef HAVE_GETOPT_OPTRESET */
/* #undef MISSING_NFDBITS */
/* #undef MISSING_HOWMANY */
/* #undef MISSING_FD_MASK */
/* #undef SMARTCARD */
/* #undef USE_SECTOK */
/* #undef USE_OPENSC */
#define OPENSSL_PRNG_ONLY 1
/* #undef WITH_ABBREV_NO_TTY */
/* #undef SUPERUSER_PATH */
/* #undef PRIVSEP_PATH */
/* #undef DISABLE_FD_PASSING */
#define HAVE_STRICT_MKSTEMP 1
#define HAVE_NANOSLEEP 1
/* #undef SSHD_ACQUIRES_CTTY */
/* #undef BROKEN_CMSG_TYPE */
#define LINK_OPNOTSUPP_ERRNO EPERM
/* #undef LOCKED_PASSWD_STRING */
#define LOCKED_PASSWD_PREFIX "!"
/* #undef LOCKED_PASSWD_SUBSTR */
/* #undef HAVE_GETRRSETBYNAME */
#define HAVE_HEADER_AD 1
/* #undef BIND_8_COMPAT */
#define HAVE_PROC_PID 1
/* #undef AIX_GETNAMEINFO_HACK */
/* #undef BROKEN_GETGROUPS */
/* #undef BROKEN_LIBIAF */
/* #undef BROKEN_MMAP */
/* #undef BROKEN_SETVBUF */
#define GETPGRP_VOID 1
/* #undef GETSPNAM_CONFLICTING_DEFS */
/* #undef HAVE_ARC4RANDOM */
/* #undef HAVE_ATTRIBUTE__SENTINEL__ */
/* #undef HAVE_B64_NTOP */
/* #undef HAVE_B64_PTON */
#define HAVE_BCOPY 1
/* #undef HAVE_BINDRESVPORT_SA */
/* #undef HAVE_BSM_AUDIT_H */
/* #undef HAVE_BSTRING_H */
#define HAVE_CLOCK 1
/* #undef HAVE_CLOSEFROM */
#define HAVE_CONST_GAI_STRERROR_PROTO 1
#define HAVE_CRYPT_H 1
/* #undef HAVE_DECL_AUTHENTICATE */
#define HAVE_DECL_H_ERRNO 1
/* #undef HAVE_DECL_LOGINFAILED */
/* #undef HAVE_DECL_LOGINRESTRICTIONS */
/* #undef HAVE_DECL_LOGINSUCCESS */
/* #undef HAVE_DECL_PASSWDEXPIRED */
/* #undef HAVE_DECL_SETAUTHDB */
#define HAVE_DECL__GETLONG 0
#define HAVE_DECL__GETSHORT 0
#define HAVE_DIRENT_H 1
#define HAVE_DIRFD 1
#define HAVE_DIRNAME 1
#define HAVE_ENDIAN_H 1
#define HAVE_ENDUTENT 1
#define HAVE_ENDUTXENT 1
#define HAVE_FCHMOD 1
#define HAVE_FCHOWN 1
#define HAVE_FEATURES_H 1
/* #undef HAVE_FLOATINGPOINT_H */
#define HAVE_FREEADDRINFO 1
#define HAVE_FUTIMES 1
#define HAVE_GAI_STRERROR 1
#define HAVE_GETADDRINFO 1
/* #undef HAVE_GETAUDIT */
/* #undef HAVE_GETAUDIT_ADDR */
#define HAVE_GETCWD 1
#define HAVE_GETGROUPLIST 1
/* #undef HAVE_GETLUID */
#define HAVE_GETNAMEINFO 1
#define HAVE_GETOPT 1
#define HAVE_GETOPT_H 1
/* #undef HAVE_GETPEEREID */
/* #undef HAVE_GETPWANAM */
#define HAVE_GETRLIMIT 1
/* #undef HAVE_GETRUSAGE */
#define HAVE_GETTIMEOFDAY 1
#define HAVE_GETTTYENT 1
#define HAVE_GETUTENT 1
#define HAVE_GETUTID 1
#define HAVE_GETUTLINE 1
#define HAVE_GETUTXENT 1
#define HAVE_GETUTXID 1
#define HAVE_GETUTXLINE 1
#define HAVE_GLOB 1
#define HAVE_GLOB_H 1
/* #undef HAVE_GSSAPI_GENERIC_H */
/* #undef HAVE_GSSAPI_GSSAPI_GENERIC_H */
/* #undef HAVE_GSSAPI_GSSAPI_H */
/* #undef HAVE_GSSAPI_GSSAPI_KRB5_H */
/* #undef HAVE_GSSAPI_H */
/* #undef HAVE_GSSAPI_KRB5_H */
/* #undef HAVE_IAF_H */
/* #undef HAVE_IA_H */
#define HAVE_INET_ATON 1
#define HAVE_INET_NTOA 1
#define HAVE_INET_NTOP 1
#define HAVE_INNETGR 1
#define HAVE_INTTYPES_H 1
#define HAVE_IN_ADDR_T 1
#define HAVE_LASTLOG_H 1
/* #undef HAVE_LIBBSM */
/* #undef HAVE_LIBCRYPT */
/* #undef HAVE_LIBDL */
#define HAVE_LIBGEN_H 1
/* #undef HAVE_LIBIAF */
#define HAVE_LIBNSL 1
/* #undef HAVE_LIBPAM */
/* #undef HAVE_LIBSECTOK */
/* #undef HAVE_LIBSOCKET */
/* #undef HAVE_LIBUTIL_H */
/* #undef HAVE_LIBXNET */
#define HAVE_LIBZ 1
#define HAVE_LIMITS_H 1
/* #undef HAVE_LOGIN_CAP_H */
/* #undef HAVE_LOGIN_GETCAPBOOL */
/* #undef HAVE_LOGIN_H */
#define HAVE_LOGOUT 1
#define HAVE_LOGWTMP 1
/* #undef HAVE_MAILLOCK_H */
/* #undef HAVE_MD5_CRYPT */
#define HAVE_MEMMOVE 1
#define HAVE_MEMORY_H 1
#define HAVE_MKDTEMP 1
#define HAVE_MMAP 1
/* #undef HAVE_NDIR_H */
#define HAVE_NETDB_H 1
/* #undef HAVE_NETGROUP_H */
#define HAVE_NETINET_IN_SYSTM_H 1
/* #undef HAVE_NGETADDRINFO */
/* #undef HAVE_NSLEEP */
/* #undef HAVE_OGETADDRINFO */
/* #undef HAVE_OPENLOG_R */
#define HAVE_OPENPTY 1
/* #undef HAVE_PAM_GETENVLIST */
/* #undef HAVE_PAM_PAM_APPL_H */
/* #undef HAVE_PAM_PUTENV */
#define HAVE_PATHS_H 1
#define HAVE_PRCTL 1
/* #undef HAVE_PSTAT */
#define HAVE_PTY_H 1
#define HAVE_PUTUTLINE 1
#define HAVE_PUTUTXLINE 1
/* #undef HAVE_READPASSPHRASE */
/* #undef HAVE_READPASSPHRASE_H */
#define HAVE_REALPATH 1
#define HAVE_RECVMSG 1
#define HAVE_RPC_TYPES_H 1
#define HAVE_RRESVPORT_AF 1
/* #undef HAVE_SECTOK_H */
/* #undef HAVE_SECURITY_PAM_APPL_H */
#define HAVE_SENDMSG 1
/* #undef HAVE_SETAUTHDB */
/* #undef HAVE_SETDTABLESIZE */
#define HAVE_SETEGID 1
#define HAVE_SETENV 1
#define HAVE_SETEUID 1
#define HAVE_SETGROUPS 1
/* #undef HAVE_SETLOGIN */
/* #undef HAVE_SETLUID */
/* #undef HAVE_SETPCRED */
/* #undef HAVE_SETPROCTITLE */
#define HAVE_SETREGID 1
#define HAVE_SETRESGID 1
#define HAVE_SETRESUID 1
#define HAVE_SETREUID 1
#define HAVE_SETRLIMIT 1
#define HAVE_SETSID 1
#define HAVE_SETUTENT 1
#define HAVE_SETUTXENT 1
#define HAVE_SETVBUF 1
#define HAVE_SHADOW_H 1
#define HAVE_SIGACTION 1
#define HAVE_SIGVEC 1
#define HAVE_SIG_ATOMIC_T 1
#define HAVE_SNPRINTF 1
#define HAVE_SOCKETPAIR 1
#define HAVE_SO_PEERCRED 
#define HAVE_STDDEF_H 1
#define HAVE_STDINT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRDUP 1
#define HAVE_STRERROR 1
#define HAVE_STRFTIME 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
/* #undef HAVE_STRLCAT */
/* #undef HAVE_STRLCPY */
/* #undef HAVE_STRMODE */
/* #undef HAVE_STRNVIS */
#define HAVE_STRSEP 1
#define HAVE_STRTOLL 1
/* #undef HAVE_STRTONUM */
#define HAVE_STRTOUL 1
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
#define HAVE_STRUCT_TIMESPEC 1
#define HAVE_SYSCONF 1
/* #undef HAVE_SYS_AUDIT_H */
#define HAVE_SYS_BITYPES_H 1
/* #undef HAVE_SYS_BSDTTY_H */
#define HAVE_SYS_CDEFS_H 1
#define HAVE_SYS_DIR_H 1
#define HAVE_SYS_MMAN_H 1
/* #undef HAVE_SYS_NDIR_H */
#define HAVE_SYS_PRCTL_H 1
/* #undef HAVE_SYS_PSTAT_H */
/* #undef HAVE_SYS_PTMS_H */
#define HAVE_SYS_SELECT_H 1
#define HAVE_SYS_STAT_H 1
/* #undef HAVE_SYS_STREAM_H */
#define HAVE_SYS_STROPTS_H 1
/* #undef HAVE_SYS_STRTIO_H */
/* #undef HAVE_SYS_SYSLOG_H */
#define HAVE_SYS_SYSMACROS_H 1
/* #undef HAVE_SYS_TIMERS_H */
#define HAVE_SYS_TIME_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_UN_H 1
#define HAVE_TCGETPGRP 1
#define HAVE_TCSENDBREAK 1
#define HAVE_TIME 1
#define HAVE_TIME_H 1
/* #undef HAVE_TMPDIR_H */
#define HAVE_TRUNCATE 1
#define HAVE_TTYENT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_UNSETENV 1
#define HAVE_UPDWTMP 1
#define HAVE_UPDWTMPX 1
/* #undef HAVE_USERSEC_H */
/* #undef HAVE_UTIL_H */
#define HAVE_UTIMES 1
#define HAVE_UTIME_H 1
#define HAVE_UTMPNAME 1
#define HAVE_UTMPXNAME 1
#define HAVE_UTMPX_H 1
#define HAVE_UTMP_H 1
#define HAVE_VHANGUP 1
/* #undef HAVE_VIS_H */
#define HAVE_VSNPRINTF 1
#define HAVE_WAITPID 1
#define HAVE__GETLONG 1
/* #undef HAVE__GETPTY */
#define HAVE__GETSHORT 1
/* #undef HAVE___B64_NTOP */
/* #undef HAVE___B64_PTON */
/* #undef LLONG_MAX */
/* #undef LLONG_MIN */
/* #undef NEED_SETPRGP */
#define PACKAGE_BUGREPORT "openssh-unix-dev at mindrot.org"
#define PACKAGE_NAME "OpenSSH"
#define PACKAGE_STRING "OpenSSH Portable"
#define PACKAGE_TARNAME "openssh"
#define PACKAGE_VERSION "Portable"
/* #undef PASSWD_NEEDS_USERNAME */
#define SIZEOF_CHAR 1
#define SIZEOF_INT 4
#define SIZEOF_LONG_INT 4
#define SIZEOF_LONG_LONG_INT 8
#define SIZEOF_SHORT_INT 2
/* #undef SSH_AUDIT_EVENTS */
#define STDC_HEADERS 1
/* #undef UNIXWARE_LONG_PASSWORDS */
/* #undef USE_BSM_AUDIT */
#define USE_BTMP 1
/* #undef USE_LIBEDIT */
/* #undef WORDS_BIGENDIAN */
#define _FILE_OFFSET_BITS 64
/* #undef _LARGE_FILES */
#define _PATH_BTMP "/var/log/btmp"
/* #undef inline */
/* #undef socklen_t */



More information about the openssh-unix-dev mailing list