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

libcrypto.so segmentation fault in ERR_clear_error #24147

Closed
2xB opened this issue Apr 15, 2024 · 2 comments
Closed

libcrypto.so segmentation fault in ERR_clear_error #24147

2xB opened this issue Apr 15, 2024 · 2 comments
Labels
branch: master Merge to master branch triaged: bug The issue/pr is/fixes a bug

Comments

@2xB
Copy link

2xB commented Apr 15, 2024

On a Linux Mint 21 "Vanessa" system even after updating OpenSSL with self-compiled commit d4188f2 in debug mode, @richeldichel and I observe the following segmentation fault (gdb backtrace):

#0  0x00007ffff42c03fe in __GI___libc_free (mem=0x1) at ./malloc/malloc.c:3368
#1  0x00007ffff5bc3c2a in CRYPTO_free (str=0x1, file=0x7ffff5e2d770 "crypto/err/err_local.h", line=91)
    at crypto/mem.c:282
#2  0x00007ffff5b4e95f in err_clear (es=0x55555570e990, i=0, deall=0) at crypto/err/err_local.h:91
#3  0x00007ffff5b4ef42 in ERR_clear_error () at crypto/err/err.c:344

This happens for a project using gSOAP (stdsoap2.c[pp] 2.8.100, inside soap_ssl_error()).

From its documentation, I think ERR_clear_error() should not be able to throw segmentation faults?

@2xB 2xB added the issue: bug report The issue was opened to report a bug label Apr 15, 2024
@t8m t8m added triaged: bug The issue/pr is/fixes a bug branch: master Merge to master branch and removed issue: bug report The issue was opened to report a bug labels Apr 15, 2024
@dmage
Copy link
Contributor

dmage commented Apr 16, 2024

@2xB do you have a reproducer? It looks like a buffer overrun that happened before ERR_clear_error.

@2xB
Copy link
Author

2xB commented May 3, 2024

After compiling our application against a different CERN ROOT version then what we used before, everything works. We assume that this originated from something along the lines of an unfortunate C++ ABI mismatch against this other library...

@2xB 2xB closed this as completed May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch: master Merge to master branch triaged: bug The issue/pr is/fixes a bug
Projects
None yet
Development

No branches or pull requests

3 participants