[OpenSIPS-Users] B2BUA Segfault

Tolga Tarhan tolga at netbrains.com
Wed May 22 00:29:19 CEST 2013


Hello,

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:

#0  0x000000000049a334 in fm_malloc ()
#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
#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
#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
#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
#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
#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)
    at logic.c:1133
#7  0x00007fdaecda6081 in b2b_logic_notify (src=1, msg=0x7fdaee8e8b30,
key=0x7fdaeb03d500, type=1, param=0x7fff2d3476d0) at logic.c:2040
#8  0x00007fdaecfca7ad in b2b_tm_cback (t=0x7fdaeb054118,
htable=0x7fdaeb014630, ps=<value optimized out>) at dlg.c:2678
#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
#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
#11 0x00007fdaee29d31d in reply_received (p_msg=0x7fdaee8e8b30) at
t_reply.c:1540
#12 0x000000000042625a in forward_reply ()
#13 0x0000000000451c28 in receive_msg ()
#14 0x0000000000494e45 in udp_rcv_loop ()
#15 0x000000000042d1a3 in main ()

I'm not really sure how to diagnose this one. Any hints/fixes/suggestions
would be very appreciated.

Thanks,
Tolga
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130521/a28a7de6/attachment.htm>


More information about the Users mailing list