[SR-Users] core dump

Dominguez Jover, Ricardo djover at umh.es
Wed May 11 11:38:22 CEST 2011


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 at lists.sip-router.org [mailto:sr-users-bounces at lists.sip-router.org] En nombre de Hervé Cochet
Enviado el: miércoles, 11 de mayo de 2011 11:20
Para: sr-users at 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 at lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

  

-- 


Hervé COCHET.

Ingénieur en développement logiciel.
Tel Direct:
+33(0)482 531 303
TECHNOSENS SAS
Donnons du sens à la Technologie
31, rue Gustave Eiffel
F-38000 Grenoble
+33(0)476 230 240
www.technosens.fr 
--------------------------------------------------------------------------------
Ce message et les documents l'accompagnant sont confidentiels. Ils contiennent des informations qui sont destinées uniquement à la personne ou l'entité dont le nom est indiqué ci-dessus. Toute reproduction, divulgation ou autre utilisation de ces informations, même partiellement, par un autre destinataire est strictement interdite. Si ce message vous est parvenu par erreur, veuillez le détruire immédiatement et nous le faire savoir par téléphone, Fax ou e-mail.



More information about the sr-users mailing list