Hello,
following up -- apparently there is some issue with the lib in ubuntu 16.04, same module working fine in 15.10, as reported on the tracker:
- https://github.com/kamailio/kamailio/issues/714
When I get a chance I will install a ubuntu 16.04 myself and dig more into the libssl sources.
Cheers,
Daniel
On 18/07/16 14:46, Jayesh Nambiar wrote:
Hi Daniel,Thanks for looking into this. I tried with this patch and still get the same error. Here are the relevant part of logs:0(25032) DEBUG: <core> [cfg.y:1603]: yyparse(): loading module tls.so
0(25032) DEBUG: <core> [sr_module.c:575]: load_module(): trying to load </usr/local/kamailio/lib64/kamailio/modules/tls.so>
0(25032) DEBUG: <core> [mem/q_malloc.c:189]: qm_malloc_init(): qm_malloc_init: QM_OPTIMIZE=16384, /ROUNDTO=2048
0(25032) DEBUG: <core> [mem/q_malloc.c:191]: qm_malloc_init(): qm_malloc_init: QM_HASH_SIZE=2099, qm_block size=235152
0(25032) DEBUG: <core> [mem/q_malloc.c:193]: qm_malloc_init(): qm_malloc_init(0x7fda8249d000, 67108864), start=0x7fda8249d000
0(25032) DEBUG: <core> [mem/q_malloc.c:202]: qm_malloc_init(): qm_malloc_init: size= 67108864, init_overhead=235256
0(25032) ERROR: tls [tls_init.c:493]: tls_pre_init(): Unable to set the memory allocation functions
0(25032) ERROR: tls [tls_init.c:495]: tls_pre_init(): libssl current mem functions - m: 0x7fda87673550 r: 0x7fda87673c40 f: 0x7fda87673a70
0(25032) ERROR: tls [tls_init.c:497]: tls_pre_init(): Be sure tls module is loaded before any other module using libssl (can be loaded first to be safe)
0(25032) ERROR: <core> [sr_module.c:607]: load_module(): /usr/local/kamailio/lib64/kamailio/modules/tls.so: mod_register failed
0(25032) : <core> [cfg.y:3391]: yyerror_at(): parse error in config file /usr/local/kamailio/etc/kamailio/tlkn-edge/kamailio.cfg, line 47, column 12-19: failed to load module
Yes I can provide ssh access to this machine. I'll send it to you seperately.
Thanks,
- Jayesh
On Mon, Jul 18, 2016 at 2:25 PM Daniel-Constantin Mierla <miconda@gmail.com> wrote:
Hello,
no time over the weekend to look at logs, but I pushed just now a patch to try to see if the memory functions were set or something else prevented the set of memory functions.
Can you try with the patch:
- https://github.com/kamailio/kamailio/commit/966513b374eef598434c5310a43eac2735adfd2e
I am at IEFT96 so I will try to do some stuff during the breaks... if doesn't work, then it may take a bit to get more into it.
Just in case, would it be possible to get ssh access to such system?
Cheers,
Daniel
-- Daniel-Constantin Mierla http://www.asipto.com - http://www.kamailio.org http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda