#571 OpenSIP B2BUA core dump

modules (454)

We have the following setup.

OpenSIPs 1.8.1 does permission checking, drouding, nat and sends requests to an other OpenSIPs on the same box running on port 5080 as B2BUA. For small numer of calls per sec works fine. if we load the system with SIPp with 10 calls per sec, B2BUA is crashing.

System is CentOS 5.8 64bit with the latest updates but have same issues with debian 6.

that is the gdb bt

(gdb) bt
#0 0x00000033d2630285 in raise () from /lib64/libc.so.6
#1 0x00000033d2631d30 in abort () from /lib64/libc.so.6
#2 0x00000000004218c7 in del_lump (msg=0x7fff8ee7c050, offset=273, len=50, type=HDR_OTHER_T) at data_lump.c:336
#3 0x00002af2377a07a7 in subst_f (msg=0x7fff8ee7c050, subst=<value optimized out>, ignored=<value optimized out>) at textops.c:489
#4 0x00000000004118c1 in do_action (a=0x2af2375a69d8, msg=0x7fff8ee7c050) at action.c:1483
#5 0x0000000000416905 in run_action_list (a=<value optimized out>, msg=0x7fff8ee7c050) at action.c:143
#6 0x00000000004731a0 in eval_elem (e=0x2af2375a6ab0, msg=0x7fff8ee7c050, val=0x0) at route.c:1438
#7 0x000000000047594a in eval_expr (e=0x7fd7, msg=0x7fff8ee7c050, val=0x0) at route.c:1783
#8 0x000000000047583b in eval_expr (e=0x2af2375a6b00, msg=0x7fff8ee7c050, val=0x0) at route.c:1804
#9 0x0000000000411bfd in do_action (a=0x2af2375a6cc0, msg=0x7fff8ee7c050) at action.c:899
#10 0x0000000000416905 in run_action_list (a=<value optimized out>, msg=0x7fff8ee7c050) at action.c:143
#11 0x0000000000416c69 in run_actions (a=0x2af2375a67d0, msg=0x7fff8ee7c050) at action.c:123
#12 run_top_route (a=0x2af2375a67d0, msg=0x7fff8ee7c050) at action.c:189
#13 0x00002af23864a376 in b2b_tm_cback (t=0x2af239182988, htable=0x2af23913cca0, ps=<value optimized out>) at dlg.c:2624
#14 0x00002af2381f0ce1 in run_trans_callbacks (type=256, trans=0x2af239182988, req=0x0, rpl=0xffffffffffffffff, code=408) at t_hooks.c:212
#15 0x00002af23820ade9 in local_reply (t=0x2af239182988, p_msg=0xffffffffffffffff, branch=<value optimized out>, msg_status=<value optimized out>,
cancel_bitmap=0x2af238eb9f90) at t_reply.c:1385
#16 0x00002af2381f41f7 in final_response_handler (ticks=<value optimized out>, attr=<value optimized out>) at timer.c:253
#17 timer_routine (ticks=<value optimized out>, attr=<value optimized out>) at timer.c:1011
#18 0x000000000049c44b in run_timer_process () at timer.c:360
#19 start_timer_processes () at timer.c:527
#20 0x000000000043006c in main_loop (argc=<value optimized out>, argv=0x7fff8ee7d368) at main.c:945
#21 main (argc=<value optimized out>, argv=0x7fff8ee7d368) at main.c:1541


  • Bogdan-Andrei Iancu

    Hi Anthony,

    Do you still have the core file for investigation ?

    It is not load related, but rather scenario related - it looks like you have local 408 (from timer) which goes into b2b, which calls a reply route where you do some changes which are not valid....

    Investigating the corefile will give more info on how to prevent this.


  • Bogdan-Andrei Iancu

    • labels: 1134769 --> modules
    • milestone: --> 1.8.x
    • assigned_to: nobody --> bogdan_iancu
    • status: open --> open-accepted
  • apsaras

    apsaras - 2012-10-26

    Yes I have the file (http://www.microbase.gr/downloads/core.1263.bz2)

    Do you need the conf files for proxy and b2bua ?

  • Bogdan-Andrei Iancu

    The core file without the binaries and OS specific lib is more or less useless.

    We have 2 options here :

    1) me getting access to the machine the core was generated

    2) I will instruct you do to remote core investigation, step by step.

    Of course 2) is much much slower than 1) .


  • apsaras

    apsaras - 2012-10-26

    No problem with 1. Can you please send me an IP to allow it on our firewall? Can we connect on Skype for any further communication?

  • apsaras

    apsaras - 2012-10-29


    The problem detected by Bogdan which was a 408 message sent from B2BUA. I had a header manipulation on reply b2bua route so avoiding manipulation for 408 messages resolved the issue.

    Thank you bogdan for your help.

  • Bogdan-Andrei Iancu

    • priority: 5 --> 4
  • Bogdan-Andrei Iancu


    Bug located, working on the fix, I will upload a patch in the next days !



Log in to post a comment.