On 5/4/19 6:58 PM, Peter Stuge wrote:
Leo wrote:
I finally was able to compile the Xcode app with libssh2 1.8.0 using
libssh2.a library.
That's good progress. Please build libssh2 with debug
(--enable-debug if using ./configure) and then add this line:

libssh2_trace(session, ~0);

after the call to libssh2_session_init() but before the call to
libssh2_session_handshake().

Hi Peter,

I finally can get back to this issue after spending lengthy time on implementing Apple's notarization in my apps.


I followed your instructions and built libssh2 with --enable-debug.

Now when I try to connect to SFTP site, the crash produces the following output in Xcode debugger:

openssl.c > _libssh2_openssl_crypto_init()


#if OPENSSL_VERSION_NUMBER >= 0x10100000L && \
?????? !defined(LIBRESSL_VERSION_NUMBER)
?????? #ifndef OPENSSL_NO_ENGINE
?????????????? ENGINE_load_builtin_engines();?????????????????????????????????? <-- Thread 8: EXC_BAD_ACCESS (code=1, address=0x116)
?????????????? ENGINE_register_all_complete();
?????? #endif


As you suggested, I also inserted libssh2_trace(session, ~0); after the call to libssh2_session_init() but before the call to libssh2_session_handshake() - but the crash happens before getting to that line.


Does the error above make any sense?


Thanks,
Leo
_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to