Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

Crash on macOS 10.15 Catalina due to libcrypto loading #88

Open
piger opened this issue Feb 19, 2020 · 1 comment
Open

Crash on macOS 10.15 Catalina due to libcrypto loading #88

piger opened this issue Feb 19, 2020 · 1 comment

Comments

@piger
Copy link

piger commented Feb 19, 2020

Loading the unversioned libcrypto library will crash the Python process on macOS 10.15 Catalina:

pychef/chef/rsa.py

Lines 6 to 9 in 216cbb2

if sys.platform == 'win32' or sys.platform == 'cygwin':
_eay = CDLL('libeay32.dll')
else:
_eay = CDLL(find_library('crypto'))

The crash dialog shows:

Application Specific Information:
/usr/lib/libcrypto.dylib
abort() called
Invalid dylib load. Clients should not load the unversioned libcrypto dylib as it does not have a stable ABI.
@mishanius
Copy link

mishanius commented Mar 8, 2020

Hi as a "quick and dirty" fix you can do the following:
brew install openssl
and change the CDLL(find_library('crypto')) to CDLL('/usr/local/Cellar/[email protected]/1.1.1d/lib/libssl.1.1.dylib')

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants