core dump
by Dominguez Jover, Ricardo
Hi everybody,
We are having an uncontrolled crash in Kamailio 3.1:
May 10 20:34:51 tip1 /usr/local/kamailio-3.1/sbin/kamailio[23366]: : <core> [pass_fd.c:293]: ERROR: receive_fd: EOF on 39
May 10 20:34:51 tip1 /usr/local/kamailio-3.1/sbin/kamailio[23327]: ALERT: <core> [main.c:741]: child process 23364 exited by a signal 11
May 10 20:34:51 tip1 /usr/local/kamailio-3.1/sbin/kamailio[23327]: ALERT: <core> [main.c:744]: core was not generated
I've read in several posts I must generate the "Core Dump" to know what is happening. I'm trying to generate it in this way.
"/etc/init.d/Kamailio" file:
if test "$DUMP_CORE" = "yes" ; then
1. set proper ulimit
ulimit -c unlimited
directory for the core dump files
COREDIR=/dumps/
[ -d $COREDIR ] || mkdir $COREDIR
chmod 777 $COREDIR
echo "$COREDIR/core.%e.sig%s.%p" > /proc/sys/kernel/core_pattern
fi
"/etc/default/Kamailio" file:
DUMP_CORE=yes
But the core is not yet generated.
Then I've added -w option:
OPTIONS="-P $PID_FILE -m $MEMORY -u $USER -g $GROUP -w /dumps/"
But core still not generated
In "kamailio.cfg" I´ve also added:
disable_core_dump=no
User running Kamailio is "kamailio" who has 777 permissions in /dumps/ directory. No way.
Anyhelp would be appreciated.
Cheers,
Ricardo Domínguez