[sr-dev] XMLRPC seg fault

Jason Penton jason.penton at gmail.com
Mon May 19 16:50:13 CEST 2014


Hey Daniel,

I see you did a few changes re. XMLRPC recently (end of last month). I am
getting the following (is it related) - if not I will take a look:

Program terminated with signal 11, Segmentation fault.
#0  0x00007f8a628cfe08 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007f8a628cfe08 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f8a628d1496 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f8a628d5388 in calloc () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x00007f8a628c3cd9 in open_memstream () from
/lib/x86_64-linux-gnu/libc.so.6
#4  0x00007f8a62940dcb in __vsyslog_chk () from
/lib/x86_64-linux-gnu/libc.so.6
#5  0x00007f8a6294141f in syslog () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x0000000000552dac in destroy_avp_list (list=0x94d420) at usr_avp.c:644
#7  0x0000000000552f3e in reset_avps () at usr_avp.c:678
#8  0x00000000004b4890 in receive_msg (
    buf=0x16f01a0 "POST /RPC2 HTTP/1.0\r\nHost:
ZAUbuntu009.it.za.smilecoms.com:6060\r\nContent-Length: 183\r\nUser-Agent:
Apache XML RPC 3.0 (Lite HTTP Transport)\r\nContent-Type:
text/xml\r\n\r\n<?xml version=\"1.0\" encoding=\"UTF-"..., len=349,
rcv_info=0x7f8a1ba39a38) at receive.c:292
#9  0x0000000000542066 in receive_tcp_msg (
    tcpbuf=0x7f8a1ba39d08 "POST /RPC2 HTTP/1.0\r\nHost:
ZAUbuntu009.it.za.smilecoms.com:6060\r\nContent-Length: 183\r\nUser-Agent:
Apache XML RPC 3.0 (Lite HTTP Transport)\r\nContent-Type:
text/xml\r\n\r\n<?xml version=\"1.0\" encoding=\"UTF-"..., len=349,
rcv_info=0x7f8a1ba39a38, con=0x7f8a1ba39a20) at tcp_read.c:1232
#10 0x0000000000542fbf in tcp_read_req (con=0x7f8a1ba39a20,
bytes_read=0x7fff1a5b0240, read_flags=0x7fff1a5b0244) at tcp_read.c:1387
#11 0x0000000000544408 in handle_io (fm=0x7f8a61a2bd38, events=1, idx=-1)
at tcp_read.c:1559
#12 0x000000000053d1da in io_wait_loop_epoll (h=0x8f8fe0, t=2, repeat=0) at
io_wait.h:1092
#13 0x00000000005452d8 in tcp_receive_loop (unix_sock=34) at tcp_read.c:1728
#14 0x00000000005376d9 in tcp_init_children () at tcp_main.c:4959
#15 0x0000000000473859 in main_loop () at main.c:1704
#16 0x0000000000476587 in main (argc=7, argv=0x7fff1a5b0738) at main.c:2542



(gdb) bt full
#0  0x00007f8a628cfe08 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1  0x00007f8a628d1496 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2  0x00007f8a628d5388 in calloc () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#3  0x00007f8a628c3cd9 in open_memstream () from
/lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#4  0x00007f8a62940dcb in __vsyslog_chk () from
/lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#5  0x00007f8a6294141f in syslog () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#6  0x0000000000552dac in destroy_avp_list (list=0x94d420) at usr_avp.c:644
        avp = 0x7fff1a5b0730
        foo = 0x0
        __FUNCTION__ = "destroy_avp_list"
#7  0x0000000000552f3e in reset_avps () at usr_avp.c:678
        i = 0
#8  0x00000000004b4890 in receive_msg (
    buf=0x16f01a0 "POST /RPC2 HTTP/1.0\r\nHost:
ZAUbuntu009.it.za.smilecoms.com:6060\r\nContent-Length: 183\r\nUser-Agent:
Apache XML RPC 3.0 (Lite HTTP Transport)\r\nContent-Type:
text/xml\r\n\r\n<?xml version=\"1.0\" encoding=\"UTF-"..., len=349,
rcv_info=0x7f8a1ba39a38) at receive.c:292
        msg = 0x7f8a61a3ee08
        ctx = {rec_lev = 442171248, run_flags = 32767, last_retcode =
5500918, jmp_env = {{__jmpbuf = {140733193388041, 140733635559312,
140232339007264, 24052128, 140733635560004,
                140231145921800, 24052128, 0}, __mask_was_saved = 24052128,
__saved_mask = {__val = {1498943586304, 137, 1400510797, 4280256,
140231145921056, 16, 128, 2, 65584, 0, 4604204945409,
                  541165879515, 532575944825, 140733635559552,
140232339007264, 140733635559536}}}}}
        ret = 0
        inb = {
          s = 0x16f01a0 "POST /RPC2 HTTP/1.0\r\nHost:
ZAUbuntu009.it.za.smilecoms.com:6060\r\nContent-Length: 183\r\nUser-Agent:
Apache XML RPC 3.0 (Lite HTTP Transport)\r\nContent-Type:
text/xml\r\n\r\n<?xml version=\"1.0\" encoding=\"UTF-"..., len = 349}
        __FUNCTION__ = "receive_msg"
#9  0x0000000000542066 in receive_tcp_msg (
    tcpbuf=0x7f8a1ba39d08 "POST /RPC2 HTTP/1.0\r\nHost:
