Skip to content
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

SSL_CTX_set0_tmp_dh_pkey() segfaulted in WSL2 environment #1802

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

anikaiful
Copy link

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

… in WSL environment for a reason or other and thus the option to disable SSL if crashing occurs.
… in WSL environment for a reason or other and thus the option to disable SSL if crashing occurs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant