[OpenSIPS-Devel] Need Help Reading a Core Dump
Răzvan Crainea
razvan at opensips.org
Wed Dec 14 02:46:57 EST 2016
Hi, Andrew!
The core dump you are seeing is generated by an abort() call. You should
first look into your sources in parser/parse_to.c at line 87 and see why
that code raised an abort. Perhaps system logs are also useful.
PS: please specify the OpenSIPS version you are using.
Best regards,
Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com
On 12/14/2016 01:03 AM, Andrew Melton wrote:
> I have collected the attached core dump output from:
>
> gdb opensips ./core.22411
>
> Can you assist me in interpreting this to pinpoint what is causing
> OpenSIPS to segfaults every few minutes?
>
> Thanks.
>
>
> #0 0x00007fa0e1e84625 in raise () from /lib64/libc.so.6
> No symbol table info available.
> #1 0x00007fa0e1e85e05 in abort () from /lib64/libc.so.6
> No symbol table info available.
> #2 0x0000000000519db4 in free_to (tb=<value optimized out>) at
> parser/parse_to.c:87
> __FUNCTION__ = "free_to"
> #3 0x00000000004fc8f5 in clean_hdr_field (hf=0x7fa0daf44700) at
> parser/hf.c:203
> __FUNCTION__ = "clean_hdr_field"
> #4 0x00007fa0deafe3d3 in clean_msg_clone (type=<value optimized out>,
> trans=0x7fa0dae23e00, req=<value optimized out>, rpl=<value optimized
> out>, code=<value optimized out>) at sip_msg.h:49
> hdr = 0x7fa0daf44700
> #5 run_trans_callbacks_locked (type=<value optimized out>,
> trans=0x7fa0dae23e00, req=<value optimized out>, rpl=<value optimized
> out>, code=<value optimized out>) at t_hooks.c:268
> No locals.
> #6 0x00007fa0deb1fe87 in relay_reply (t=0x7fa0dae23e00, p_msg=<value
> optimized out>, branch=<value optimized out>, msg_status=200,
> cancel_bitmap=0x7fff8078b818) at t_reply.c:1362
> relay = 3
> save_clone = 0
> buf = 0x7fa0e1cca7b0 "SIP/2.0 200 OK\r\nSession-Expires:
> 1800;refresher=uas\r\nRequire: timer\r\nVia: SIP/2.0/UDP
> 166.85.56.11:5060;branch=z9hG4bK1sansay880852518rdb2116\r\nRecord-Route:
> <sip:152.8.7.78;lr;ftag=sansay880852518rdb211"...
> res_len = 1095
> relayed_code = 200
> relayed_msg = 0x7fa0e1cbc6b8
> bm = {to_tag_val = {s = 0x0, len = -507029584}}
> totag_retr = 0
> reply_status = RPS_PUSHED_AFTER_COMPLETION
> uas_rb = 0x7fa0dae23f00
> cb_s = {
> s = 0x7fa0e1cca7b0 "SIP/2.0 200 OK\r\nSession-Expires:
> 1800;refresher=uas\r\nRequire: timer\r\nVia: SIP/2.0/UDP
> 166.85.56.11:5060;branch=z9hG4bK1sansay880852518rdb2116\r\nRecord-Route:
> <sip:152.8.7.78;lr;ftag=sansay880852518rdb211"..., len = 1095}
> text = {s = 0x81ec20 "Tue Dec 13 20:58:29", len = -504439845}
> __FUNCTION__ = "relay_reply"
> #7 0x00007fa0deb20c3d in reply_received (p_msg=0x7fa0e1cbc6b8) at
> t_reply.c:1623
> msg_status = 200
> last_uac_status = 200
> branch = 3
> reply_status = <value optimized out>
> timer = <value optimized out>
> cancel_bitmap = 0
> uac = 0x7fa0dae245d8
> t = 0x7fa0dae23e00
> backup_list = <value optimized out>
> has_reply_route = <value optimized out>
> __FUNCTION__ = "reply_received"
> #8 0x00000000004315bd in forward_reply (msg=0x7fa0e1cbc6b8) at
> forward.c:575
> new_buf = 0x0
> to = 0x0
> new_len = <value optimized out>
> mod = 0x7fa0e1c5a140
> proto = <value optimized out>
> id = 0
> send_sock = <value optimized out>
> s = <value optimized out>
> len = <value optimized out>
> __FUNCTION__ = "forward_reply"
> #9 0x0000000000484672 in receive_msg (buf=<value optimized out>,
> len=1158, rcv_info=<value optimized out>) at receive.c:214
> msg = 0x7fa0e1cbc6b8
> start = {tv_sec = 28, tv_usec = 140328969537637}
> rc = 3
> tmp = <value optimized out>
> __FUNCTION__ = "receive_msg"
> #10 0x00000000004f2212 in udp_rcv_loop () at udp_server.c:422
> len = <value optimized out>
> buf = "SIP/2.0 200 OK\r\nSession-Expires:
> 1800;refresher=uas\r\nRequire: timer\r\nVia: SIP/2.0/UDP
> 152.8.7.78:5060;branch=z9hG4bK9346.c84353c4.3\r\nVia: SIP/2.0/UDP
> 166.85.56.11:5060;branch=z9hG4bK1sansay880852518rdb2"...
> tmp = <value optimized out>
> from = 0x7fa0e1cbc680
> fromlen = 16
> ri = {src_ip = {af = 2, len = 4, u = {addrl = {188972096,
> 8514592}, addr32 = {188972096, 0, 8514592, 0}, addr16 = {31808, 2883,
> 0, 0, 60448, 129, 0, 0},
> addr = "@|C\v\000\000\000\000 \354\201\000\000\000\000"}},
> dst_ip = {af = 2, len = 4, u = {addrl = {3809943468, 0}, addr32 =
> {3809943468, 0, 0, 0}, addr16 = {8108, 58135, 0, 0, 0,
> 0, 0, 0}, addr = "\254\037\027\343", '\000' <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\304@|C\v\000\000\000\000\000\000\000"}, sin = {sin_family = 2,
> sin_port = 50195, sin_addr = {s_addr = 188972096},
> sin_zero = "\000\000\000\000\000\000\000"}, sin6 =
> {sin6_family = 2, sin6_port = 50195, sin6_flowinfo = 188972096,
> sin6_addr = {__in6_u = {__u6_addr8 = '\000' <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 = 0x7fa0e1cb1bd0}
> p = <value optimized out>
> msg = {
> s = 0x7fd8e0 "SIP/2.0 200 OK\r\nSession-Expires:
> 1800;refresher=uas\r\nRequire: timer\r\nVia: SIP/2.0/UDP
> 152.8.7.78:5060;branch=z9hG4bK9346.c84353c4.3\r\nVia: SIP/2.0/UDP
> 166.85.56.11:5060;branch=z9hG4bK1sansay880852518rdb2"..., len = 1158}
> __FUNCTION__ = "udp_rcv_loop"
> #11 0x000000000043abab in main_loop (argc=<value optimized out>,
> argv=<value optimized out>) at main.c:929
> i = 17
> pid = <value optimized out>
> si = 0x7fa0e1cb1bd0
> startup_done = 0x0
> chd_rank = 50
> rc = <value optimized out>
> load_p = 0x7fa0da274908
> #12 main (argc=<value optimized out>, argv=<value optimized out>) at
> main.c:1612
> cfg_log_stderr = <value optimized out>
> cfg_stream = <value optimized out>
> c = <value optimized out>
> r = <value optimized out>
> tmp = 0x7fff8078bc68 "/\317x\200\377\177"
> tmp_len = <value optimized out>
> port = <value optimized out>
> proto = <value optimized out>
> options = 0x576ca0 "f:cCm:M:b:l:n:N:rRvdDFETSVhw:t:u:g:P:G:W:o:"
> ret = -1
> seed = 3892891087
>
> rfd = <value optimized out>
> __FUNCTION__ = "main"
> (gdb)
>
>
>
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20161214/5918f0d8/attachment.htm>
More information about the Devel
mailing list