[OpenSIPS-Users] OpenSIPS core dumps

thrillerbee thrillerbee at gmail.com
Mon Nov 1 15:32:44 CET 2010


Bogdan,

Yes,  I've attached 2 to my response - one was a crash from 10/29.  The
other occurred a few minutes ago.

Thanks.

On Fri, Oct 22, 2010 at 11:41 AM, Bogdan-Andrei Iancu <
bogdan at voice-system.ro> wrote:

> Any chance with the backtraces ?
>
> Regards,
> Bogdan
>
> Anca Vamanu wrote:
> > Hi,
> >
> > You need to inspect them with gdb, run: gdb
> > path_to_opensips_executable path_to_corefile, and then run 'bt full'
> > and send the output.
> >
> > Regards,
> > --
> > Anca Vamanu
> > www.voice-system.ro
> >
> >
> > On 10/14/2010 10:12 PM, thrillerbee wrote:
> >> I have this info from dmesg:
> >>
> >> [1985853.285221] opensips[30865]: segfault at 10 ip 7f43899ce21f sp
> >> 7fff8de1cf40 error 4 in db_flatstore.so[7f43899cb000+5000]
> >> [1985856.379671] opensips[30858]: segfault at 10 ip 7f43899ce21f sp
> >> 7fff8de1cf40 error 4 in db_flatstore.so[7f43899cb000+5000]
> >> [1985896.961279] opensips[30868]: segfault at 10 ip 7f43899ce21f sp
> >> 7fff8de1cf40 error 4 in db_flatstore.so[7f43899cb000+5000]
> >>
> >> [2000131.245512] opensips[17672]: segfault at 10 ip 7fd0f21fb21f sp
> >> 7fff3a3b4f00 error 4 in db_flatstore.so[7fd0f21f8000+5000]
> >> [2000161.735962] opensips[17668]: segfault at 10 ip 7fd0f21fb21f sp
> >> 7fff3a3b4e40 error 4 in db_flatstore.so[7fd0f21f8000+5000]
> >> [2000167.299402] opensips[17670]: segfault at 10 ip 7fd0f21fb21f sp
> >> 7fff3a3b4f00 error 4 in db_flatstore.so[7fd0f21f8000+5000]
> >>
> >> On Thu, Oct 14, 2010 at 1:57 PM, thrillerbee <thrillerbee at gmail.com
> >> <mailto:thrillerbee at gmail.com>> wrote:
> >>
> >>     When OpenSIPS crashes, three corefiles are generated that are
> >>     2.1GB in size.  How do I use these files to understand what's
> >>     causing the crash?
> >>
> >>     Thanks.
> >>
> >>
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
>
>
> --
> Bogdan-Andrei Iancu
> OpenSIPS Bootcamp
> 15 - 19 November 2010, Edison, New Jersey, USA
> www.voice-system.ro
>
>
> _______________________________________________
> 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/17edbfc7/attachment.htm 
-------------- next part --------------
Core was generated by `/usr/local/sbin/opensips -P /var/run/opensips/opensips.pid -m 512 -u root -g ro'.
Program terminated with signal 11, Segmentation fault.
[New process 22242]
#0  0x00007f66e354821f in flat_db_insert (h=0x7ea710, k=0x7f66e2288a60, v=0x7f66e2288d20, n=19) at flatstore.c:165
165             f = CON_FILE(h);
(gdb) bt full
#0  0x00007f66e354821f in flat_db_insert (h=0x7ea710, k=0x7f66e2288a60, v=0x7f66e2288d20, n=19) at flatstore.c:165
        f = <value optimized out>
        i = <value optimized out>
        l = <value optimized out>
        p = <value optimized out>
        __FUNCTION__ = "flat_db_insert"
#1  0x00007f66e206f7ef in acc_db_request (rq=0x7f66c34266b8, rpl=<value optimized out>) at acc.c:364
        m = 19
        n = <value optimized out>
        i = <value optimized out>
        my_ps = (db_ps_t) 0x0
        __FUNCTION__ = "acc_db_request"
#2  0x00007f66e207469e in tmcb_func (t=<value optimized out>, type=<value optimized out>, ps=<value optimized out>) at acc_logic.c:386
No locals.
#3  0x00007f66e2efd4a2 in run_trans_callbacks (type=256, trans=0x7f66c314eba0, req=0x7f66c34266b8, rpl=0x7eaac8, code=200) at t_hooks.c:208
        cbp = (struct tm_callback *) 0x7f66c1892ac8
        backup = (struct usr_avp **) 0x771f48
        trans_backup = (struct cell *) 0x7f66c314eba0
        __FUNCTION__ = "run_trans_callbacks"
#4  0x00007f66e2efd5c7 in run_trans_callbacks_locked (type=256, trans=0x7f66c314eba0, req=0x7f66c34266b8, rpl=0x7eaac8, code=200) at t_hooks.c:254
No locals.
#5  0x00007f66e2f1aa38 in relay_reply (t=0x7f66c314eba0, p_msg=<value optimized out>, branch=1, msg_status=200, cancel_bitmap=0x7fff3aa31ca8) at t_reply.c:1257
        relay = 1
        save_clone = 0
        buf = 0x11846d0 "SIP/2.0 200 OK\r\nRecord-Route: <sip:24.121.80.38;lr;ftag=gK075a5ad6;did=d9.c581cf61>\r\nRecord-Route: <sip:24.121.80.36;lr;ftag=gK075a5ad6>\r\nVia: SIP/2.0/UDP 24.121.80.36;branch=z9hG4bK13cd.038ec486.0\r\nV"...
        res_len = 685
        relayed_code = 200
        relayed_msg = (struct sip_msg *) 0x7eaac8
        bm = {to_tag_val = {s = 0x1 <Address 0x1 out of bounds>, len = 8301256}}
        totag_retr = <value optimized out>
        reply_status = RPS_COMPLETED
        cb_s = {
  s = 0x11846d0 "SIP/2.0 200 OK\r\nRecord-Route: <sip:24.121.80.38;lr;ftag=gK075a5ad6;did=d9.c581cf61>\r\nRecord-Route: <sip:24.121.80.36;lr;ftag=gK075a5ad6>\r\nVia: SIP/2.0/UDP 24.121.80.36;branch=z9hG4bK13cd.038ec486.0\r\nV"..., len = 685}
        text = {s = 0x16c <Address 0x16c out of bounds>, len = 746}
        __FUNCTION__ = "relay_reply"
#6  0x00007f66e2f1b548 in reply_received (p_msg=0x7eaac8) at t_reply.c:1502
        last_uac_status = <value optimized out>
        branch = 1
        reply_status = <value optimized out>
        timer = <value optimized out>
        cancel_bitmap = 0
        t = (struct cell *) 0x7f66c314eba0
        backup_list = <value optimized out>
        has_reply_route = 3222688728
        __FUNCTION__ = "reply_received"
#7  0x000000000042519d in forward_reply (msg=0x7eaac8) at forward.c:559
        new_buf = <value optimized out>
        to = <value optimized out>
        new_len = <value optimized out>
        mod = (struct sr_module *) 0x78ddb8
---Type <return> to continue, or q <return> to quit---
        proto = <value optimized out>
        id = <value optimized out>
        send_sock = <value optimized out>
        len = <value optimized out>
        __FUNCTION__ = "forward_reply"
#8  0x000000000046663d in receive_msg (
    buf=0x761f40 "SIP/2.0 200 OK\r\nRecord-Route: <sip:24.121.80.38;lr;ftag=gK075a5ad6;did=d9.c581cf61>\r\nRecord-Route: <sip:24.121.80.36;lr;ftag=gK075a5ad6>\r\nVia: SIP/2.0/UDP 24.121.80.38;branch=z9hG4bK13cd.dd032595.1\r\nV"..., len=746, rcv_info=0x7fff3aa31da0) at receive.c:200
        msg = (struct sip_msg *) 0x7eaac8
        __FUNCTION__ = "receive_msg"
#9  0x00000000004ac48a in udp_rcv_loop () at udp_server.c:492
        len = 746
        tmp = <value optimized out>
        from = (union sockaddr_union *) 0x7eaa90
        fromlen = 16
        ri = {src_ip = {af = 2, len = 4, u = {addrl = {626030922, 0}, addr32 = {626030922, 0, 0, 0}, addr16 = {31050, 9552, 0, 0, 0, 0, 0, 0}, 
      addr = "JyP%", '\0' <repeats 11 times>}}, dst_ip = {af = 2, len = 4, u = {addrl = {642808138, 0}, addr32 = {642808138, 0, 0, 0}, addr16 = {31050, 9808, 0, 0, 0, 0, 0, 0}, 
      addr = "JyP&", '\0' <repeats 11 times>}}, src_port = 5060, dst_port = 5060, proto = 1, proto_reserved1 = 0, proto_reserved2 = 0, src_su = {s = {sa_family = 2, 
      sa_data = "\023##yP%\000\000\000\000\000\000\000"}, sin = {sin_family = 2, sin_port = 50195, sin_addr = {s_addr = 626030922}, sin_zero = "\000\000\000\000\000\000\000"}, 
    sin6 = {sin6_family = 2, sin6_port = 50195, sin6_flowinfo = 626030922, 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}}, bind_address = 0x7d7308}
        p = (callback_list *) 0x7fff3aa31da8
        buf = "SIP/2.0 200 OK\r\nRecord-Route: <sip:24.121.80.38;lr;ftag=gK075a5ad6;did=d9.c581cf61>\r\nRecord-Route: <sip:24.121.80.36;lr;ftag=gK075a5ad6>\r\nVia: SIP/2.0/UDP 24.121.80.38;branch=z9hG4bK13cd.dd032595.1\r\nV"...
        __FUNCTION__ = "udp_rcv_loop"
#10 0x000000000042c1b7 in main (argc=<value optimized out>, argv=0x7fff3aa31f88) at main.c:818
        cfg_log_stderr = <value optimized out>
        cfg_stream = <value optimized out>
        c = <value optimized out>
        r = <value optimized out>
        tmp = 0x7fff3aa32ea6 ""
        tmp_len = <value optimized out>
        port = <value optimized out>
        proto = <value optimized out>
        ret = <value optimized out>
        seed = 1305270990
        rfd = <value optimized out>
        __FUNCTION__ = "main"
(gdb) 
-------------- next part --------------
Core was generated by `/usr/local/sbin/opensips -P /var/run/opensips/opensips.pid -m 512 -u root -g ro'.
Program terminated with signal 11, Segmentation fault.
[New process 22141]
#0  0x00007f51999f221f in flat_db_insert (h=0x7f0978, k=0x7f5198732a60, v=0x7f5198732d20, n=19) at flatstore.c:165
165             f = CON_FILE(h);
(gdb) bt full
#0  0x00007f51999f221f in flat_db_insert (h=0x7f0978, k=0x7f5198732a60, v=0x7f5198732d20, n=19) at flatstore.c:165
        f = <value optimized out>
        i = <value optimized out>
        l = <value optimized out>
        p = <value optimized out>
        __FUNCTION__ = "flat_db_insert"
