[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openser-users
Subject:    Re: [SR-Users] Kamailio 4.2.1 crashes on using exec_msg
From:       Daniel-Constantin Mierla <miconda () gmail ! com>
Date:       2014-12-29 11:13:19
Message-ID: 54A1374F.7010005 () gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello,

this should be fixed in branch 4.2 -- you have to install the nightly
builds (if you are using debian) or from sources branch 4.2.

We will have a release very soon, as 4.2.2 which will include it -- this
most probably will happen sometime next week.

Cheers,
Daniel

On 29/12/14 12:08, Tobias wrote:
> Hi!
>
> We recently upgraded our Kamailio 4.1 to 4.2.1. With the newer version
> Kamailio crashes after just running a few minutes. After some
> debugging it looks as though the problem is in exec_msg (which is used
> in our config). After disabling this 4.2.1 seem to run just fine.
>
> Core file exists, here's the output:
>
> (gdb) backtrace
>
> #0  0x00000000005ebf0f in fm_extract_free (frag=0x7f053ea08d18,
> qm=0x7f053e88e010) at mem/f_malloc.c:206
>
> #1  fm_malloc (qm=0x7f053e88e010, size=<optimized out>,
> file=file@entry=0x7f053cbedfd4 "exec: exec_hf.c",
> func=func@entry=0x7f053cbef378 "replace_env", line=line@entry=375) at
> mem/f_malloc.c:490
>
> #2  0x00007f053cbe7953 in replace_env (list=0x7f053ea08868) at
> exec_hf.c:375
>
> #3  0x00007f053cbe862e in set_env (msg=0x7f053e91d690) at exec_hf.c:547
>
> #4  0x00007f053cbeb835 in w_exec_msg (msg=0x7f053e87c480,
> cmd=0x7f053ea5e168 "XÖ¤>\005\177", foo=<optimized out>) at exec_mod.c:164
>
> #5  0x00000000004274f7 in do_action (h=h@entry=0x7fff02e9cf90,
> a=a@entry=0x7f053ea5cfb8, msg=msg@entry=0x7f053e87c480) at action.c:1094
>
> #6  0x00000000004261a9 in run_actions (h=h@entry=0x7fff02e9cf90,
> a=a@entry=0x7f053ea5cfb8, msg=msg@entry=0x7f053e87c480) at action.c:1583
>
> #7  0x0000000000432980 in run_top_route (a=0x7f053ea5cfb8,
> msg=msg@entry=0x7f053e87c480, c=c@entry=0x0) at action.c:1669
>
> #8  0x00007f053e610d2a in run_failure_handlers
> (t=t@entry=0x7f0534ecc770, rpl=0x7f053ea71040, code=486,
> extra_flags=extra_flags@entry=64) at t_reply.c:1051
>
> #9  0x00007f053e612aa3 in t_should_relay_response
> (Trans=Trans@entry=0x7f0534ecc770, new_code=new_code@entry=486,
> branch=branch@entry=0, should_store=should_store@entry=0x7fff02e9d2a0,
> should_relay=should_relay@entry=0x7fff02e9d290, 
>
>     cancel_data=cancel_data@entry=0x7fff02e9d490,
> reply=reply@entry=0x7f053ea71040) at t_reply.c:1406
>
> #10 0x00007f053e616126 in relay_reply (t=t@entry=0x7f0534ecc770,
> p_msg=p_msg@entry=0x7f053ea71040, branch=0,
> msg_status=msg_status@entry=486,
> cancel_data=cancel_data@entry=0x7fff02e9d490,
> do_put_on_wait=do_put_on_wait@entry=1)
>
>     at t_reply.c:1809
>
> #11 0x00007f053e61a9f3 in reply_received (p_msg=0x7f053ea71040) at
> t_reply.c:2493
>
> #12 0x00000000004920a6 in do_forward_reply
> (msg=msg@entry=0x7f053ea71040, mode=mode@entry=0) at forward.c:783
>
> #13 0x0000000000493637 in forward_reply (msg=msg@entry=0x7f053ea71040)
> at forward.c:885
>
> #14 0x00000000004f5634 in receive_msg (buf=<optimized out>,
> len=<optimized out>, rcv_info=<optimized out>) at receive.c:275
>
> #15 0x00000000005d929d in udp_rcv_loop () at udp_server.c:521
>
> #16 0x00000000004a73f1 in main_loop () at main.c:1629
>
> #17 0x0000000000425085 in main (argc=<optimized out>, argv=<optimized
> out>) at main.c:2561
>
>
> Kind regards,
>
> /Tobias
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda


[Attachment #5 (text/html)]

<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    this should be fixed in branch 4.2 -- you have to install the
    nightly builds (if you are using debian) or from sources branch 4.2.<br>
    <br>
    We will have a release very soon, as 4.2.2 which will include it --
    this most probably will happen sometime next week.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 29/12/14 12:08, Tobias wrote:<br>
    </div>
    <blockquote cite="mid:DUB110-W1288F542D1FBCD813B56461F7510@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
      <div dir="ltr">Hi!
        <div><br>
        </div>
        <div>We recently upgraded our Kamailio 4.1 to 4.2.1. With the
          newer version Kamailio crashes after just running a few
          minutes. After some debugging it looks as though the problem
          is in exec_msg (which is used in our config). After disabling
          this 4.2.1 seem to run just fine.</div>
        <div><br>
        </div>
        <div>Core file exists, here's the output:</div>
        <div>
          <p class="p1"><span class="s1">(gdb) backtrace</span></p>
          <p class="p1"><span class="s1">#0  0x00000000005ebf0f in
              fm_extract_free (frag=0x7f053ea08d18, qm=0x7f053e88e010)
              at mem/f_malloc.c:206</span></p>
          <p class="p1"><span class="s1">#1  fm_malloc
              (qm=0x7f053e88e010, size=&lt;optimized out&gt;,
              file=file@entry=0x7f053cbedfd4 "exec: exec_hf.c",
              func=func@entry=0x7f053cbef378 "replace_env",
              line=line@entry=375) at mem/f_malloc.c:490</span></p>
          <p class="p1"><span class="s1">#2  0x00007f053cbe7953 in
              replace_env (list=0x7f053ea08868) at exec_hf.c:375</span></p>
          <p class="p1"><span class="s1">#3  0x00007f053cbe862e in
              set_env (msg=0x7f053e91d690) at exec_hf.c:547</span></p>
          <p class="p1"><span class="s1">#4  0x00007f053cbeb835 in
              w_exec_msg (msg=0x7f053e87c480, cmd=0x7f053ea5e168
              "X֤&gt;\005\177", foo=&lt;optimized out&gt;) at
              exec_mod.c:164</span></p>
          <p class="p1"><span class="s1">#5  0x00000000004274f7 in
              do_action (h=h@entry=0x7fff02e9cf90,
              a=a@entry=0x7f053ea5cfb8, msg=msg@entry=0x7f053e87c480) at
              action.c:1094</span></p>
          <p class="p1"><span class="s1">#6  0x00000000004261a9 in
              run_actions (h=h@entry=0x7fff02e9cf90,
              a=a@entry=0x7f053ea5cfb8, msg=msg@entry=0x7f053e87c480) at
              action.c:1583</span></p>
          <p class="p1"><span class="s1">#7  0x0000000000432980 in
              run_top_route (a=0x7f053ea5cfb8,
              msg=msg@entry=0x7f053e87c480, c=c@entry=0x0) at
              action.c:1669</span></p>
          <p class="p1"><span class="s1">#8  0x00007f053e610d2a in
              run_failure_handlers (t=t@entry=0x7f0534ecc770,
              rpl=0x7f053ea71040, code=486,
              extra_flags=extra_flags@entry=64) at t_reply.c:1051</span></p>
          <p class="p1"><span class="s1">#9  0x00007f053e612aa3 in
              t_should_relay_response (Trans=Trans@entry=0x7f0534ecc770,
              new_code=new_code@entry=486, branch=branch@entry=0,
              should_store=should_store@entry=0x7fff02e9d2a0,
              should_relay=should_relay@entry=0x7fff02e9d290, </span></p>
          <p class="p1"><span class="s1">   
              cancel_data=cancel_data@entry=0x7fff02e9d490,
              reply=reply@entry=0x7f053ea71040) at t_reply.c:1406</span></p>
          <p class="p1"><span class="s1">#10 0x00007f053e616126 in
              relay_reply (t=t@entry=0x7f0534ecc770,
              p_msg=p_msg@entry=0x7f053ea71040, branch=0,
              msg_status=msg_status@entry=486,
              cancel_data=cancel_data@entry=0x7fff02e9d490,
              do_put_on_wait=do_put_on_wait@entry=1)</span></p>
          <p class="p1"><span class="s1">    at t_reply.c:1809</span></p>
          <p class="p1"><span class="s1">#11 0x00007f053e61a9f3 in
              reply_received (p_msg=0x7f053ea71040) at t_reply.c:2493</span></p>
          <p class="p1"><span class="s1">#12 0x00000000004920a6 in
              do_forward_reply (msg=msg@entry=0x7f053ea71040,
              mode=mode@entry=0) at forward.c:783</span></p>
          <p class="p1"><span class="s1">#13 0x0000000000493637 in
              forward_reply (msg=msg@entry=0x7f053ea71040) at
              forward.c:885</span></p>
          <p class="p1"><span class="s1">#14 0x00000000004f5634 in
              receive_msg (buf=&lt;optimized out&gt;, len=&lt;optimized
              out&gt;, rcv_info=&lt;optimized out&gt;) at receive.c:275</span></p>
          <p class="p1"><span class="s1">#15 0x00000000005d929d in
              udp_rcv_loop () at udp_server.c:521</span></p>
          <p class="p1"><span class="s1">#16 0x00000000004a73f1 in
              main_loop () at main.c:1629</span></p>
          <p class="p1"><span class="s1">#17 0x0000000000425085 in main
              (argc=&lt;optimized out&gt;, argv=&lt;optimized out&gt;)
              at main.c:2561</span></p>
          <p class="p1"><span class="s1"><br>
            </span></p>
          <p class="p1"><span class="s1">Kind regards,</span></p>
          <p class="p1"><span class="s1">/Tobias</span></p>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
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>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<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>



_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic