[sr-dev] crash at f_malloc.c

Juha Heinanen jh at tutpro.com
Tue Sep 22 07:06:55 CEST 2015


Daniel-Constantin Mierla writes:

> Have you changed the value of MEMDBG in Makefile.defs? It should be 1
> and that enables memory debugging, but I don't see the extra fields in
> fm fragmed structure.

Yes, I have have these two Makefile.defs changes:

# Turn off memory debuging
sed -i -e 's/MEMDBG ?= 1/MEMDBG ?= 0/' $SRC_DIR/Makefile.defs

# Enable joining of free memory chunks
sed -i -e 's/-DWITH_XAVP/-DWITH_XAVP -DMEM_JOIN_FREE/' $SRC_DIR/Makefile.defs

> Can you try building with MEMDBG=1, then add '-x qm' to command line
> starting kamailio? Let's see if q_malloc gets more hints.

Will try, Juha



More information about the sr-dev mailing list