#1  0x00007f51985197ef in acc_db_request (rq=0x7f5177bf4e90, rpl=<value optimized out>) at acc.c:364
        m = 19
        n = <value optimized out>
        i = <value optimized out>
        my_ps = (db_ps_t) 0x0
        __FUNCTION__ = "acc_db_request"
#2  0x00007f519851e69e in tmcb_func (t=<value optimized out>, type=<value optimized out>, ps=<value optimized out>) at acc_logic.c:386
No locals.
#3  0x00007f51993a74a2 in run_trans_callbacks (type=256, trans=0x7f517894dba8, req=0x7f5177bf4e90, rpl=0x7f0d30, code=200) at t_hooks.c:208
        cbp = (struct tm_callback *) 0x7f51774be4e8
        backup = (struct usr_avp **) 0x771f48
        trans_backup = (struct cell *) 0x7f517894dba8
        __FUNCTION__ = "run_trans_callbacks"
#4  0x00007f51993a75c7 in run_trans_callbacks_locked (type=256, trans=0x7f517894dba8, req=0x7f5177bf4e90, rpl=0x7f0d30, code=200) at t_hooks.c:254
No locals.
#5  0x00007f51993c4a38 in relay_reply (t=0x7f517894dba8, p_msg=<value optimized out>, branch=2, msg_status=200, cancel_bitmap=0x7fffbcd8d8e8) at t_reply.c:1257
        relay = 2
        save_clone = 0
        buf = 0x1184500 "SIP/2.0 200 OK\r\nRecord-Route: <sip:24.121.80.38;lr;ftag=cb660f8-0-13c4-8dd623-d6fa044-8dd623;did=426.5c76619>\r\nRecord-Route: <sip:24.121.80.36;lr;ftag=cb660f8-0-13c4-8dd623-d6fa044-8dd623>\r\nFrom: <sip"...
        res_len = 1049
        relayed_code = 200
        relayed_msg = (struct sip_msg *) 0x7f0d30
        bm = {to_tag_val = {s = 0x1 <Address 0x1 out of bounds>, len = 8326448}}
        totag_retr = <value optimized out>
        reply_status = RPS_COMPLETED
        cb_s = {
  s = 0x1184500 "SIP/2.0 200 OK\r\nRecord-Route: <sip:24.121.80.38;lr;ftag=cb660f8-0-13c4-8dd623-d6fa044-8dd623;did=426.5c76619>\r\nRecord-Route: <sip:24.121.80.36;lr;ftag=cb660f8-0-13c4-8dd623-d6fa044-8dd623>\r\nFrom: <sip"..., len = 1049}
        text = {
  s = 0x762087 "all-ID: b017348-0-13c4-8dd623-6603f520-8dd623 at 216.195.82.233\r\nCSeq: 1 INVITE\r\nVia: SIP/2.0/UDP 24.121.80.38;branch=z9hG4bKb561.2ce725d7.2\r\nVia: SIP/2.0/UDP 24.121.80.36;branch=z9hG4bKb561.d1d4b7c4.0\r\n"..., len = 1110}
        __FUNCTION__ = "relay_reply"
