<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    that should not be a very rare case and I would expect to be caught
    so far, anyhow ... this looks like easy to reproduce, have you tried
    it?<br>
    <br>
    You can have two kamailio, one relying the invite to the second,
    which will reply with 100, then wait for the timeout on the first
    instance. You can add some debug messages in the code to see if the
    lock is called twice.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 09/04/14 17:51, Jason Penton wrote:<br>
    </div>
    <blockquote
cite="mid:CALoGXNVOVPJkD2MuAuhPO5V=wJOhsM7S93fh_+jLpY9r8GJ6wg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi All,
        <div><br>
        </div>
        <div>I have been experiencing a deadlock when a timeout occurs
          on a t_relayed() INVITE. Going through the code I have noticed
          a possible chance of deadlock (without re-entrant enabled).
          Here is my thinking:</div>
        <div><br>
        </div>
        <div>t_should_relay_response() is called with REPLY_LOCK when
          the timer process fires on the fr_inv_timer (no response from
          the INVITE that was relayed, other than 100 provisional) and a
          408 is generated. However, from within that function there are
          calls to run_failure_handlers() which in turn *could* try and
          lock the reply (viz. somebody having a t_reply() call in the
          cfg file - in failure route block). This would result in
          another lock on the same transaction's REPLY_LOCK....<br>
        </div>
        <div><br>
        </div>
        <div>Has anybody else experienced something like this?</div>
        <div><br>
        </div>
        <div>this is on master btw.</div>
        <div><br>
        </div>
        <div>Cheers</div>
        <div>Jason</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
sr-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
  </body>
</html>