<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
No, I did not test with kamailio 3.1.3<br>
<br>
<br>
Regards,<br>
<br>
Herv&eacute;<br>
<br>
On 11/05/2011 11:38, Dominguez Jover, Ricardo wrote:
<blockquote
 cite="mid:46E06B3F28AD344DBE53103DE027DC9D05585847@exmailer2.umhnet.es"
 type="cite">
  <pre wrap="">Thanks Herv&eacute;. 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&iacute;nguez

De: <a class="moz-txt-link-abbreviated" href="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@lists.sip-router.org</a> [<a class="moz-txt-link-freetext" href="mailto:sr-users-bounces@lists.sip-router.org">mailto:sr-users-bounces@lists.sip-router.org</a>] En nombre de Herv&eacute; Cochet
Enviado el: mi&eacute;rcoles, 11 de mayo de 2011 11:20
Para: <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
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&nbsp;&nbsp;&nbsp; 2011-04-12 12:24:14.000000000 +0200
+++ kamailio-3.1.0/daemonize.c&nbsp;&nbsp;&nbsp; 2011-04-12 12:24:57.000000000 +0200
@@ -488,7 +488,7 @@
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strerror(errno));
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; goto error;
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }
-&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (lim.rlim_cur&lt;size){
+&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if ((int)lim.rlim_cur&lt;size){
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; /* first try max limits */
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; newlim.rlim_max=RLIM_INFINITY;
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 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&eacute;

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]: : &lt;core&gt; [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: &lt;core&gt; [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: &lt;core&gt; [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<a class="moz-txt-link-rfc2396E" href="file:iftest">" file:
if test "</a>$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" &gt; /proc/sys/kernel/core_pattern
fi 


"/etc/default/Kamailio<a class="moz-txt-link-rfc2396E" href="file:DUMP_CORE=yesButthecoreisnotyetgenerated.ThenI'veadded-woption:OPTIONS=">" file:
DUMP_CORE=yes


But the core is not yet generated.

Then I've added -w option:

OPTIONS="</a>-P $PID_FILE -m $MEMORY -u $USER -g $GROUP -w /dumps/"

But core still not generated

In "kamailio.cfg" I&acute;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&iacute;nguez


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>

  

  </pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="CONTENT-TYPE" content="text/html; charset=ISO-8859-1">
<title></title>
<meta name="GENERATOR" content="OpenOffice.org 3.1  (Linux)">
<meta name="CREATED" content="20100825;9583200">
<meta name="CHANGED" content="20100825;10080600">
<style type="text/css">
        <!--
                @page { margin: 2cm }
                P { margin-bottom: 0.21cm }
                A:link { so-language: zxx }
        -->
        </style>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">Herv&eacute; COCHET.</p>
<br>
<p style="margin-bottom: 0cm;">
Ing&eacute;nieur en d&eacute;veloppement logiciel.<br>
Tel Direct:<br>
+33(0)482 531 303<br>
</p>
<p style="margin-bottom: 0cm;">
<b>TECHNOSENS SAS<br>
<i>Donnons du sens &agrave; la Technologie</i></b><br>
31, rue Gustave Eiffel<br>
F-38000 Grenoble<br>
+33(0)476 230 240<br>
<a href="http://www.technosens.fr"><span lang="en-US">www.technosens.fr</span></a>
</p>
<p style="margin-bottom: 0cm;"><font style="font-size: 8pt;" size="1">--------------------------------------------------------------------------------</font></p>
<p style="margin-bottom: 0cm;"><font style="font-size: 8pt;" size="1">Ce
message
et les documents l'accompagnant sont confidentiels. Ils
contiennent des informations qui sont destin&eacute;es uniquement &agrave; la
personne ou l'entit&eacute; dont le nom est indiqu&eacute; ci-dessus. Toute
reproduction, divulgation ou autre utilisation de ces informations,
m&ecirc;me partiellement, par un autre destinataire est strictement
interdite. Si ce message vous est parvenu par erreur, veuillez le
d&eacute;truire imm&eacute;diatement et nous le faire savoir par t&eacute;l&eacute;phone, Fax
ou e-mail.</font></p>
</div>
</body>
</html>