ZAUbuntu009.it.za.smilecoms.com:6060\r\nContent-Length: 183\r\nUser-Agent:
Apache XML RPC 3.0 (Lite HTTP Transport)\r\nContent-Type:
text/xml\r\n\r\n<?xml version=\"1.0\" encoding=\"UTF-"..., len=349,
rcv_info=0x7f8a1ba39a38, con=0x7f8a1ba39a20) at tcp_read.c:1232
        buf = 0x16f01a0 "POST /RPC2 HTTP/1.0\r\nHost:
ZAUbuntu009.it.za.smilecoms.com:6060\r\nContent-Length: 183\r\nUser-Agent:
Apache XML RPC 3.0 (Lite HTTP Transport)\r\nContent-Type:
text/xml\r\n\r\n<?xml version=\"1.0\" encoding=\"UTF-"...
        bsize = 65535
        blen = 65535
        __FUNCTION__ = "receive_tcp_msg"
#10 0x0000000000542fbf in tcp_read_req (con=0x7f8a1ba39a20,
bytes_read=0x7fff1a5b0240, read_flags=0x7fff1a5b0244) at tcp_read.c:1387
        bytes = 349
        total_bytes = 349
        resp = 1
        size = 6480430
        req = 0x7f8a1ba39aa0
        dst = {send_sock = 0x7fff1a5b0160, to = {s = {sa_family = 45835,
sa_data = "\307[\212\177\000\000(\002[\032\377\177\000"}, sin = {sin_family
= 45835, sin_port = 23495, sin_addr = {
                s_addr = 32650}, sin_zero = "(\002[\032\377\177\000"}, sin6
= {sin6_family = 45835, sin6_port = 23495, sin6_flowinfo = 32650, sin6_addr
= {__in6_u = {
                  __u6_addr8 =
"(\002[\032\377\177\000\000\214\001[\032\377\177\000", __u6_addr16 = {552,
6747, 32767, 0, 396, 6747, 32767, 0}, __u6_addr32 = {442171944, 32767,
442171788,
                    32767}}}, sin6_scope_id = 152}}, id = 4, proto = 32 '
', send_flags = {f = 163 '\243', blst_imask = 98 'b'}}
---Type <return> to continue, or q <return> to quit---
        c = 0 '\000'
        ret = 2
        __FUNCTION__ = "tcp_read_req"
#11 0x0000000000544408 in handle_io (fm=0x7f8a61a2bd38, events=1, idx=-1)
at tcp_read.c:1559
        ret = 8
        n = 8
        read_flags = 65539
        con = 0x7f8a1ba39a20
        s = 9
        resp = 140733635561264
        t = 0
        __FUNCTION__ = "handle_io"
#12 0x000000000053d1da in io_wait_loop_epoll (h=0x8f8fe0, t=2, repeat=0) at
io_wait.h:1092
        n = 1
        r = 0
        fm = 0x7f8a61a2bd38
        revents = 1
        __FUNCTION__ = "io_wait_loop_epoll"
#13 0x00000000005452d8 in tcp_receive_loop (unix_sock=34) at tcp_read.c:1728
        __FUNCTION__ = "tcp_receive_loop"
#14 0x00000000005376d9 in tcp_init_children () at tcp_main.c:4959
        r = 0
        i = 7
        reader_fd_1 = 34
        pid = 0
        si_desc = "tcp receiver
(generic)\000\000\060\a[\032\377\177\000\000`\004[\032\377\177\000\000n\260P\000\000\000\000\000`\004[\032\377\177\000\000\210KB\000\000\000\000\000\200\005[\032\377\177\000\000\300OA\000\000\000\000\000Ӎ_\000\000\000\000\000P\025\227a\212\177\000\000\023\000\000\000\024\000\000\000\330\374\225\000\000\000\000\000\300OA\000\000\000\000\000\060\a[\032\377\177\000"
        si = 0x0
        __FUNCTION__ = "tcp_init_children"
#15 0x0000000000473859 in main_loop () at main.c:1704
        i = 8
        pid = 19368
        si = 0x0
        si_desc = "udp receiver child=7
sock=10.0.1.166:6060\000\034Y\256_v\264\b\000\000\000\000\000\000\000\330\374\225\000\000\000\000\000\300OA\000\000\000\000\000\060\a[\032\377\177",
'\000' <repeats 18 times>,
"`\005[\032\377\177\000\000b\251L\000\000\000\000\000\200\005[\032\377\177\000\000`F\225\000\000\000\000"
        nrprocs = 8
        __FUNCTION__ = "main_loop"
#16 0x0000000000476587 in main (argc=7, argv=0x7fff1a5b0738) at main.c:2542
        cfg_stream = 0x15eb010
        c = -1
        r = 0
        tmp = 0x7fff1a5b16d9 ""
        tmp_len = 0
        port = 4277523
        proto = 0
        options = 0x5f94d0
":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:"
        ret = -1
---Type <return> to continue, or q <return> to quit---
        seed = 1898040949
        rfd = 4
        debug_save = 0
        debug_flag = 0
        dont_fork_cnt = 0
        n_lst = 0x5e2cc0
        p = 0x7fff1a5b065e ""
        __FUNCTION__ = "main"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20140519/3e6eb28d/attachment.html>


More information about the sr-dev mailing list