Subject: [libssh2] Examples do not work on Solaris 10 (libssh2 0.15)

[libssh2] Examples do not work on Solaris 10 (libssh2 0.15)

From: Heiko Jansen <jansen_at_hbz-nrw.de>
Date: Thu, 29 Mar 2007 12:16:48 +0200

Hi all.

After Simon (Josefsson) fixed some build problems from my tests on a
Solaris 10/64Bit Box using Sun C 5.8 2005/10/13, GNU Make 3.81 I seem to
have another problem running the example programs ("simple").

When I start, e.g, the "scp" sample prog it gets stuck on
libssh2_session_startup(session, sock);
and blocks forever.

The ssh server itself works fine.

-- snip --
~/src> telnet 127.0.0.1 22
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
SSH-2.0-Sun_SSH_1.1
^]
-- / snip --

Maybe the stack of the proc helps:

-- snip --
~/src> pstack 1352
1352: /digibib/src/libssh2-0.15/example/simple/.libs/scp
 ffffffff76bcd5d8 recv (3, 100102700, 1000, 0)
 ffffffff77a153b4 libssh2_packet_require_ex (100102500, 1f, ffffffff7ffff100, ffffffff7ffff0f8, 0, 0) + b4
 ffffffff77a10300 libssh2_kex_method_diffie_hellman_group_exchange_sha1_key_exchange (100102500, 1001051c0, 236, 1001037b0, 1001037e0, 0) + 148
 ffffffff77a122e8 libssh2_kex_exchange (100102500, 0, 1, 0, 1a, 13) + 1b0
 ffffffff77a1a2e8 libssh2_session_startup (100102500, 3, 0, 0, 3, ffffffff77a19900) + 1f0
 0000000100000f7c main (1, ffffffff7ffff998, 100101ab8, ffffffff76b491e8, 0, 100102500) + ec
 0000000100000e5c _start (0, 0, 0, 0, 0, 0) + 17c
-- / snip --

Same seems to apply to the other progs:

-- snip --
~/src> pstack 1388
1388: /digibib/src/libssh2-0.15/example/simple/.libs/ssh2
 ffffffff76bcd5d8 recv (3, 100102820, 1000, 0)
 ffffffff77a153b4 libssh2_packet_require_ex (100102620, 1f, ffffffff7ffff590, ffffffff7ffff588, 0, 0) + b4
 ffffffff77a10300 libssh2_kex_method_diffie_hellman_group_exchange_sha1_key_exchange (100102620, 1001052e0, 236, 1001038d0, 100103900, 0) + 148
 ffffffff77a122e8 libssh2_kex_exchange (100102620, 0, 1, 0, 1a, 13) + 1b0
 ffffffff77a1a2e8 libssh2_session_startup (100102620, 3, 0, 0, 3, ffffffff77a19900) + 1f0
 0000000100000fb4 main (100101bc8, ffffffff7ffff998, 100101bd8, 3, ffffffff76800100, 100102620) + c4
 0000000100000ebc _start (0, 0, 0, 0, 0, 0) + 17c
-- / snip --

Since the output of 'configure' and 'make' is too large to bypass the
size test of the SF mail server I don´t attach it here.
If you´re interested in that data please contact me directly.

Heiko

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2007-03-29