Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asn1crypto fails on macOS Catalina, due to loading unversioned /usr/lib/libcrypto.dylib #158

Closed
fxcoudert opened this issue Oct 18, 2019 · 4 comments

Comments

@fxcoudert
Copy link

fxcoudert commented Oct 18, 2019

I know this sounds weird, but I'm filing an issue to document a problem in past versions of asn1crypto, even though it is now fixed in version 1.0.0 and later. Please feel free to close :)

On macOS 10.15 “Catalina”, we were seeing as part of Homebrew builds several python-related formulas fail to build, due to an abort in pip. The issue is the following:

  • pip aborts, and the crash log contains this:
/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.  
  • That's because /usr/lib/libcrypto.dylib on Catalina is booby-trapped, and should not be used.
  • It turns out is gets loaded from asn1crypto/_perf/_big_num_ctypes.py
  • Because as part of asn1crypto there is no way to specific a specific library name or location for libcrypto.

Of course, when I finally managed to get the backtrace and find out the issue was located here, I then quickly discovered that this code was removed in 564e744 and should no longer be a problem with asn1crypto 1.0.0 or asn1crypto 1.2.0.

@fxcoudert
Copy link
Author

I can confirm that building ansible with asn1crypto 1.2.0 succeeds, while it failed with pre-1.0.0 versions.

@joernheissler
Copy link
Collaborator

Good to see that this change improved things for you :-)
See #100 and #113 for more details.
Or #157 for an example where code needs fixing now.

annatrz added a commit to annatrz/analysis-preservation.cern.ch that referenced this issue Nov 20, 2019
* issue with macOS catalina and older versions of asn1crpyto
(wbond/asn1crypto#158)

Signed-off-by: Anna Trzcinska <[email protected]>
pamfilos pushed a commit to cernanalysispreservation/analysispreservation.cern.ch that referenced this issue Nov 20, 2019
* issue with macOS catalina and older versions of asn1crpyto
(wbond/asn1crypto#158)

Signed-off-by: Anna Trzcinska <[email protected]>
ulope added a commit to ulope/raiden that referenced this issue Apr 6, 2020
This fixes a crashing issue on macOS Catalina (10.15).
See wbond/asn1crypto#158
@dendisuhubdy
Copy link

Happened to occur this, so annoying!

@wbond
Copy link
Owner

wbond commented Apr 13, 2020

If you are running into this it means you are running and old version of asn1crypto. The package no longer uses libcrypto.dylib on Mac.

ulope added a commit to ulope/raiden that referenced this issue Apr 15, 2020
This fixes a crashing issue on macOS Catalina (10.15).
See wbond/asn1crypto#158
ulope added a commit to raiden-network/raiden that referenced this issue Apr 15, 2020
This fixes a crashing issue on macOS Catalina (10.15).
See wbond/asn1crypto#158
hackaugusto pushed a commit to raiden-network/raiden that referenced this issue May 29, 2020
This fixes a crashing issue on macOS Catalina (10.15).
See wbond/asn1crypto#158
edwinsteele added a commit to ConnectBox/connectbox-pi that referenced this issue Dec 1, 2020
wbond/asn1crypto#158

Also sync requirements.in with requirements.txt (pip-compile)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants