<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>