Subject: Re: [libssh2] #170: Test on Solaris 10 amd64 hangs

Re: [libssh2] #170: Test on Solaris 10 amd64 hangs

From: libssh2 Trac <trac_at_libssh2.stuge.se>
Date: Tue, 02 Nov 2010 10:02:14 -0000

#170: Test on Solaris 10 amd64 hangs
---------------------------------------------------------------------------------------+
  Reporter: www.google.com/accounts/o8/id?id=AItOawmzyrEUkUDbHXFBqjFbBoB5p8Ik5X9sR1A | Owner: stuge
      Type: defect | Status: assigned
  Priority: normal | Milestone:
 Component: tests | Version: 1.2.5
Resolution: | Keywords: select, timeout, hang
    Blocks: | Blocked By:
---------------------------------------------------------------------------------------+

Comment (by www.google.com/accounts/o8/id?id=aitoawnwnbfr9defttu_ljqvasu3w7up5yxizmc):

 I tested with 1.2.7 as I have problems with the autoconf bootstrapping.

 I have never seen the problem in the wild because the 64 bit version of
 the library is AFAIK not used by any application yet.

 The full tracing output looks like this:
 {{{
 current10x% DEBUG=1 gmake check
 gmake simple
 gmake[1]: Entering directory
 `/home/dam/mgar/pkg/libssh2/trunk/work/solaris9-i386/build-isa-
 amd64/libssh2-1.2.7/tests'
 gmake[1]: `simple' is up to date.
 gmake[1]: Leaving directory
 `/home/dam/mgar/pkg/libssh2/trunk/work/solaris9-i386/build-isa-
 amd64/libssh2-1.2.7/tests'
 gmake check-TESTS
 gmake[1]: Entering directory
 `/home/dam/mgar/pkg/libssh2/trunk/work/solaris9-i386/build-isa-
 amd64/libssh2-1.2.7/tests'
 PASS: simple
 debug2: load_server_config: filename /dev/null
 debug2: load_server_config: done config len = 1
 debug2: parse_server_config: config /dev/null len 1
 debug1: sshd version OpenSSH_5.4p1
 debug1: read PEM private key done: type RSA
 debug1: private host key: #0 type 1 RSA
 debug1: setgroups() failed: Not owner
 debug1: rexec_argv[0]='/opt/csw/sbin/sshd'
 debug1: rexec_argv[1]='-f'
 debug1: rexec_argv[2]='/dev/null'
 debug1: rexec_argv[3]='-h'
 debug1: rexec_argv[4]='/home/dam/mgar/pkg/libssh2/trunk/work/solaris9-i386
 /build-isa-amd64/libssh2-1.2.7/tests/etc/host'
 debug1: rexec_argv[5]='-o'
 debug1: rexec_argv[6]='Port 4711'
 debug1: rexec_argv[7]='-o'
 debug1: rexec_argv[8]='Protocol 2'
 debug1: rexec_argv[9]='-o'
 debug1: rexec_argv[10]='AuthorizedKeysFile
 /home/dam/mgar/pkg/libssh2/trunk/work/solaris9-i386/build-isa-
 amd64/libssh2-1.2.7/tests/etc/user.pub'
 debug1: rexec_argv[11]='-o'
 debug1: rexec_argv[12]='UsePrivilegeSeparation no'
 debug1: rexec_argv[13]='-o'
 debug1: rexec_argv[14]='StrictModes no'
 debug1: rexec_argv[15]='-D'
 debug1: rexec_argv[16]='-d'
 debug1: rexec_argv[17]='-d'
 debug2: fd 4 setting O_NONBLOCK
 debug1: Bind to port 4711 on ::.
 Server listening on :: port 4711.
 debug2: fd 5 setting O_NONBLOCK
 debug1: Bind to port 4711 on 0.0.0.0.
 Server listening on 0.0.0.0 port 4711.
 debug1: fd 6 clearing O_NONBLOCK
 debug1: Server will not fork when running in debugging mode.
 debug1: rexec start in 6 out 6 newsock 6 pipe -1 sock 11
 debug1: inetd sockets after dupping: 4, 4
 Connection from 127.0.0.1 port 65077
 debug1: Client protocol version 2.0; client software version libssh2_1.2.7
 debug1: no match: libssh2_1.2.7
 debug1: Enabling compatibility mode for protocol 2.0
 debug1: Local version string SSH-2.0-OpenSSH_5.4
 debug2: fd 4 setting O_NONBLOCK
 debug1: list_hostkey_types: ssh-rsa
 debug1: SSH2_MSG_KEXINIT sent
 debug1: SSH2_MSG_KEXINIT received
 debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-
 hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-
 group1-sha1
 debug2: kex_parse_kexinit: ssh-rsa
 debug2: kex_parse_kexinit:
 aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
 ,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-
 cbc_at_lysator.liu.se
 debug2: kex_parse_kexinit:
 aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
 ,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-
 cbc_at_lysator.liu.se
 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64_at_openssh.com,hmac-
 ripemd160,hmac-ripemd160_at_openssh.com,hmac-sha1-96,hmac-md5-96
 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64_at_openssh.com,hmac-
 ripemd160,hmac-ripemd160_at_openssh.com,hmac-sha1-96,hmac-md5-96
 debug2: kex_parse_kexinit: none,zlib_at_openssh.com
 debug2: kex_parse_kexinit: none,zlib_at_openssh.com
 debug2: kex_parse_kexinit:
 debug2: kex_parse_kexinit:
 debug2: kex_parse_kexinit: first_kex_follows 0
 debug2: kex_parse_kexinit: reserved 0
 debug2: kex_parse_kexinit: diffie-hellman-group14-sha1,diffie-hellman-
 group-exchange-sha1,diffie-hellman-group1-sha1
 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
 debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,aes256-cbc
 ,rijndael-cbc_at_lysator.liu.se,aes192-cbc,aes128-cbc,blowfish-
 cbc,arcfour128,arcfour,cast128-cbc,3des-cbc
 debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,aes256-cbc
 ,rijndael-cbc_at_lysator.liu.se,aes192-cbc,aes128-cbc,blowfish-
 cbc,arcfour128,arcfour,cast128-cbc,3des-cbc
 debug2: kex_parse_kexinit: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96
 ,hmac-ripemd160,hmac-ripemd160_at_openssh.com
 debug2: kex_parse_kexinit: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96
 ,hmac-ripemd160,hmac-ripemd160_at_openssh.com
 debug2: kex_parse_kexinit: none,zlib
 debug2: kex_parse_kexinit: none,zlib
 debug2: kex_parse_kexinit:
 debug2: kex_parse_kexinit:
 debug2: kex_parse_kexinit: first_kex_follows 0
 debug2: kex_parse_kexinit: reserved 0
 debug2: mac_setup: found hmac-sha1
 debug1: kex: client->server aes128-ctr hmac-sha1 none
 debug2: mac_setup: found hmac-sha1
 debug1: kex: server->client aes128-ctr hmac-sha1 none
 debug2: dh_gen_key: priv key bits set: 169/320
 debug2: bits set: 1077/2048
 debug1: expecting SSH2_MSG_KEXDH_INIT
 debug2: bits set: 1054/2048
 debug2: kex_derive_keys
 debug2: set_newkeys: mode 1
 debug1: SSH2_MSG_NEWKEYS sent
 debug1: expecting SSH2_MSG_NEWKEYS
 debug2: set_newkeys: mode 0
 debug1: SSH2_MSG_NEWKEYS received
 debug1: KEX done
 Fingerprint: 86 AD B2 21 33 60 65 3D 9A 29 86 DE 22 99 DA 18 CC BA D3 AC
 debug1: userauth-request for user dam service ssh-connection method none
 debug1: attempt 0 failures 0
 debug2: parse_server_config: config reprocess config len 1
 debug2: input_userauth_request: setting up authctxt for dam
 debug2: input_userauth_request: try method none
 Failed none for dam from 127.0.0.1 port 65077 ssh2
 Authentication methods: publickey,password,keyboard-interactive
 debug1: userauth-request for user dam service ssh-connection method
 publickey
 debug1: attempt 1 failures 0
 debug2: input_userauth_request: try method publickey
 debug1: test whether pkalg/pkblob are acceptable
 debug1: temporarily_use_uid: 10000/10000 (e=10000/10000)
 debug1: trying public key file
 /home/dam/mgar/pkg/libssh2/trunk/work/solaris9-i386/build-isa-
 amd64/libssh2-1.2.7/tests/etc/user.pub
 debug1: fd 5 clearing O_NONBLOCK
 debug1: matching key found: file
 /home/dam/mgar/pkg/libssh2/trunk/work/solaris9-i386/build-isa-
 amd64/libssh2-1.2.7/tests/etc/user.pub, line 1
 Found matching RSA key: 48:2e:33:0d:0d:ca:dc:40:08:8b:0f:2c:22:74:7d:37
 debug1: restore_uid: (unprivileged)
 debug2: userauth_pubkey: authenticated 0 pkalg ssh-rsa
 Postponed publickey for dam from 127.0.0.1 port 65077 ssh2
 debug1: userauth-request for user dam service ssh-connection method
 publickey
 debug1: attempt 2 failures 0
 debug2: input_userauth_request: try method publickey
 debug1: temporarily_use_uid: 10000/10000 (e=10000/10000)
 debug1: trying public key file
 /home/dam/mgar/pkg/libssh2/trunk/work/solaris9-i386/build-isa-
 amd64/libssh2-1.2.7/tests/etc/user.pub
 debug1: fd 5 clearing O_NONBLOCK
 debug1: matching key found: file
 /home/dam/mgar/pkg/libssh2/trunk/work/solaris9-i386/build-isa-
 amd64/libssh2-1.2.7/tests/etc/user.pub, line 1
 Found matching RSA key: 48:2e:33:0d:0d:ca:dc:40:08:8b:0f:2c:22:74:7d:37
 debug1: restore_uid: (unprivileged)
 debug1: ssh_rsa_verify: signature correct
 debug2: userauth_pubkey: authenticated 1 pkalg ssh-rsa
 Accepted publickey for dam from 127.0.0.1 port 65077 ssh2
 debug1: Entering interactive session for SSH2.
         Authentication by public key succeeded.
 debug2: fd 5 setting O_NONBLOCK
 debug2: fd 6 setting O_NONBLOCK
 debug1: server_init_dispatch_20
 debug1: server_input_channel_open: ctype session rchan 0 win 65536 max
 32768
 debug1: input_session_request
 debug1: channel 0: new [server-session]
 debug2: session_new: allocate (allocated 0 max 10)
 debug1: session_new: session 0
 debug1: session_open: channel 0
 debug1: session_open: session 0: link with channel 0
 debug1: server_input_channel_open: confirm session
 debug1: server_input_channel_req: channel 0 request env reply 1
 debug1: session_by_channel: session 0 channel 0
 debug1: session_input_channel_req: session 0 req env
 debug2: Ignoring env request FOO: disallowed name
 debug1: server_input_channel_req: channel 0 request pty-req reply 1
 debug1: session_by_channel: session 0 channel 0
 debug1: session_input_channel_req: session 0 req pty-req
 debug1: Allocating pty.
 debug1: session_pty_req: session 0 alloc /dev/pts/6
 debug1: server_input_channel_req: channel 0 request shell reply 1
 debug1: session_by_channel: session 0 channel 0
 debug1: session_input_channel_req: session 0 req shell
 debug2: fd 4 setting TCP_NODELAY
 debug2: channel 0: rfd 9 isatty
 debug2: fd 9 setting O_NONBLOCK
 debug2: channel 0: rcvd eof
 debug2: channel 0: output open -> drain
 debug2: channel 0: obuf empty
 debug2: channel 0: close_write
 debug2: channel 0: output drain -> closed
 debug2: channel 0: rcvd close
 debug2: channel 0: close_read
 debug2: channel 0: input open -> closed
 debug2: channel 0: almost dead
 debug2: channel 0: gc: notify user
 debug1: session_by_channel: session 0 channel 0
 debug1: session_close_by_channel: channel 0 child 17458
 debug1: session_close_by_channel: channel 0: has child
 debug1: session_pty_cleanup: session 0 release /dev/pts/6
 Attempt to write login records by non-root user (aborting)
 }}}
 Than it hangs.

-- 
Ticket URL: <http://trac.libssh2.org/ticket/170#comment:6>
libssh2 <http://trac.libssh2.org/>
C library for writing portable SSH2 clients
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-11-02