leverage installed OpenSSL/BoringSSL when cURL is used as a dependency for TensorFlow#2197
Merged
boegel merged 1 commit intoeasybuilders:developfrom Oct 8, 2020
Merged
Conversation
boegel
approved these changes
Oct 8, 2020
Member
boegel
left a comment
There was a problem hiding this comment.
lgtm, tested with various TensorFlow easyconfigs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When using EB provided cURL but NOT using EB/system provided boringssl then TensorFlow will build and use an own version of BoringSSL which causes symbol name conflicts with the OpenSSL used by cURL ultimately leading to crashes. See tensorflow/tensorflow#43878 for details.
As the "system boringssl" simply links
-lssl -lcryptowe can simply tell TF to use the system "boringssl" which is in fact the system OpenSSL, so all checks out.Validated via
eb TensorFlow-2.3.1-fosscuda-2019b-Python-3.7.4.eb --rebuild --installpath /tmp/ebinstall --disable-cleanup-tmpdir --disable-cleanup-builddir -rand thengrep -r X509_VERIFY_PARAM_set_flags $EASYBUILD_BUILDPATHwhich shows only a few hits but no files of BoringSSL. Before this PR there are sources from BoringSSL.Example code to trigger this and stacktrace/core dump (needs an additional package
pip install --user tensorflow_datasets):Stack trace