Hi All,
Experienced an issue with Kamailio which presented with the below error
tls_pre_init(): Unable to set the memory allocation functions
I have two servers CentOS8 and RHEL8. CentOS8 runs as expected, RHEL8 shows the errors
This forum suggested this was related to an OpenSSL issue https://lists.kamailio.org/pipermail/sr-users/2013-August/079381.html
The below script was compiled and run as suggested in order confirm the OpenSSL was present
#include <stdio.h>
#include <openssl/ssl.h>
static void *myMalloc( size_t s ) { return NULL; }
static void *myRealloc( void *p, size_t s ) { return NULL; }
static void myFree( void *p ) {}
int main()
{
if ( !CRYPTO_set_mem_functions( myMalloc, myRealloc, myFree) )
{
fprintf( stderr, "Unable to set the memory allocation functions\n");
return -1;
}
return 0;
}
The output on each system was different
CentOS – nothing outputted
RHEL – “Unable to set the memory allocation functions”
Though versions of OpenSSL installed appeared the same
yum info openssl-libs openssl | grep 'Packages\|Name\|Version'
CentOS:
Installed Packages
Name : openssl
Version : 1.1.1k
Name : openssl-libs
Version : 1.1.1k
RHEL:
Installed Packages
Name : openssl
Version : 1.1.1k
Name : openssl-libs
Version : 1.1.1k
strings /usr/lib64/libcrypto.so | grep "^OpenSSL"
Both systems have the same output
Would someone be able to confirm what is going on here?
Does the above script suggest a problem with the OpenSSL-Libs?
Am I looking in the right places to confirm a difference between the two VMs?
Thanks,
Chris