Are you calling libssh2_init();
before any other calls? Will > On Aug 31, 2015, at 3:19 PM, Engstrom, John > <[email protected]> wrote: > > I have an application that is using libssh2 and when I call into > libssh2_session_startup() I’m crashing. The calling code looks like this: > > LIBSSH2_SESSION **session; > . > . > . > *session = libssh2_session_init_ex(ssh_alloc, ssh_free, ssh_realloc, name); > if (*session) { > //set a timeout so we can bail if we try to talk to something that isn't > SSH > libssh2_session_set_timeout(*session, 60000); // 60 sec > if (libssh2_session_startup(*session, (int)socket)) { > . > . > . > } > } > > > The stack trace of the crash is: > #0 0x0000000000000000 in 0x00000000 () > #1 0x0000000101354380 in diffie_hellman_sha1 () > #2 0x0000000101356765 in > kex_method_diffie_hellman_group14_sha1_key_exchange () > #3 0x00000001013522bf in _libssh2_kex_exchange () > #4 0x000000010135e2fe in session_startup () > #5 0x000000010135e088 in libssh2_session_handshake () > #6 0x000000010135e5db in libssh2_session_startup () > > Any suggestions on what might be going on or what I could do to diagnose it? > > Thanks, > John Engstrom > > _______________________________________________ > libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
_______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