#6  0x00007f51993c5548 in reply_received (p_msg=0x7f0d30) at t_reply.c:1502
        last_uac_status = <value optimized out>
        branch = 2
        reply_status = <value optimized out>
        timer = <value optimized out>
        cancel_bitmap = 0
        t = (struct cell *) 0x7f517894dba8
        backup_list = <value optimized out>
        has_reply_route = 1983876288
        __FUNCTION__ = "reply_received"
---Type <return> to continue, or q <return> to quit---
#7  0x000000000042519d in forward_reply (msg=0x7f0d30) at forward.c:559
        new_buf = <value optimized out>
        to = <value optimized out>
        new_len = <value optimized out>
        mod = (struct sr_module *) 0x78dfe0
        proto = <value optimized out>
        id = <value optimized out>
        send_sock = <value optimized out>
        len = <value optimized out>
        __FUNCTION__ = "forward_reply"
#8  0x000000000046663d in receive_msg (
    buf=0x761f40 "SIP/2.0 200 OK\r\nRecord-Route: <sip:24.121.80.38;lr;ftag=cb660f8-0-13c4-8dd623-d6fa044-8dd623;did=426.5c76619>\r\nRecord-Route: <sip:24.121.80.36;lr;ftag=cb660f8-0-13c4-8dd623-d6fa044-8dd623>\r\nFrom: <sip"..., len=1110, rcv_info=0x7fffbcd8d9e0) at receive.c:200
        msg = (struct sip_msg *) 0x7f0d30
        __FUNCTION__ = "receive_msg"
