[SR-Users] Kamailio 5.4.4 segmentation fault after kamctl rpc dialplan.dump

Julia Bo juliabo at gmail.com
Mon Feb 22 10:05:20 CET 2021


Hello,

The corefile has been already attached in previous mail.
Send it again.

Thank you,
Julia.

On Mon, Feb 22, 2021 at 10:22 AM Daniel-Constantin Mierla <miconda at gmail.com>
wrote:

> Hello,
>
> are you able to get a core file for the crash? If yes, then send here the
> output of gdb command "bt full" to see where the crash happens and try to
> fix it.
>
> Cheers,
> Daniel
> On 21.02.21 16:11, Julia Bo wrote:
>
> Hello,
> Kamailio version 5.4.4.
> Kamailio  segmentation fault after kamctl rpc dialplan.dump <dpid>,
> when dialplan includes variables in the replacement expression (repl_exp)
> field.
> Please see attached corefile.
>
> Thank you,
> Julia.
>
> _______________________________________________
> Kamailio (SER) - Users Mailing Listsr-users at lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
> Funding: https://www.paypal.me/dcmierla
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210222/3614ed7e/attachment.htm>
-------------- next part --------------
(gdb) bt full
#0  0x00007fd2b64c5641 in __strlen_sse2_pminub () from /lib64/libc.so.6
No symbol table info available.
#1  0x00000000007a2c69 in srjson_strdup (doc=0x148d050, str=0x0) at core/utils/srjson.c:113
        len = 21592384
        copy = 0x1497300 "$dlg_var(default_cli)"
#2  0x00000000007a511b in srjson_CreateString (doc=0x148d050, string=0x0) at core/utils/srjson.c:968
        item = 0x1497940
#3  0x00007fd2b3958d5b in jsonrpc_print_value (ctx=0x7fd2b3b83a60 <_jsonrpc_ctx_global>, fmt=115 's', ap=0x7fff16a42ef8) at jsonrpcs_mod.c:500
        nj = 0x0
        buf = "\377\377\377\377\377\377\377\377", '\000' <repeats 120 times>, "\377\377\377\377", '\000' <repeats 20 times>, "@\244q\266\322\177", '\000' <repeats 18 times>, "\341\324[\351\000\200\377\377h\260I\001\000\000\000\000\360+\244\026\377\177\000\000"...
        dt = 21590848
        t = {tm_sec = -72515583, tm_min = 0, tm_hour = 21590848, tm_mday = 0, tm_mon = 21590848, tm_year = 0, tm_wday = 21590848, tm_yday = 0, tm_isdst = 21590848, 
          tm_gmtoff = 21590849, tm_zone = 0xffffffffffffffff <Address 0xffffffffffffffff out of bounds>}
        sp = 0x148d050
        __FUNCTION__ = "jsonrpc_print_value"
#4  0x00007fd2b395d6b1 in jsonrpc_struct_add (jnode=0x14976c0, fmt=0x7fd2af9a3ecc "s") at jsonrpcs_mod.c:810
        nj = 0x0
        wj = 0x0
        ctx = 0x7fd2b3b83a60 <_jsonrpc_ctx_global>
        ap = {{gp_offset = 32, fp_offset = 48, overflow_arg_area = 0x7fff16a43040, reg_save_area = 0x7fff16a42f50}}
        void_ptr = 0x7fff16a430d8
        mname = {s = 0x7fd2af9a3f8b "ATTRS", len = 5}
        isobject = 1
        __FUNCTION__ = "jsonrpc_struct_add"
#5  0x00007fd2af984c48 in dialplan_rpc_dump (rpc=0x7fd2b3b83b40 <func_param>, ctx=0x7fd2b3b83a60 <_jsonrpc_ctx_global>) at dialplan.c:797
        idp = 0x7fd2ab62c370
        indexp = 0x7fd2ab62c3f0
        rulep = 0x7fd2ab6340d0
        dpid = 2
        th = 0x1497ec0
        ih = 0x149a480
        sh = 0x14976c0
        __FUNCTION__ = "dialplan_rpc_dump"
#6  0x00007fd2b396849e in jsonrpc_exec_ex (cmd=0x7fff16a43370, rpath=0x7fff16a43360) at jsonrpcs_mod.c:1415
        rpce = 0x7fd2b58110c0
        ctx = 0x7fd2b3b83a60 <_jsonrpc_ctx_global>
        ret = -1
        nj = 0x1496d10
        val = {s = 0x1496dd0 "dialplan.dump", len = 13}
        scmd = {s = 0x7fff16a43411 "{\"jsonrpc\": \"2.0\", \"method\": \"dialplan.dump\", \"params\": [2], \"reply_name\": \"kamailio_receiver_18865\", \"id\": 18865}", 
          len = 114}
        __FUNCTION__ = "jsonrpc_exec_ex"
#7  0x00007fd2b39529e6 in jsonrpc_fifo_server (fifo_stream=0x1399780) at jsonrpcs_fifo.c:460
        reply_stream = 0x0
        buf_in = "\n{\"jsonrpc\": \"2.0\", \"method\": \"dialplan.dump\", \"params\": [2], \"reply_name\": \"kamailio_receiver_18865\", \"id\": 18865}\000\000\000\000\000\340\064\244\026\377\177\000\000 B\a\265\322\177\000\000(hH\001\000\000\000\000\001\000\000\000\000\000\000\000\355\065\244\026\377\177\000\000\001\000\000\000\000\000\000\000\240ZH\001\000\000\000\000 }I\001\000\000\000\000\020\000\000\000\001\000\000\000\060\000\000\000\000\000\000\000"...
        buf_rpath = "kamailio_receiver_18865\000X}I\001\000\000\000\000<\000\000\000\000\000\000\000?衰\001\000\000\000\000\360\063\244\026\377\177\000\000pI\245\264\322\177\000\000$\000\000\000\000\000\000\000X}I\001\000\000\000\000$\000\000\000\000\000\000\000P\352H\001\000\000\000\000P4\244\026\377\177\000\000Y?α264\322\177\000\000\000\000\000\000\000\000\000\000P\352H\001\000\000\000"
        lread = 115
        scmd = {s = 0x7fff16a43411 "{\"jsonrpc\": \"2.0\", \"method\": \"dialplan.dump\", \"params\": [2], \"reply_name\": \"kamailio_receiver_18865\", \"id\": 18865}", 
          len = 114}
        srpath = {s = 0x7fff16a43390 "kamailio_receiver_18865", len = 23}
        nw = 256
        jr = 0x7fd2b3b83ba0 <_jsonrpc_plain_reply>
        __FUNCTION__ = "jsonrpc_fifo_server"
#8  0x00007fd2b3953ffd in jsonrpc_fifo_process (rank=1) at jsonrpcs_fifo.c:497
        __FUNCTION__ = "jsonrpc_fifo_process"
#9  0x00007fd2b3955581 in jsonrpc_fifo_child_init (rank=0) at jsonrpcs_fifo.c:569
        pid = 0
        __FUNCTION__ = "jsonrpc_fifo_child_init"
#10 0x00007fd2b39635e5 in child_init (rank=0) at jsonrpcs_mod.c:1200
        __FUNCTION__ = "child_init"


More information about the sr-users mailing list