[OpenSIPS-Users] b2bua core dump & db truncate

thrillerbee thrillerbee at gmail.com
Mon Nov 1 15:35:30 CET 2010


Anca,

I am still seeing core dumps.  bt attached.

Thanks.

On Tue, Oct 26, 2010 at 8:44 AM, thrillerbee <thrillerbee at gmail.com> wrote:

> Anca,
>
> Thanks for the info.  I'll let you know if I have issues after the upgrade.
>
> Thanks.
>
>
> On Tue, Oct 26, 2010 at 3:42 AM, Anca Vamanu <anca at opensips.org> wrote:
>
>> Hi,
>>
>> At startup, the b2b_tables are copied into memory and are truncated,
>> then the data is updated in the database at an interval controlled by
>> the update_period parameter ( by default 100 seconds).
>>
>> As for the core dump, if you are using trunk, can you please update your
>> code? I just committed a lot of changes in those modules.
>>
>> Regards,
>>
>> --
>> Anca Vamanu
>> www.voice-system.ro
>>
>>
>>
>>
>> On 10/26/2010 06:58 AM, thrillerbee wrote:
>> > I'm waiting for my b2bua box to core dump again so I can get the
>> > backtrace, but is it expected behavior that OpenSIPS cannot restart
>> > w/o first truncating the b2b_entities & b2b_logic tables?  That makes
>> > for a messy recovery...
>> >
>> > Thanks.
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20101101/8acebaf6/attachment-0001.htm 
-------------- next part --------------
Core was generated by `/usr/local/sbin/opensips -P /var/run/opensips/opensips.pid -m 2048 -u root -g r'.
Program terminated with signal 11, Segmentation fault.
[New process 10170]
#0  0x00007f77f488e343 in t_uac (method=0x7f77f3676c90, headers=0x0, body=0x0, dialog=0x7a5890, cb=0, cbp=0x0, release_func=0) at uac.c:287
287                     LM_DBG("building sip_msg from buffer\n");
(gdb) bt full
#0  0x00007f77f488e343 in t_uac (method=0x7f77f3676c90, headers=0x0, body=0x0, dialog=0x7a5890, cb=0, cbp=0x0, release_func=0) at uac.c:287
        to_su = {s = {sa_family = 2, sa_data = "\023##XB\n\000\000\000\000\000\000\000"}, sin = {sin_family = 2, sin_port = 50195, sin_addr = {s_addr = 172120272}, 
    sin_zero = "\000\000\000\000\000\000\000"}, sin6 = {sin6_family = 2, sin6_port = 50195, sin6_flowinfo = 172120272, sin6_addr = {in6_u = {u6_addr8 = '\0' <repeats 15 times>, 
        u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}}
        new_cell = (struct cell *) 0x7f7773b6a250
        backup = <value optimized out>
        buf = 0x0
        buf1 = <value optimized out>
        buf_len = <value optimized out>
        buf_len1 = <value optimized out>
        ret = <value optimized out>
        flags = <value optimized out>
        backup_route_type = <value optimized out>
        hi = <value optimized out>
        send_sock = <value optimized out>
        req = (struct sip_msg *) 0x0
        __FUNCTION__ = "t_uac"
#1  0x00007f77f3468dc5 in b2b_tm_cback (t=<value optimized out>, htable=0xc8, ps=0x7a5418) at dlg.c:1724
        hash_index = 32767
        local_index = 4246031144
        b2b_cback = (b2b_notify_t) 0x7a5418 <mem_pool+133368>
        dlg = (b2b_dlg_t *) 0x38
        param = {s = 0x79a178 "", len = 7971888}
        statuscode = 32631
        leg = <value optimized out>
        pto = <value optimized out>
        TO = {error = 56, body = {s = 0x744548 "###rw\177", len = 7970440}, uri = {s = 0x7f77f34702c1 <Address 0x7f77f34702c1 out of bounds>, len = 0}, display = {s = 0x793fe0 "\002", 
    len = 2}, tag_value = {s = 0x0, len = 7970440}, parsed_uri = {user = {s = 0x7f7772ede400 "", len = 1940377152}, passwd = {s = 0x7f77f39e87b9 " ", len = 1949299264}, host = {
      s = 0xc800794030 <Address 0xc800794030 out of bounds>, len = 4}, port = {s = 0x0, len = 7970440}, params = {s = 0x479dfb "######11##", len = 2}, headers = {s = 0x794080 "\001", 
      len = 3}, port_no = 0, proto = 0, type = ERROR_URI_T, transport = {s = 0x799e88 "\205`", len = 4693460}, ttl = {s = 0x2 <Address 0x2 out of bounds>, len = 7926528}, user_param = {
      s = 0x7944a8 "\017", len = 14}, maddr = {s = 0xfffffffb <Address 0xfffffffb out of bounds>, len = 7970440}, method = {s = 0x12 <Address 0x12 out of bounds>, len = 7741483}, lr = {
      s = 0x3b <Address 0x3b out of bounds>, len = 5032233}, r2 = {s = 0x799e88 "\205`", len = 7926528}, transport_val = {
      s = 0x76202b "tion/sdp,application/isup,application/dtmf,application/dtmf-relay,multipart/mixed\r\nRequire: timer\r\nSupported: timer\r\nAllow: INVITE,ACK,CANCEL,BYE,REGISTER,REFER,INFO,SUBSCRIBE,NOTIFY,PRACK,UPDATE,OPTI"..., len = 7741600}, ttl_val = {s = 0x1 <Address 0x1 out of bounds>, len = 7994120}, user_param_val = {
      s = 0xdfd154db0 <Address 0xdfd154db0 out of bounds>, len = 0}, maddr_val = {s = 0x0, len = 7994176}, method_val = {
      s = 0x76203f "/isup,application/dtmf,application/dtmf-relay,multipart/mixed\r\nRequire: timer\r\nSupported: timer\r\nAllow: INVITE,ACK,CANCEL,BYE,REGISTER,REFER,INFO,SUBSCRIBE,NOTIFY,PRACK,UPDATE,OPTIONS,MESSAGE,PUBLISH\r"..., len = 7741600}, lr_val = {s = 0x3 <Address 0x3 out of bounds>, len = 4957221}, r2_val = {s = 0x0, len = 7918344}}, param_lst = 0x7a3558, 
  last_param = 0x78d308}
        to_tag = {
  s = 0x761fcd "4-4cc6f5be-af15dbeb-5967ee57\r\nCall-ID: B2B.1847.1171930\r\nCSeq: 3717657 INVITE\r\nAccept: application/sdp,application/isup,application/dtmf,application/dtmf-relay,multipart/mixed\r\nRequire: timer\r\nSupport"..., len = 7741405}
        callid = {s = 0x79a168 "", len = 7994120}
        from_tag = {s = 0x3b <Address 0x3b out of bounds>, len = 5032233}
        require_hdr = <value optimized out>
        method_id = 0
        __FUNCTION__ = "b2b_tm_cback"