#9  0x00000000004ac48a in udp_rcv_loop () at udp_server.c:492
        len = 1110
        tmp = <value optimized out>
        from = (union sockaddr_union *) 0x7f0cf8
        fromlen = 16
        ri = {src_ip = {af = 2, len = 4, u = {addrl = {6498921810288998730, 0}, addr32 = {626030922, 1513148148, 0, 0}, addr16 = {31050, 9552, 52980, 23088, 
        0, 0, 0, 0}, addr = "JyP%####\000\000\000\000\000\000\000"}}, dst_ip = {af = 2, len = 4, u = {addrl = {642808138, 0}, addr32 = {642808138, 0, 0, 0}, 
      addr16 = {31050, 9808, 0, 0, 0, 0, 0, 0}, addr = "JyP&", '\0' <repeats 11 times>}}, src_port = 5060, dst_port = 5060, proto = 1, proto_reserved1 = 0, 
  proto_reserved2 = 0, src_su = {s = {sa_family = 2, sa_data = "\023##yP%\000\000\000\000\000\000\000"}, sin = {sin_family = 2, sin_port = 50195, sin_addr = {
        s_addr = 626030922}, sin_zero = "\000\000\000\000\000\000\000"}, sin6 = {sin6_family = 2, sin6_port = 50195, sin6_flowinfo = 626030922, 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}}, 
  bind_address = 0x7dc2c8}
        p = (callback_list *) 0x7fffbcd8d9e8
        buf = "SIP/2.0 200 OK\r\nRecord-Route: <sip:24.121.80.38;lr;ftag=cb660f8-0-13c4-8dd623-d6fa044-8dd623;did=426.5c76619>\r\nRecord-Route: <sip:24.121.80.36;lr;ftag=cb660f8-0-13c4-8dd623-d6fa044-8dd623>\r\nFrom: <sip"...
        __FUNCTION__ = "udp_rcv_loop"
#10 0x000000000042c1b7 in main (argc=<value optimized out>, argv=0x7fffbcd8dbc8) at main.c:818
        cfg_log_stderr = <value optimized out>
        cfg_stream = <value optimized out>
        c = <value optimized out>
        r = <value optimized out>
        tmp = 0x7fffbcd8eea6 ""
        tmp_len = <value optimized out>
        port = <value optimized out>
        proto = <value optimized out>
        ret = <value optimized out>
        seed = 2874756269
        rfd = <value optimized out>
        __FUNCTION__ = "main"
(gdb) 


More information about the Users mailing list