-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
Go SSL segfault on nix darwin #27353
Comments
This will probably be addressed by #24693, but I haven't had time to address that. Any volunteers to try implementing? |
The reason it doesn't segfault when NIX_SSL_CERT_FILE is set it because of a patch that tries to avoid the code that interacts with Security.framework.
We could fix the binary by patching it there, similar to what we do for dylibs. But that doesn't help projects that use x509 so #24693 is needed for a general solution. I'll see if I can find some time to look at it. |
Fixed by #27598 |
Issue description
This is from the comments #18223 (which might be closed because go1.6 does build on darwin).
Go programs that use SSL segfault when neither SSL_CERT_FILE nor NIX_SSL_CERT_FILE environment variables are set.
I'm not sure about the impact of this and the whole story around
{NIX_,}SSL_CERT_FILE
, but it seems that the program shouldn't segfault, but error out at worst.Steps to reproduce
Put the expression below (due to @zimbatm) in
default.nix
, runnix-build
.(or see https://gist.githubusercontent.com/zimbatm/8a67bd43242eaaed75924bd25e6fb5c6/raw/1537770e6db2d908fd524c4ff66caf2224e73139/default.nix)
Then run:
Technical details
The text was updated successfully, but these errors were encountered: