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
Thanks Hervé. I'm using Kamailio 3.1.0 in a RHEL 5. Do you know if this issue is solved in Kamailio release 3.1.3?
Cheers, Ricardo Domínguez
De: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] En nombre de Hervé Cochet Enviado el: miércoles, 11 de mayo de 2011 11:20 Para: sr-users@lists.sip-router.org Asunto: Re: [SR-Users] core dump
Hi,
I also have the same problem with kamailio 3.1
I made a modification to the file daemonize.c because if lim.rlim_cur is set to -1 the test with size parameter at line 491 do not work because rlimit parameters are unsigned int.
--- kamailio-3.1.0/daemonize.c.ori 2011-04-12 12:24:14.000000000 +0200 +++ kamailio-3.1.0/daemonize.c 2011-04-12 12:24:57.000000000 +0200 @@ -488,7 +488,7 @@ strerror(errno)); goto error; } - if (lim.rlim_cur<size){ + if ((int)lim.rlim_cur<size){ /* first try max limits */ newlim.rlim_max=RLIM_INFINITY; newlim.rlim_cur=newlim.rlim_max;
Thanks to this patch the core dump should be generated.
This work for me on my testing servers, BUT with my production servers (debian 5.0.1) where the core is not generated and I cannot understand why...
Hervé
On 11/05/2011 10:28, Dominguez Jover, Ricardo wrote: 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
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
IIRC there were some changes in recent kernels which needs some more tweaking (there was a commit from Daniel, but I can't remember the details)
regards Klaus
Am 11.05.2011 10:28, schrieb 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
- 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
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Thanks Klaus, I found the commit which is included in release 3.1.3. We've upgraded some hours ago and no crash at the moment (so no core dump is neither generated).
I'll let you know about this issue.
Regards, Ricardo
-----Mensaje original----- De: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] En nombre de Klaus Darilion Enviado el: miércoles, 11 de mayo de 2011 11:40 Para: sr-users@lists.sip-router.org Asunto: Re: [SR-Users] core dump
IIRC there were some changes in recent kernels which needs some more tweaking (there was a commit from Daniel, but I can't remember the details)
regards Klaus
Am 11.05.2011 10:28, schrieb 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
- 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
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users