Subject: Re: OS X Crash in libssh2_session_startup() - EXC_BAD_ACCESS (code=1 address=0x0)

Re: OS X Crash in libssh2_session_startup() - EXC_BAD_ACCESS (code=1 address=0x0)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 1 Sep 2015 11:40:28 +0200 (CEST)

On Mon, 31 Aug 2015, Engstrom, John 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:

> 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?

Run it with a debugger (after you build libssh2 debug-enabled) and check our
frame 1 and 2 where it went wrong and why?

-- 
  / daniel.haxx.se

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2015-09-01