On 10/2/12 3:06 PM, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
I just tried 'make cfg MEMDBG=1' and the
-DDBG_QM_MALLOC is there (you
can check config.mak).
i added directly to -DDBG_QM_MALLOC to CFLAGS:
/usr/bin/make cfg CC=cc CFLAGS="-Wall -DDBG_QM_MALLOC -g" MEMDBG=1 QUIET=1
FMSTATS=1 KMSTATS=1 MAIN_NAME=sip-proxy SCTP=1 STUN=1
This is not the right way,
because when DBG_QM_MALLOC is activated, the
F_MALLOC has to dissapear.
It is what MEMDBG=1 does, adds some compile flags and removes others.
Have you tried make proper?
Cheers,
Daniel
after that -DDBG_QM_MALLOC shows up with -I:
# /usr/sbin/sip-proxy -I
Print out of sip-proxy internals
Version: sip-proxy 3.4.0-dev4 (x86_64/linux)
Default config: /etc/sip-proxy/sip-proxy.cfg
Default paths to modules:
/usr/lib/sip-proxy/modules:/usr/lib/sip-proxy/modules_s:/usr/lib/sip-proxy/modules_k
Compile flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS,
USE_STUN, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC,
DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER,
USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
when i then stop the proxy at debug level 2, i get the same free(0)
WARNINGs to syslog and no additional info. when i set debug level to 3
and then stop the proxy, i get lots of mem DEBUGs to syslog, but NOT the
WARNINGs. does this mean that the problem does not appear at debug
level 3?
-- juha
--
Daniel-Constantin Mierla -
http://www.asipto.com
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Nov 5-8, 2012 -
http://asipto.com/u/kat
Kamailio Advanced Training, Miami, USA, Nov 12-14, 2012 -
http://asipto.com/u/katu