Home » U++ Library support » U++ Core » Core/SSL crashes at exit on Linux.
Core/SSL crashes at exit on Linux. [message #49394] |
Fri, 02 February 2018 13:06 |
Oblivion
Messages: 1112 Registered: August 2007
|
Senior Contributor |
|
|
Hello,
SSL 1.1.0, crashes on cleanup (always).
(InitExit.cpp, line 90):
sk_SSL_COMP_free( pCOMP ); // According to gdb, pCOMP seems to be a a valid pointer but app crashes after this line.
// Commenting out this line prevents crashes, but I'm not sure if it leaks or not. (U++'s allocators don't complain)
It crashes after this line, not in it, so a double freeing might be happening. I'm not familiar with low level code of OpenSSL but it says:
https://www.openssl.org/docs/man1.1.0/ssl/SSL_COMP_add_compr ession_method.html
Quote:
In versions of OpenSSL prior to 1.1.0 SSL_COMP_free_compression_methods() freed the internal table of compression methods that were built internally, and possibly augmented by adding SSL_COMP_add_compression_method(). However this is now unnecessary from version 1.1.0. No explicit initialisation or de-initialisation is necessary. See OPENSSL_init_crypto and OPENSSL_init_ssl. From OpenSSL 1.1.0 calling this function does nothing.
Best regards,
Oblivion
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Fri, 02 February 2018 14:47] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Sep 20 08:22:11 CEST 2024
Total time taken to generate the page: 0.05478 seconds
|