<!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">
    <tt>Hi Jeff,<br>
      <br>
      Have you tried to attach with gdb to the remaining process and to
      get a backtrace ?<br>
      <br>
      Regards,<br>
    </tt>
    <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>
    <br>
    On 11/12/2013 06:03 AM, Jeff Pyle wrote:
    <blockquote
cite="mid:CACYJG3Jzq_4NdsN+YXwS9Y1wN9jmGfv_M4jSDejqmSb8HNk7eQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div dir="ltr">
            <div>Hello,</div>
            <div><br>
            </div>
            <div>In one particular configuration on 1.10 a standard
              Opensips shutdown isn't ending all the processes...if
              calls have passed through the system. &nbsp;If no calls have
              passed, everything shuts down fine.</div>
            <div><br>
            </div>
            <div>At one particular moment in time with everything
              running I have:</div>
            <div><br>
            </div>
            <div>
              <div>Process:: &nbsp;ID=0 PID=26283 Type=attendant</div>
              <div>Process:: &nbsp;ID=1 PID=26284 Type=MI XMLRPC</div>
              <div>Process:: &nbsp;ID=2 PID=26285 Type=MI FIFO</div>
              <div>Process:: &nbsp;ID=3 PID=26286 Type=RTPP timeout receiver</div>
              <div>Process:: &nbsp;ID=4 PID=26287 Type=SIP receiver udp:<a
                  moz-do-not-send="true" href="http://127.0.0.1:5002">127.0.0.1:5002</a>&nbsp;</div>
              <div>Process:: &nbsp;ID=5 PID=26288 Type=SIP receiver udp:<a
                  moz-do-not-send="true" href="http://127.0.0.1:5002">127.0.0.1:5002</a>&nbsp;</div>
              <div>Process:: &nbsp;ID=6 PID=26289 Type=time_keeper</div>
              <div>Process:: &nbsp;ID=7 PID=26290 Type=timer</div>
            </div>
            <div><br>
            </div>
            <div>But after /etc/init.d/opensips stop, it's always the
              attendant (26283) and the second SIP receiver (26288)
              hanging around. &nbsp;It requires a kill -9 to get them to go
              away.</div>
            <div><br>
            </div>
            <div>A full debug isn't showing anything obvious:</div>
            <div><br>
            </div>
            <div>
              <div>Nov 11 22:51:29 [26283] DBG:core:handle_sigs: SIGTERM
                received, program terminates</div>
              <div>Nov 11 22:51:29 [26289] INFO:core:sig_usr: signal 15
                received</div>
              <div>Nov 11 22:51:29 [26288] INFO:core:sig_usr: signal 15
                received</div>
              <div>Nov 11 22:51:29 [26290] INFO:core:sig_usr: signal 15
                received</div>
              <div>Nov 11 22:51:29 [26287] INFO:core:sig_usr: signal 15
                received</div>
              <div>
                Nov 11 22:51:29 [26286] INFO:core:sig_usr: signal 15
                received</div>
              <div>Nov 11 22:51:29 [26285] INFO:core:sig_usr: signal 15
                received</div>
              <div>Nov 11 22:51:29 [26284] INFO:core:sig_usr: signal 15
                received</div>
            </div>
            <div>
              <br>
            </div>
            <div>But not everything has terminated:</div>
            <div><br>
            </div>
            <div># ps ax | grep opensips</div>
            <div>26283 ? &nbsp; &nbsp; &nbsp; &nbsp;S&lt; &nbsp; &nbsp; 0:00 /usr/sbin/opensips -f
              /etc/opensips/opensips.cfg -P
              /var/run/opensips/opensips.pid -m 8 -M 1 -u opensips -g
              opensips</div>
            <div>26288 ? &nbsp; &nbsp; &nbsp; &nbsp;R&lt; &nbsp; &nbsp; 0:21 /usr/sbin/opensips -f
              /etc/opensips/opensips.cfg -P
              /var/run/opensips/opensips.pid -m 8 -M 1 -u opensips -g
              opensips</div>
            <div><br>
            </div>
            <div>Any suggestions on where to continue investigating?</div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>- Jeff</div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </body>
</html>