Subject: Re: libssh crash on Mac

Re: libssh crash on Mac

From: Jan Ehrhardt <>
Date: Tue, 13 Aug 2019 09:37:40 +0200

Leo in (Fri, 9 Aug 2019 22:34:59 -0400):
>But the crash happens when the operation is passed to libssh2. So my
>only hope that someone here will be able to decipher the errors I see in
>Xcode debugger.

These were the errors you reported to see in Xcode debugger:

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

Libssh2 does not need any engine, so it is safe to remove both
ENGINE_load_builtin_engines() and ENGINE_register_all_complete() by
applying this patch in src/openssl.h:

Please recompile your libssh2.a after that patch and report back if the
app still crashes and what Xcode debugger reports then. It cannot be the
same as the message above, because those lines do not exist anymore.

Received on 2019-08-13