<!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 bgcolor="#ffffff" text="#000000">
    Hi Di-Shi,<br>
    <br>
    My guess is (as your module probably does external communication via
    network) that some function in your module does block in a I/O op
    while trying to communication with an external entity.<br>
    <br>
    Based on your description I do not see how opensips it self can
    block (like the sl_send_reply() function).<br>
    <br>
    So, to debug something like that, simply "block" all opensips
    processes and then attach to them with gdb in order to take a
    backtrace (while opensips still running) - this will indicate where
    the processes blocked.<br>
    <br>
    Attach to the SIP worker processes - they are blocking ; the fifo
    process works ok as it does not handle SIP traffic, so it does no
    block .<br>
    <br>
    Regards,<br>
    Bogdan<br>
    <br>
    On 02/06/2012 05:48 AM, Di-Shi Sun wrote:
    <blockquote cite="mid:89FF42C18C3E49D4AD558BF17709C5F4@e520"
      type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <meta name="GENERATOR" content="MSHTML 8.00.6001.19170">
      <style></style>
      <div><font face="Arial" size="2">Hi All,</font></div>
      <div>&nbsp;</div>
      <div><font face="Arial" size="2">We are testing our module
          that&nbsp;gets routing info from outside of OpenSIPS. OpenSIPS
          routes calls based on these info. If our module returns empty
          routing info for a call to OpenSIPS,&nbsp;OpenSIPS uses
          sl_send_reply to fail the call.</font></div>
      <div>&nbsp;</div>
      <div><font face="Arial" size="2">In heavy load, our module returns
          empty routing info to OpenSIPS quickly. Soon, all OpenSIPS SIP
          listen threads stick forever. OpenSIPS does not&nbsp;crash and&nbsp;it
          can still accept fifo command.&nbsp;</font><font face="Arial"
          size="2">We did not see any error message in OpenSIPS log. We
          also did not see any memory related message. If we make our
          module to return the empty routing info slower, OpenSIPS SIP
          listen threads&nbsp;do not stick.</font></div>
      <div>&nbsp;</div>
      <div><font face="Arial" size="2">Would you please tell me what
          issue it may be and which part I should dig more deep?</font></div>
      <div>&nbsp;</div>
      <div><font face="Arial" size="2">Thanks,</font></div>
      <div>&nbsp;</div>
      <div><font face="Arial" size="2">Di-Shi Sun<br>
          VoIP Routing, Accounting, Security<br>
          <a moz-do-not-send="true" href="http://www.TransNexus.com">www.TransNexus.com</a></font></div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Devel@lists.opensips.org">Devel@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel">http://lists.opensips.org/cgi-bin/mailman/listinfo/devel</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
  </body>
</html>