-
-
Notifications
You must be signed in to change notification settings - Fork 64
python 3.9 segfault in libssl SSL_get_peer_certificate #195
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
Comments
Found a possible issue and a workaround. This fixes the segfault for me:
I think the problem comes from pyenv trying to use openssl 1.1 but python ssl lib linking with openssl 3: https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.9.21#L1
|
I ran into the same issue - I've discovered that the error stops happening when using Python >= 3.11, since 3.11 switched to OpenSSL3. The workaround provided by @xeron works for me. |
This was fixed in pyenv/pyenv#3223. |
Provide environment information
To Reproduce
Describe the Bug
I'm getting segfaults in python 3.9 on macOS 15.1.1 with openssl 3.4.0 from homebrew:
Not sure if related but
SSL_get_peer_certificate
was deprecated recently: openssl/openssl#24296Reported to cpython here but not reproducible with python 3.9 from homebrew or when compiled manually from sources. Could be
asdf-python
orpyenv
specific bug.Expected Behaviour
pip install
works and doesn't segfaultThe text was updated successfully, but these errors were encountered: