Hi Charles,
Yes, when I build and run it completely from master, I have the same issue.
So I get this when I
shut it down with `killall kamailio`.
This time I run it with log_stderror=yes , so it prints alot of debugging messages - it seems it tries to free() un-allocated memory :
........
37(18544) DEBUG: <core> [main.c:856]: sig_usr(): Memory still-in-use summary (pkg):
0(18507) DEBUG: memcached [memcached.c:251]: mod_destroy(): remove memory manager callbacks 0(18507) DEBUG: memcached
[memcached.c:254]: mod_destroy(): memory manager callbacks removed*** glibc detected ***
/opt/kamailio/sbin/kamailio: free(): invalid pointer: 0x00007fd4767b57f0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x760e6)[0x7fd476a770e6]
/usr/local/lib/libmemcached.so.11(+0x1711a)[0x7fd46d8f911a]
/opt/kamailio/sbin/kamailio(destroy_modules+0x1f)[0x4ed69f]
/opt/kamailio/sbin/kamailio(cleanup+0x2d)[0x466a6d]
/opt/kamailio/sbin/kamailio[0x4677bf]
/opt/kamailio/sbin/kamailio(handle_sigs+0x20f)[0x467abf]
/opt/kamailio/sbin/kamailio(main_loop+0x151c)[0x46a12c]
/opt/kamailio/sbin/kamailio(main+0x1619)[0x46bda9]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x7fd476a1fcdd]
/opt/kamailio/sbin/kamailio[0x4145e9]
........
I use libmemcached version 1.0.17 .
Let me know if I can help you debug this.
Regards,
Dragos
From: Charles Chance <charles.chance@sipcentric.com>
To: Dragos Oancea <droancea@yahoo.com>
Cc: "sr-dev@lists.sip-router.org" <sr-dev@lists.sip-router.org>
Sent: Tuesday, June 18, 2013 12:01 PM
Subject: Re: the new memcache module
Hi Dragos,
I don't think it will make a difference, but do you still see the problem if you build/run
Kamailio completely from master, instead of just copying across the compiled memcache module?
Cheers,
Charles
www.sipcentric.com
Follow us on twitter @sipcentric
Sipcentric Ltd.
Company registered in England & Wales no. 7365592. Registered
office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham B7 4EJ.