SSL_CTX_set0_tmp_dh_pkey() segfaulted in WSL2 environment #1802
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.
A segfault happened due MySQL/SSL mix in WSL2 environment:
Backtrace:
/home/anikaiful/unified/Binaries/NWNX_Core.so(_ZN7NWNXLib8Platform13GetStackTraceB5cxx11Eh+0x64) [0x7fe30f3c6004]
/home/anikaiful/unified/Binaries/NWNX_Core.so(nwnx_signal_handler+0xd6) [0x7fe30f36d6c6]
/lib/x86_64-linux-gnu/libc.so.6(+0x45320) [0x7fe30edc3320]
/lib/x86_64-linux-gnu/libssl.so.3(+0x2e742) [0x7fe30c256742]
/lib/x86_64-linux-gnu/libssl.so.3(SSL_CTX_set0_tmp_dh_pkey+0x33) [0x7fe30c265ed3]
/lib/x86_64-linux-gnu/libmysqlclient.so.21(+0x9672d) [0x7fe2fd3a372d]
/lib/x86_64-linux-gnu/libmysqlclient.so.21(+0x37a7e) [0x7fe2fd344a7e]
/lib/x86_64-linux-gnu/libmysqlclient.so.21(+0x38700) [0x7fe2fd345700]
/lib/x86_64-linux-gnu/libmysqlclient.so.21(+0x40efc) [0x7fe2fd34defc]
/lib/x86_64-linux-gnu/libmysqlclient.so.21(mysql_real_connect+0x109) [0x7fe2fd34a479]
And thus I introduced:
export NWNX_SQL_SSL_DISABLED=true
Less secure, but with that flag my nwnx:ee doesn't catch fire... :-S