-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
deps: backport crypto/init.c fix for openssl110 #21848
Conversation
The statically linked program should not try to keep loaded by dlopen trick. Fixes: nodejs#21845 Refs: openssl/openssl#6725
/cc @nodejs/crypto @tniessen |
I’m going to label this as “blocked” until the upstream PR is merged – thanks for taking care of this issue! |
Closing this since the upstream PR seems to be stalled. Please feel free to reopen this. |
There seems to have been a fix for that (see |
@lal12 do you care to make a PR? Just adding a define to the gyp file should be straightforward. I can even do it, but I'd need way more info. I gather you suggest adding OPENSSL_NO_PINSHARED? But only for Node.js 8.x, since 10.x and higher use openssl 1.1.1? Though 10.x supports being built against an external openssl 1.1.0, so it may apply. /cc @shigeki @nodejs/crypto |
I am not that familiar with the gyp build system. But I will try.
The flag was only added in the newest openssl (I think 1.1.1b) versions. So
I am not exactly sure how that is handled, will the newest openssl patch
version be backported? Seems to be the correct way of doing it to me. Or
will just the fix with the flag be backported to Node's internal openssl?
I would start making a PR for the master? Correct?
|
Look in common.gypi in top-level of repo for other `OPENSSL_blah_blah`
defines. Change it there, then run `./configure`.
Change would be to master. It will be backported (by us, you don't
have to do anything) to all branches that have openssl 1.1.1 and are
supported (i.e., to 12.x and 10.x).
Thanks!
|
OpenSSL dlloads itself to prevent unloading, in case it might be dynamically loaded. However when linked statically this will lead to dloading the main executable. Fixes: nodejs#27925 Refs: nodejs#21848 (comment)
OpenSSL dlloads itself to prevent unloading, in case it might be dynamically loaded. However when linked statically this will lead to dloading the main executable. Refs: nodejs#21848 (comment) PR-URL: nodejs#28045 Fixes: nodejs#27925 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
OpenSSL dlloads itself to prevent unloading, in case it might be dynamically loaded. However when linked statically this will lead to dloading the main executable. Refs: #21848 (comment) PR-URL: #28045 Fixes: #27925 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
OpenSSL dlloads itself to prevent unloading, in case it might be dynamically loaded. However when linked statically this will lead to dloading the main executable. Refs: nodejs#21848 (comment) Fixes: nodejs#29992 PR-URL: nodejs#28045 Fixes: nodejs#27925 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
OpenSSL dlloads itself to prevent unloading, in case it might be dynamically loaded. However when linked statically this will lead to dloading the main executable. Refs: #21848 (comment) Fixes: #29992 Backport-PR-URL: #30005 PR-URL: #28045 Fixes: #27925 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
The statically linked program should not try to keep loaded
by dlopen trick.
Fixes: #21845
Refs: openssl/openssl#6725
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes