<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
if you still have the core file, can you print more of buffer until it
gets to end of headers? I am curios to see what is wrong with the
contact.<br>
<br>
Just increase by 100:<br>
<div><br>
</div>
<div>(gdb) print buf+300</div>
<div>(gdb) print buf+400<br>
...<br>
<br>
Thanks,<br>
Daniel<br>
<br>
</div>
<br>
On 4/21/10 3:15 PM, Kelvin Chua wrote:
<blockquote
cite="mid:n2k7b3f94931004210615u96ae803bj8f646394c76c03eb@mail.gmail.com"
type="cite">
<div>(gdb) bt</div>
<div>#0 0x00002ab61b62779a in update_dialog_dbinfo
(cell=0x2ab61c9100f8) at dlg_db_handler.c:501</div>
<div>#1 0x00002ab61b628ea8 in dlg_onreply (t=0x7d5228,
type=<value optimized out>, param=<value optimized out>) at
dlg_handlers.c:361</div>
<div>#2 0x00002ab617965505 in run_trans_callbacks_internal
(cb_lst=0x2ab61c938830, type=128, trans=0x2ab61c9387c0, </div>
<div> params=0x7fffec157970) at t_hooks.c:261</div>
<div>#3 0x00002ab61796575e in run_trans_callbacks (type=1,
trans=0x88c580, req=0x0, rpl=0x0, code=477060464) at t_hooks.c:288</div>
<div>#4 0x00002ab61798ebd1 in relay_reply (t=0x2ab61c9387c0,
p_msg=<value optimized out>, branch=0, msg_status=200, </div>
<div> cancel_bitmap=0x7fffec157dd4, do_put_on_wait=1) at
t_reply.c:1705</div>
<div>#5 0x00002ab617990884 in reply_received (p_msg=0x8f48a8) at
t_reply.c:2126</div>
<div>#6 0x000000000044760e in forward_reply (msg=0x8f48a8) at
forward.c:689</div>
<div>#7 0x000000000047fd22 in receive_msg (</div>
<div> buf=0x869ec0 "SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP
10.17.0.202;branch=z9hG4bK75b5.e2a38a16.0\r\nVia: SIP/2.0/UDP
10.17.0.200:5060;branch=z9hG4bK730bcb55;rport=5060\r\nRecord-Route:
<sip:10.17.0.202;lr=on;did=c85.6d9b66b3>\r"..., len=<value
optimized out>, </div>
<div> rcv_info=0x7fffec158020) at receive.c:257</div>
<div>#8 0x0000000000505e2b in udp_rcv_loop () at udp_server.c:520</div>
<div>#9 0x0000000000455adf in main_loop () at main.c:1447</div>
<div>#10 0x0000000000456be2 in main (argc=<value optimized
out>, argv=0x7fffec1582e8) at main.c:2251</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>(gdb) print cell</div>
<div>$1 = (struct dlg_cell *) 0x2ab61c9100f8</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>(gdb) print *cell</div>
<div>$2 = {ref = 2, next = 0x0, prev = 0x0, h_id = 996587990, h_entry
= 1420, state = 3, lifetime = 3600, start_ts = 1271816397, </div>
<div> dflags = 1, sflags = 0, toroute = 0, from_rr_nb = 0, tl =
{next = 0x0, prev = 0x0, timeout = 0}, callid = {</div>
<div> s = 0x2ab61c910238
<a class="moz-txt-link-rfc2396E" href="mailto:0901b21e13a60e0247988caf7d72f865@10.17.0.200sip:029147089@10.17.0.200sip:4153@hiddendomain.edusip:4153@10.17.40.77:5060;user=phone;transport=udpent-Length:0\r\n\r\n">"0901b21e13a60e0247988caf7d72f865@10.17.0.200sip:029147089@10.17.0.200sip:4153@hiddendomain.edusip:4153@10.17.40.77:5060;user=phone;transport=udpent-Length:
0\r\n\r\n"</a>, len = 44}, from_uri = {</div>
<div> s = 0x2ab61c910264
<a class="moz-txt-link-rfc2396E" href="mailto:sip:029147089@10.17.0.200sip:4153@hiddendomain.edusip:4153@10.17.40.77:5060;user=phone;transport=udpent-Length:0\r\n\r\n">"sip:029147089@10.17.0.200sip:4153@hiddendomain.edusip:4153@10.17.40.77:5060;user=phone;transport=udpent-Length:
0\r\n\r\n"</a>, len = 25}, to_uri = {</div>
<div> s = 0x2ab61c91027d
<a class="moz-txt-link-rfc2396E" href="mailto:sip:4153@hiddendomain.edusip:4153@10.17.40.77:5060;user=phone;transport=udpent-Length:0\r\n\r\n">"sip:4153@hiddendomain.edusip:4153@10.17.40.77:5060;user=phone;transport=udpent-Length:
0\r\n\r\n"</a>, len = 19}, </div>
<div> req_uri = {s = 0x2ab61c910290
<a class="moz-txt-link-rfc2396E" href="mailto:sip:4153@10.17.40.77:5060;user=phone;transport=udpent-Length:0\r\n\r\n">"sip:4153@10.17.40.77:5060;user=phone;transport=udpent-Length:
0\r\n\r\n"</a>, len = 50}, tag = {{</div>
<div> s = 0x2ab61c91c488 "<a moz-do-not-send="true"
href="mailto:as50d7852dsip%3A029147089@10.17.0.200">as50d7852dsip:029147089@10.17.0.200</a>\034�*",
len = 10}, {s = 0x0, len = 0}}, cseq = {{</div>
<div> s = 0x2ab61c857950 "10213331\b", len = 3}, {s = 0x0, len =
0}}, route_set = {{s = 0x0, len = 0}, {s = 0x0, len = 0}}, </div>
<div> contact = {{s = 0x2ab61c91c492 "<a moz-do-not-send="true"
href="mailto:sip%3A029147089@10.17.0.200">sip:029147089@10.17.0.200</a>\034�*",
len = 25}, {s = 0x0, len = 0}}, bind_addr = {0x88c580, 0x0}, </div>
<div> cbs = {first = 0x0, types = 0}, profile_links = 0x0}</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>(gdb) frame 7</div>
<div>#7 0x000000000047fd22 in receive_msg (</div>
<div> buf=0x869ec0 "SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP
10.17.0.202;branch=z9hG4bK75b5.e2a38a16.0\r\nVia: SIP/2.0/UDP
10.17.0.200:5060;branch=z9hG4bK730bcb55;rport=5060\r\nRecord-Route:
<sip:10.17.0.202;lr=on;did=c85.6d9b66b3>\r"..., len=<value
optimized out>, </div>
<div> rcv_info=0x7fffec158020) at receive.c:257</div>
<div>257<span class="Apple-tab-span" style="white-space: pre;"> </span>forward_reply(msg);</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>(gdb) print buf+100</div>
<div>$3 = 0x869f24
".200:5060;branch=z9hG4bK730bcb55;rport=5060\r\nRecord-Route:
<sip:10.17.0.202;lr=on;did=c85.6d9b66b3>\r\nFrom: \"029147089\"
<<a moz-do-not-send="true" href="mailto:sip%3A029147089@10.17.0.200">sip:029147089@10.17.0.200</a>>;tag=as50d7852d\r\nTo:
<<a moz-do-not-send="true" href="mailto:sip%3A4153@hiddendomain.edu">sip:4153@hiddendomain.edu</a>>;tag=4735210"...</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>(gdb) print buf+200</div>
<div>$4 = 0x869f88 "\nFrom: \"029147089\" <<a
moz-do-not-send="true" href="mailto:sip%3A029147089@10.17.0.200">sip:029147089@10.17.0.200</a>>;tag=as50d7852d\r\nTo:
<<a moz-do-not-send="true" href="mailto:sip%3A4153@hiddendomain.edu">sip:4153@hiddendomain.edu</a>>;tag=473521065\r\nCall-ID:
<a moz-do-not-send="true"
href="mailto:0901b21e13a60e0247988caf7d72f865@10.17.0.200">0901b21e13a60e0247988caf7d72f865@10.17.0.200</a>\r\nCSeq:
102 INVITE\r\nServer: Cisco ATA 186 "...</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>(gdb) print buf+300</div>
<div>$5 = 0x869fec "65\r\nCall-ID: <a moz-do-not-send="true"
href="mailto:0901b21e13a60e0247988caf7d72f865@10.17.0.200">0901b21e13a60e0247988caf7d72f865@10.17.0.200</a>\r\nCSeq:
102 INVITE\r\nServer: Cisco ATA 186 v3.2.0 atasip (041111A)\r\nAllow:
ACK, BYE, CANCEL, INVITE, NOTIFY, OPTIONS, REFER, REGISTER, PRACK, U"...</div>
<div><br>
</div>
Kelvin Chua<br>
<br>
<br>
<div class="gmail_quote">On Wed, Apr 21, 2010 at 7:22 PM,
Daniel-Constantin Mierla <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:miconda@gmail.com">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">Hello,
<div class="im"><br>
<br>
On 4/21/10 12:23 PM, Kelvin Chua wrote:
<blockquote type="cite">hi daniel,
<div><br>
</div>
<div>i'm not using git version. so maybe i'm missing some
patches.
can you confirm if what i am</div>
<div>experiencing is the same problem and the fix is indeed
available
from the git version? thanks</div>
</blockquote>
<br>
</div>
I recommend using at least 3.0.1, as a matter of fact 3.0.2 should be
released soon.<br>
<br>
Can you please print the content of cell adn more of the reply in gdb,
here are the commands:
<div class="im"><br>
<br>
<font face="arial, sans-serif"><span
style="border-collapse: collapse;"><font face="arial, sans-serif"><span
style="border-collapse: collapse;"><span style="font-size: 13px;">gdb
/path/to/kamailio core_file</span></span></font></span></font><br>
<br>
</div>
print cell<br>
<br>
print *cell<br>
<br>
frame 7<br>
<br>
print buf+100<br>
<br>
print buf+200<br>
<br>
print buf+300<br>
<br>
Thanks,<br>
<font color="#888888">Daniel</font>
<div>
<div class="h5"><br>
<blockquote type="cite">
<div><br>
</div>
<div>here is the backtrace:</div>
<div><br>
</div>
<div>
<div>#0 0x00002ab61b62779a in update_dialog_dbinfo
(cell=0x2ab61c9100f8) at dlg_db_handler.c:501</div>
<div>#1 0x00002ab61b628ea8 in dlg_onreply (t=0x7d5228,
type=<value optimized out>, param=<value optimized out>) at
dlg_handlers.c:361</div>
<div>#2 0x00002ab617965505 in run_trans_callbacks_internal
(cb_lst=0x2ab61c938830, type=128, trans=0x2ab61c9387c0, </div>
<div> params=0x7fffec157970) at t_hooks.c:261</div>
<div>#3 0x00002ab61796575e in run_trans_callbacks (type=1,
trans=0x88c580, req=0x0, rpl=0x0, code=477060464) at t_hooks.c:288</div>
<div>#4 0x00002ab61798ebd1 in relay_reply (t=0x2ab61c9387c0,
p_msg=<value optimized out>, branch=0, msg_status=200, </div>
<div> cancel_bitmap=0x7fffec157dd4, do_put_on_wait=1) at
t_reply.c:1705</div>
<div>#5 0x00002ab617990884 in reply_received (p_msg=0x8f48a8) at
t_reply.c:2126</div>
<div>#6 0x000000000044760e in forward_reply (msg=0x8f48a8) at
forward.c:689</div>
<div>#7 0x000000000047fd22 in receive_msg (</div>
<div> buf=0x869ec0 "SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP
10.17.0.202;branch=z9hG4bK75b5.e2a38a16.0\r\nVia: SIP/2.0/UDP
10.17.0.200:5060;branch=z9hG4bK730bcb55;rport=5060\r\nRecord-Route:
<sip:10.17.0.202;lr=on;did=c85.6d9b66b3>\r"..., len=<value
optimized out>, </div>
<div> rcv_info=0x7fffec158020) at receive.c:257</div>
<div>#8 0x0000000000505e2b in udp_rcv_loop () at udp_server.c:520</div>
<div>#9 0x0000000000455adf in main_loop () at main.c:1447</div>
<div>#10 0x0000000000456be2 in main (argc=<value optimized
out>, argv=0x7fffec1582e8) at main.c:2251</div>
</div>
<div><br>
</div>
<div><br clear="all">
Kelvin Chua<br>
<br>
<br>
<div class="gmail_quote">On Wed, Apr 21, 2010 at 6:04 PM,
Daniel-Constantin Mierla <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">Hello,<br>
<br>
are you using the latest git version of branch kamailio_3.0? It was a
fix to dialog after the 3.0.0 release, adding some sanity checks for
broken messages:<br>
<a moz-do-not-send="true"
href="http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=787fabb1e0085355aa1eeb77d5f17e7940f4ed3c"
target="_blank">http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=787fabb1e0085355aa1eeb77d5f17e7940f4ed3c</a><br>
<br>
On the other hand, I see you got a core dump file:<br>
<font face="arial, sans-serif"><span
style="border-collapse: collapse;"><font face="arial, sans-serif"><span
style="border-collapse: collapse;"><span style="font-size: 13px;">
<div>Apr
21 10:19:57 kamvm-1 /usr/local/sbin/kamailio[28507]: ALERT:
<core> [main.c:722]: child process 28511 exited by a signal 11<br>
Apr 21 10:19:57 kamvm-1 /usr/local/sbin/kamailio[28507]: ALERT:
<core> [main.c:725]: core was generated<br>
<br>
</div>
Locate the core file and sent the backtrace. The core is either in root
'/' folder or in working directory (if you provided by -w parameter).<br>
<br>
Use the gdb:<br>
<br>
gdb /path/to/kamailio core_file<br>
<br>
then do bt and send here.<br>
<br>
Thanks,<br>
Daniel<br>
</span></span></font></span></font>
<div>
<div><br>
On 4/21/10 11:38 AM, Kelvin Chua wrote: </div>
</div>
<blockquote type="cite">
<div>
<div>ok, i'll enable debug for now.
<div>but if it's indeed a buggy UA, the dialog module should
not
have crashed </div>
<div>but instead dropped the dialog/session and moved on,
something i
think</div>
<div>we need to address to be more resilient.</div>
<div><br>
</div>
<div>i hope i catch the culprit when this happens again.<br>
<div><br>
<div>Kelvin Chua<br>
<br>
<br>
<div class="gmail_quote">On Wed, Apr 21, 2010 at 5:33 PM,
Iñaki
Baz
Castillo <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:ibc@aliax.net" target="_blank">ibc@aliax.net</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>2010/4/21 Kelvin Chua <<a moz-do-not-send="true"
href="mailto:kelchy@gmail.com" target="_blank">kelchy@gmail.com</a>>:<br>
</div>
> i wonder if anybody from list is also experiencing this?<br>
<br>
Perhaps in your case you have a buggy UA setting an invalid Contact<br>
header and it causes Kamailio to crash, maybe the reason others have<br>
not detected same issue.<br>
<br>
Could you get some SIP traces until the problem occurs again?<br>
or perhaps could you enable the debug?<br>
<font color="#888888"><br>
--<br>
</font>
<div>
<div>Iñaki Baz Castillo<br>
<<a moz-do-not-send="true" href="mailto:ibc@aliax.net"
target="_blank">ibc@aliax.net</a>><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
<pre><fieldset></fieldset>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<div><a moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</div></pre>
</blockquote>
<br>
<div>-- <br>
Daniel-Constantin Mierla
* <a moz-do-not-send="true" href="http://www.asipto.com/"
target="_blank">http://www.asipto.com/</a> * <a moz-do-not-send="true"
href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a>
* <a moz-do-not-send="true"
href="http://www.linkedin.com/in/danielconstantinmierla"
target="_blank">http://www.linkedin.com/in/danielconstantinmierla</a> </div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<div>-- <br>
Daniel-Constantin Mierla
* <a moz-do-not-send="true" href="http://www.asipto.com/"
target="_blank">http://www.asipto.com/</a> * <a moz-do-not-send="true"
href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a>
* <a moz-do-not-send="true"
href="http://www.linkedin.com/in/danielconstantinmierla"
target="_blank">http://www.linkedin.com/in/danielconstantinmierla</a>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</blockquote>
<br>
<div class="moz-signature">-- <br>
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/danielconstantinmierla">http://www.linkedin.com/in/danielconstantinmierla</a>
</div>
</body>
</html>