<!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>Hello Tolga,<br>
<br>
The crash seems to be in the memory manager, most probably because
of memory corruption. To troubleshoot such issues you need to
compile-in the memory debugger - see
<a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/TroubleShooting-OutOfMem">http://www.opensips.org/Documentation/TroubleShooting-OutOfMem</a> .<br>
<br>
Using memlog=1 + memdump=10 you should get a lot of logs related
to mem ops, including a final report + abort() when the corruption
is detected.<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 05/22/2013 01:29 AM, Tolga Tarhan wrote:
<blockquote
cite="mid:CAM3QAwTNcoz-=DqsGnSwQDecqVsZBx+q4T0UxV36Ek6noMbSVw@mail.gmail.com"
type="cite">
<div dir="ltr">Hello,
<div><br>
</div>
<div style="">While using the B2BUA module in OpenSIPS 1.9.0,
we've encountered a consistent segfault. We are using a refer
scenario just like the one in the B2BUA sample docs, and after
several REFERs for the same call (to different destinations),
OpenSIPS crashes with a segfault. The core file indicates the
following backtrace:</div>
<div style=""><br>
</div>
<div style="">
<div><font face="courier new, monospace">#0
0x000000000049a334 in fm_malloc ()</font></div>
<div><font face="courier new, monospace">#1
0x00007fdaecd96230 in shm_malloc_unsafe (type=B2B_CLIENT,
entity_id=0x7fdaee8ec750, to_uri=0x7fff2d346360,
from_uri=0x7fff2d346320, from_dname=0x0, ssid=<value
optimized out>, msg=0x0) at ../../mem/shm_mem.h:248</font></div>
<div><font face="courier new, monospace">#2 shm_malloc
(type=B2B_CLIENT, entity_id=0x7fdaee8ec750,
to_uri=0x7fff2d346360, from_uri=0x7fff2d346320,
from_dname=0x0, ssid=<value optimized out>, msg=0x0)
at ../../mem/shm_mem.h:258</font></div>
<div><font face="courier new, monospace">#3
b2bl_create_new_entity (type=B2B_CLIENT,
entity_id=0x7fdaee8ec750, to_uri=0x7fff2d346360,
from_uri=0x7fff2d346320, from_dname=0x0, ssid=<value
optimized out>, msg=0x0) at logic.c:293</font></div>
<div><font face="courier new, monospace">#4
0x00007fdaecd96882 in b2bl_new_client (to_uri=<value
optimized out>, from_uri=<value optimized out>,
tuple=<value optimized out>, ssid=0x7fdaeb026c00,
msg=<value optimized out>) at logic.c:607</font></div>
<div><font face="courier new, monospace">#5
0x00007fdaecda3579 in process_bridge_200OK
(msg=0x7fdaee8e8b30, extra_headers=0x7fdaeb03d578,
body=<value optimized out>, tuple=0x7fdaeb01ada8,
entity=<value optimized out>) at logic.c:816</font></div>
<div><font face="courier new, monospace">#6
0x00007fdaecda46c2 in b2b_logic_notify_reply
(src=<value optimized out>, msg=0x7fdaee8e8b30,
key=<value optimized out>, body=0x7fff2d3468b0,
extra_headers=0x7fff2d3468a0, b2bl_key=0x7fff2d3476d0,
hash_index=649, local_index=0)</font></div>
<div><font face="courier new, monospace"> at logic.c:1133</font></div>
<div><font face="courier new, monospace">#7
0x00007fdaecda6081 in b2b_logic_notify (src=1,
msg=0x7fdaee8e8b30, key=0x7fdaeb03d500, type=1,
param=0x7fff2d3476d0) at logic.c:2040</font></div>
<div><font face="courier new, monospace">#8
0x00007fdaecfca7ad in b2b_tm_cback (t=0x7fdaeb054118,
htable=0x7fdaeb014630, ps=<value optimized out>) at
dlg.c:2678</font></div>
<div><font face="courier new, monospace">#9
0x00007fdaee291441 in run_trans_callbacks (type=256,
trans=0x7fdaeb054118, req=<value optimized out>,
rpl=<value optimized out>, code=<value optimized
out>) at t_hooks.c:212</font></div>
<div><font face="courier new, monospace">#10
0x00007fdaee29c0e2 in local_reply (t=0x7fdaeb054118,
p_msg=<value optimized out>, branch=<value
optimized out>, msg_status=<value optimized out>,
cancel_bitmap=<value optimized out>) at
t_reply.c:1391</font></div>
<div><font face="courier new, monospace">#11
0x00007fdaee29d31d in reply_received
(p_msg=0x7fdaee8e8b30) at t_reply.c:1540</font></div>
<div><font face="courier new, monospace">#12
0x000000000042625a in forward_reply ()</font></div>
<div><font face="courier new, monospace">#13
0x0000000000451c28 in receive_msg ()</font></div>
<div><font face="courier new, monospace">#14
0x0000000000494e45 in udp_rcv_loop ()</font></div>
<div><font face="courier new, monospace">#15
0x000000000042d1a3 in main ()</font></div>
<div><br>
</div>
<div style="">I'm not really sure how to diagnose this one.
Any hints/fixes/suggestions would be very appreciated.</div>
<div style=""><br>
</div>
<div style="">Thanks,</div>
<div style="">Tolga</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>