<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
/* List Definitions */
@list l0
        {mso-list-id:979115239;
        mso-list-type:hybrid;
        mso-list-template-ids:55460152 67698711 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-number-format:alpha-lower;
        mso-level-text:"%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-tab-stop:1.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-tab-stop:1.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level4
        {mso-level-tab-stop:2.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-tab-stop:2.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-tab-stop:3.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level7
        {mso-level-tab-stop:3.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-tab-stop:4.0in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-tab-stop:4.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='color:#1F497D'>Hmmm… -D_REENTRANT supposed to
help here?<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>--</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:#1F497D'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>Best Regards,</span><span style='font-size:12.0pt;font-family:
"Times New Roman","serif";color:#1F497D'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>Alex Massover</span><span style='font-size:12.0pt;font-family:
"Times New Roman","serif";color:#1F497D'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>VoIP R&D TL</span><span style='font-size:12.0pt;font-family:
"Times New Roman","serif";color:#1F497D'><o:p></o:p></span></p>
</div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>Jajah Inc.</span><span style='color:#1F497D'><o:p></o:p></span></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
devel-bounces@lists.opensips.org [mailto:devel-bounces@lists.opensips.org] <b>On
Behalf Of </b>Alex Massover<br>
<b>Sent:</b> Monday, January 11, 2010 12:21 PM<br>
<b>To:</b> OpenSIPS devel mailling list<br>
<b>Subject:</b> Re: [OpenSIPS-Devel] Debugging crash<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span style='color:#1F497D'>Here’s a backtrace:<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>#0 0xb7fcf424 in
__kernel_vsyscall ()<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>(gdb) bt<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>#0 0xb7fcf424 in
__kernel_vsyscall ()<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>#1 0xb7e7c640 in raise ()
from /lib/i686/cmov/libc.so.6<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>#2 0xb7e7e018 in abort ()
from /lib/i686/cmov/libc.so.6<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>#3 0xb7eb93dd in ?? ()
from /lib/i686/cmov/libc.so.6<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>#4 0xb7ebf6b4 in ?? ()
from /lib/i686/cmov/libc.so.6<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>#5 0xb7ec18b6 in free ()
from /lib/i686/cmov/libc.so.6<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>#6 0xb7ebb69d in
_IO_file_seekoff () from /lib/i686/cmov/libc.so.6<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>#7 0xb7eb1900 in ?? ()
from /lib/i686/cmov/libc.so.6<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>#8 0xb7eb7ea8 in rewind ()
from /lib/i686/cmov/libc.so.6<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>#9 0xb74c7f2e in ?? ()
from /lib/i686/cmov/libnss_files.so.2<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>#10 0xb74c86b8 in
_nss_files_gethostbyaddr_r () from /lib/i686/cmov/libnss_files.so.2<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>#11 0xb7f4a5ec in
gethostbyaddr_r () from /lib/i686/cmov/libc.so.6<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>#12 0xb7f4a3dc in gethostbyaddr
() from /lib/i686/cmov/libc.so.6<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>#13 0xb7ae75f5 in rc_ip_hostname
() from /usr/lib/libradiusclient-ng.so.2<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>#14 0xb7ae3b5f in rc_send_server
() from /usr/lib/libradiusclient-ng.so.2<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>#15 0xb7ae2b3d in rc_acct () from
/usr/lib/libradiusclient-ng.so.2<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>#16 0xb7da60cf in
rad_send_message () from /usr/lib/opensips/modules/aaa_radius.so<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>#17 0xb7ac6fed in thread_rc_acct
() from /usr/lib/opensips/modules/acc.so<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>#18 0xb7ba54c0 in start_thread
() from /lib/i686/cmov/libpthread.so.0<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>#19 0xb7f3161e in clone () from
/lib/i686/cmov/libc.so.6<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>--</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:#1F497D'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>Best Regards,</span><span style='font-size:12.0pt;font-family:
"Times New Roman","serif";color:#1F497D'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>Alex Massover</span><span style='font-size:12.0pt;font-family:
"Times New Roman","serif";color:#1F497D'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>VoIP R&D TL</span><span style='font-size:12.0pt;font-family:
"Times New Roman","serif";color:#1F497D'><o:p></o:p></span></p>
</div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>Jajah Inc.</span><span style='color:#1F497D'><o:p></o:p></span></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
devel-bounces@lists.opensips.org [mailto:devel-bounces@lists.opensips.org] <b>On
Behalf Of </b>Alex Massover<br>
<b>Sent:</b> Monday, January 11, 2010 12:04 PM<br>
<b>To:</b> OpenSIPS devel mailling list<br>
<b>Subject:</b> [OpenSIPS-Devel] Debugging crash<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Hi!<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>We’re running a stress test and after some time (tens of
minutes and hundreds of processes calls) OpenSIPS 1.6.0 crashes.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Below is an output of gdb. OpenSIPS is slightly tuned for
performance:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo2'><![if !supportLists]><span
style='mso-list:Ignore'>a)<span style='font:7.0pt "Times New Roman"'>
</span></span><![endif]><span dir=LTR></span>RADIUS accounting is sent in
detached thread<o:p></o:p></p>
<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo2'><![if !supportLists]><span
style='mso-list:Ignore'>b)<span style='font:7.0pt "Times New Roman"'>
</span></span><![endif]><span dir=LTR></span>Libradius-ng uses shared memory
& atomic memory access instead of seqfile<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Any tip where/how to dig please?<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>(gdb) core core.opensips.sig6.11596<o:p></o:p></p>
<p class=MsoNormal>[New Thread 30240]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 30238]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 30231]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 30229]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 30203]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 30191]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 30183]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 30165]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 30159]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 30155]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 30142]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 30130]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 30126]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 30103]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 30070]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 30037]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 30010]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29966]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29912]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29862]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29818]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29742]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29715]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29682]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29628]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29597]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29586]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29561]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29491]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29396]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29366]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29359]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29316]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29305]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29278]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29264]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29260]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29238]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29235]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29210]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29184]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29136]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 29132]<o:p></o:p></p>
<p class=MsoNormal>[New Thread 11596]<o:p></o:p></p>
<p class=MsoNormal>Core was generated by `/usr/sbin/opensips -P
/var/run/opensips/opensips.pid -m 32 -u opensips -g opens'.<o:p></o:p></p>
<p class=MsoNormal>Program terminated with signal 6, Aborted.<o:p></o:p></p>
<p class=MsoNormal>#0 0xb7fcf424 in __kernel_vsyscall ()<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>--</span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Best
Regards,</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Alex
Massover</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>VoIP
R&D TL</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Jajah
Inc.</span><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br>
<br>
This mail was sent via Mail-SeCure System.<br>
<br>
<br>
This mail was received via Mail-SeCure System.<o:p></o:p></span></p>
</div>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br>
<br>
This mail was sent via Mail-SeCure System.<br>
<br>
<br>
This mail was received via Mail-SeCure System.<o:p></o:p></span></p>
</div>
</div>
<br><br>
This mail was sent via Mail-SeCure System.<br>
</body>
</html>