#2  0x00007f77f3463988 in b2b_prescript_f (msg=0x7ffffd154d80, uparam=<value optimized out>) at dlg.c:601
        b2b_key = {
  s = 0x762030 "sdp,application/isup,application/dtmf,application/dtmf-relay,multipart/mixed\r\nRequire: timer\r\nSupported: timer\r\nAllow: INVITE,ACK,CANCEL,BYE,REGISTER,REFER,INFO,SUBSC---Type <return> to continue, or q <return> to quit---
RIBE,NOTIFY,PRACK,UPDATE,OPTIONS,M"..., len = 7742164}
        dlg = (b2b_dlg_t *) 0x7f77f3469d31
        hash_index = 0
        local_index = 0
        b2b_cback = <value optimized out>
        param = {
  s = 0x761f40 "SIP/2.0 200 OK\r\nFrom: <sip:19289411635 at 8.20.212.252>;tag=e4b188ab9ac0a2eee637bdc9d383be80\r\nTo: <sip:17605720753 at 208.88.66.10>;tag=a4258d0-13c4-4cc6f5be-af15dbeb-5967ee57\r\nCall-ID: B2B.1847.1171930\r\nCS"..., len = 12}
        table = (b2b_table) 0x6
        method_value = 0
        TO = {error = 7741305, body = {s = 0x20 <Address 0x20 out of bounds>, len = 7741428}, uri = {s = 0x10 <Address 0x10 out of bounds>, len = 7741378}, display = {
    s = 0x27 <Address 0x27 out of bounds>, len = 7976776}, tag_value = {s = 0x6 <Address 0x6 out of bounds>, len = 0}, parsed_uri = {user = {
      s = 0x762065 "f-relay,multipart/mixed\r\nRequire: timer\r\nSupported: timer\r\nAllow: INVITE,ACK,CANCEL,BYE,REGISTER,REFER,INFO,SUBSCRIBE,NOTIFY,PRACK,UPDATE,OPTIONS,MESSAGE,PUBLISH\r\nSession-Expires: 65535;refresher=uac\r"..., len = 77}, passwd = {s = 0x7370011e1da <Address 0x7370011e1da out of bounds>, len = 0}, host = {s = 0x0, len = 1933626728}, port = {
      s = 0x799e88 "\205`", len = 200}, params = {s = 0x7f7774d0dc70 "", len = 512}, headers = {s = 0x7f77f486f492 "I9##UH\213\025##\"", len = 7619912}, port_no = 19864, proto = 64789, 
    type = 32767, transport = {s = 0x7ffffd154c60 "\"\032u", len = 7806792}, ttl = {s = 0x7f7774d0dc70 "", len = 4768515}, user_param = {s = 0x751a22 "200_out", len = 1024}, maddr = {
      s = 0x0, len = 7970440}, method = {s = 0x7ffffd154d98 "", len = 1959844976}, lr = {s = 0xc8 <Address 0xc8 out of bounds>, len = -192365177}, r2 = {s = 0x799e88 "\205`", 
      len = 7970440}, transport_val = {s = 0x799e88 "\205`", len = -192447270}, ttl_val = {s = 0x4fd154d9c <Address 0x4fd154d9c out of bounds>, len = 7742164}, user_param_val = {s = 0x0, 
      len = 1024}, maddr_val = {s = 0x7f7774d0dc70 "", len = 0}, method_val = {s = 0x1 <Address 0x1 out of bounds>, len = 0}, lr_val = {s = 0x7f77f4a9d430 "", len = -192359177}, 
    r2_val = {s = 0xfbad8001 <Address 0xfbad8001 out of bounds>, len = 7994120}}, param_lst = 0x4c0000003d, last_param = 0x6}
        from_tag = {s = 0x2 <Address 0x2 out of bounds>, len = 4944981}
        to_tag = {s = 0x7f7774d0de90 "", len = 7741790}
        callid = {s = 0x799e88 "\205`", len = 200}
        tm_tran = <value optimized out>
        reason = {s = 0x14c15 <Address 0x14c15 out of bounds>, len = 6}
        __FUNCTION__ = "b2b_prescript_f"
#3  0x000000000042518d in forward_reply (msg=0x799e88) at forward.c:557
        new_buf = <value optimized out>
        to = <value optimized out>
        new_len = <value optimized out>
        mod = (struct sr_module *) 0x78db48
        proto = <value optimized out>
        id = <value optimized out>
        send_sock = <value optimized out>
        len = <value optimized out>
        __FUNCTION__ = "forward_reply"
#4  0x000000000046662d in replace (pmatch=0x5, 
    string=0x761f40 "SIP/2.0 200 OK\r\nFrom: <sip:19289411635 at 8.20.212.252>;tag=e4b188ab9ac0a2eee637bdc9d383be80\r\nTo: <sip:17605720753 at 208.88.66.10>;tag=a4258d0-13c4-4cc6f5be-af15dbeb-5967ee57\r\nCall-ID: B2B.1847.1171930\r\nCS"..., replacement=0x799e88 "\205`", result=0x7f77f6962698) at regexp.c:48
        len = -48935168
        i = 3
        j = 0
        size = 8018064
#5  0x00007ffffd154e98 in ?? ()
No symbol table info available.
#6  0x0000000000797740 in mem_pool ()
No symbol table info available.
#7  0x000000000079773c in mem_pool ()
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#8  0x0000000400000002 in ?? ()
No symbol table info available.
#9  0x000000000a4258d0 in ?? ()
No symbol table info available.
#10 0x000000000000000a in ?? ()
No symbol table info available.
#11 0x0000000400000002 in ?? ()
No symbol table info available.
#12 0x000000002550794a in ?? ()
No symbol table info available.
#13 0x0000000000000000 in ?? ()
No symbol table info available.


More information about the Users mailing list