GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git Copyright (C) 2021 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/sbin/kamailio... Reading symbols from /usr/lib/debug/.build-id/56/b8c9f5a3c31e6a1813f0c59adb02c922c60137.debug... [New LWP 53605] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `/usr/sbin/kamailio -P /run/kamailio/kamailio.pid -f /etc/kamailio/csbc.cfg -m 5'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007fd49cf02f72 in usrloc_dmq_send_multi_contact (ptr=0x7fd49d8f6ea0, aor=..., action=1, node=0x7fd49d84f5f8) at usrloc_sync.c:685 (gdb) ================================================================================ # info locals ================================================================================ jdoc = 0x7fd49cf0c468 jdoc_contacts = 0x563487e30050 jdoc_contact = 0x563487df86d0 __func__ = "usrloc_dmq_send_multi_contact" idx = "\246\376\177\000" ================================================================================ # info threads ================================================================================ Id Target Id Frame * 1 Thread 0x7fd4bf855180 (LWP 53605) 0x00007fd49cf02f72 in usrloc_dmq_send_multi_contact (ptr=0x7fd49d8f6ea0, aor=..., action=1, node=0x7fd49d84f5f8) at usrloc_sync.c:685 ================================================================================ # bt full ================================================================================ #0 0x00007fd49cf02f72 in usrloc_dmq_send_multi_contact (ptr=0x7fd49d8f6ea0, aor=..., action=1, node=0x7fd49d84f5f8) at usrloc_sync.c:685 jdoc = 0x7fd49cf0c468 jdoc_contacts = 0x563487e30050 jdoc_contact = 0x563487df86d0 __func__ = "usrloc_dmq_send_multi_contact" idx = "\246\376\177\000" #1 0x00007fd49cef9592 in usrloc_get_all_ucontact (node=0x7fd49d84f5f8) at usrloc_sync.c:253 rval = 0 len = 217760 buf = 0x7fd497ea8010 cp = 0x7fd497ea8090 c = {s = 0x7fd497ea8014 "sip:1070500@192.168.1.201;transport=UDP;user=phone\026", len = 50} recv = {s = 0x7fd497ea804a "sip:45.225.71.102:5060", len = 22} path = {s = 0x0, len = 0} ruid = {s = 0x7fd497ea8074 "uloc-3-6326536b-abf4-663\001lR72", len = 24} aorhash = 928148481 send_sock = 0x0 flags = 12 aor = {s = 0x7fd49d8e8758 "1070500", len = 7} r = 0x7fd49d8e86b0 _d = 0x7fd49d5b3030 ptr = 0x7fd49d8f6ea0 res = 0 n = 0 __func__ = "usrloc_get_all_ucontact" #2 0x00007fd49cefcdcb in usrloc_dmq_execute_action (jdoc_action=0x563487df7fe0, node=0x7fd49d84f5f8) at usrloc_sync.c:433 ci = {ruid = {s = 0x0, len = 0}, c = 0x7fd49cf0c4a0 , received = {s = 0x0, len = 0}, path = 0x7fd49cf0c4c0 , expires = 0, q = 0, callid = 0x7fd49cf0c4d0 , cseq = 0, flags = 0, cflags = 0, user_agent = 0x7fd49cf0c4e0 , sock = 0x0, methods = 0, instance = {s = 0x0, len = 0}, reg_id = 0, server_id = 0, tcpconn_id = -1, keepalive = 0, xavp = 0x0, last_modified = 0} it = 0x0 sock = 0x0 action = 3 expires = 0 cseq = 0 flags = 0 cflags = 0 q = 0 last_modified = 0 methods = 0 reg_id = 0 server_id = 0 port = 0 proto = 0 aor = {s = 0x0, len = 0} ruid = {s = 0x0, len = 0} received = {s = 0x0, len = 0} instance = {s = 0x0, len = 0} host = {s = 0x563487e10f70 "\260u߇4V", len = 6} c = {s = 0x563487df7e20 "\320t߇4V", len = 56} callid = {s = 0x563487e3f970 "", len = 24} path = {s = 0x563487df6a50 "\360\020\341\207\064V", len = 0} user_agent = {s = 0x563487e3f9a0 "\300b\242\277\324\177", len = 31} __func__ = "usrloc_dmq_execute_action" #3 0x00007fd49ceffa81 in usrloc_dmq_handle_msg (msg=0x7fd49db80a78, resp=0x7ffea6e383a0, node=0x7fd49d84f5f8) at usrloc_sync.c:521 content_length = 12 body = {s = 0x7fd49db813cb "{\"action\":3}", len = 12} jdoc = {root = 0x563487def730, flags = 0, buf = {s = 0x7fd49db813cb "{\"action\":3}", len = 12}, malloc_fn = 0x7fd4bf8dd0f0 <__GI___libc_malloc>, free_fn = 0x7fd4bf8dd720 <__GI___libc_free>} __func__ = "usrloc_dmq_handle_msg" #4 0x00007fd49cfa3a5e in worker_loop (id=0) at worker.c:80 worker = 0x7fd49d2c0f90 current_job = 0x7fd49db7c330 peer_response = {resp_code = 0, content_type = {s = 0x0, len = 0}, reason = {s = 0x0, len = 0}, body = {s = 0x0, len = 0}} ret_value = 0 not_parsed = 0 dmq_node = 0x7fd49d84f5f8 __func__ = "worker_loop" #5 0x00007fd49cf7d3bd in child_init (rank=0) at dmq.c:319 i = 0 newpid = 0 __func__ = "child_init" #6 0x0000563486e033e4 in init_mod_child (m=0x7fd4bd8de328, rank=0) at core/sr_module.c:877 ret = 0 __func__ = "init_mod_child" #7 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8de8c8, rank=0) at core/sr_module.c:870 ret = 0 __func__ = "init_mod_child" #8 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8dec80, rank=0) at core/sr_module.c:870 ret = 0 __func__ = "init_mod_child" #9 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8deff8, rank=0) at core/sr_module.c:870 ret = 0 __func__ = "init_mod_child" #10 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8df8e8, rank=0) at core/sr_module.c:870 ret = 32766 __func__ = "init_mod_child" #11 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8e0b78, rank=0) at core/sr_module.c:870 ret = 22068 __func__ = "init_mod_child" #12 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8e1830, rank=0) at core/sr_module.c:870 ret = 0 __func__ = "init_mod_child" #13 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8e2598, rank=0) at core/sr_module.c:870 ret = 32766 __func__ = "init_mod_child" #14 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8e2d50, rank=0) at core/sr_module.c:870 ret = 32724 __func__ = "init_mod_child" #15 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8e3398, rank=0) at core/sr_module.c:870 ret = 32766 __func__ = "init_mod_child" #16 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8e4e78, rank=0) at core/sr_module.c:870 ret = 0 __func__ = "init_mod_child" #17 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8e5db8, rank=0) at core/sr_module.c:870 ret = 0 __func__ = "init_mod_child" #18 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8e65f8, rank=0) at core/sr_module.c:870 ret = 0 __func__ = "init_mod_child" #19 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8e74a0, rank=0) at core/sr_module.c:870 ret = 32766 __func__ = "init_mod_child" #20 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8e7950, rank=0) at core/sr_module.c:870 ret = 32766 __func__ = "init_mod_child" #21 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8e8198, rank=0) at core/sr_module.c:870 ret = 0 __func__ = "init_mod_child" #22 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8e8640, rank=0) at core/sr_module.c:870 ret = 22068 __func__ = "init_mod_child" #23 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8e8b80, rank=0) at core/sr_module.c:870 ret = 0 __func__ = "init_mod_child" #24 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8e91b8, rank=0) at core/sr_module.c:870 ret = 0 __func__ = "init_mod_child" #25 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8e9f00, rank=0) at core/sr_module.c:870 ret = 0 __func__ = "init_mod_child" #26 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8ea580, rank=0) at core/sr_module.c:870 ret = 0 __func__ = "init_mod_child" #27 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8eac08, rank=0) at core/sr_module.c:870 ret = 22068 __func__ = "init_mod_child" #28 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8eb078, rank=0) at core/sr_module.c:870 ret = 32724 __func__ = "init_mod_child" #29 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8eb6c8, rank=0) at core/sr_module.c:870 ret = 0 __func__ = "init_mod_child" #30 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8ebc00, rank=0) at core/sr_module.c:870 ret = 0 __func__ = "init_mod_child" #31 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8ec338, rank=0) at core/sr_module.c:870 ret = 32766 __func__ = "init_mod_child" #32 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8ec6c0, rank=0) at core/sr_module.c:870 ret = 32766 __func__ = "init_mod_child" #33 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8eca48, rank=0) at core/sr_module.c:870 ret = 0 __func__ = "init_mod_child" #34 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8ece70, rank=0) at core/sr_module.c:870 ret = 32766 __func__ = "init_mod_child" #35 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8ed338, rank=0) at core/sr_module.c:870 ret = 0 __func__ = "init_mod_child" #36 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8ed7e0, rank=0) at core/sr_module.c:870 ret = 2 __func__ = "init_mod_child" #37 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8edc70, rank=0) at core/sr_module.c:870 ret = 0 __func__ = "init_mod_child" #38 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8ee100, rank=0) at core/sr_module.c:870 ret = 0 __func__ = "init_mod_child" #39 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8eee80, rank=0) at core/sr_module.c:870 ret = 0 __func__ = "init_mod_child" #40 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8ef6a0, rank=0) at core/sr_module.c:870 ret = 0 __func__ = "init_mod_child" #41 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8efc10, rank=0) at core/sr_module.c:870 ret = 0 __func__ = "init_mod_child" #42 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8f0638, rank=0) at core/sr_module.c:870 ret = 0 __func__ = "init_mod_child" #43 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8f0cc0, rank=0) at core/sr_module.c:870 ret = 0 __func__ = "init_mod_child" #44 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8f1130, rank=0) at core/sr_module.c:870 ret = 32766 __func__ = "init_mod_child" #45 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd8fd638, rank=0) at core/sr_module.c:870 ret = 0 __func__ = "init_mod_child" #46 0x0000563486e02fd2 in init_mod_child (m=0x7fd4bd9142f0, rank=0) at core/sr_module.c:870 ret = 59 __func__ = "init_mod_child" #47 0x0000563486e03d3d in init_child (rank=0) at core/sr_module.c:931 ret = 32724 type = 0x563487059a5b "PROC_MAIN" __func__ = "init_child" #48 0x0000563486bca2c7 in main_loop () at main.c:1841 i = 8 pid = 53603 si = 0x0 si_desc = "udp receiver child=7 sock=10.2.1.183:5050\000\060\066\060\000\000\000\003\000\000\000\071\000\000\000\000%\251\344H\362\241\215\000\000\000\000\000\000\000\000?\321\000\000\000\000\000\000\020l\273\206\064V", '\000' , "\340\250\343\246\376\177\000\000\b\256׆4V\000" nrprocs = 8 woneinit = 1 __func__ = "main_loop" #49 0x0000563486bd520c in main (argc=10, argv=0x7ffea6e3ae38) at main.c:3078 cfg_stream = 0x563487cb02a0 c = -1 r = 0 tmp = 0x7ffea6e3be58 "" tmp_len = -1495029120 port = 32766 proto = 7 ahost = 0x0 aport = 0 options = 0x56348700f258 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:Y:" ret = -1 seed = 2273873805 rfd = 4 debug_save = 0 debug_flag = 0 dont_fork_cnt = 0 n_lst = 0x0 p = 0x0 st = {st_dev = 23, st_ino = 2259, st_nlink = 2, st_mode = 16888, st_uid = 108, st_gid = 115, __pad0 = 0, st_rdev = 0, st_size = 40, st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1663462639, tv_nsec = 941550937}, st_mtim = {tv_sec = 1663462639, tv_nsec = 941550937}, st_ctim = {tv_sec = 1663462639, tv_nsec = 941550937}, __glibc_reserved = {0, 0, 0}} tbuf = "\000\000\000\000\000\000\000\000(2\356\246\376\177\000\000\000\000\000\000 ", '\000' , "\001\000\000\000\000\000\000\000\366u\256\003\001\000\000\000\002", '\000' ... option_index = 12 long_options = {{name = 0x5634870116c6 "help", has_arg = 0, flag = 0x0, val = 104}, {name = 0x56348700c50c "version", has_arg = 0, flag = 0x0, val = 118}, {name = 0x5634870116cb "alias", has_arg = 1, flag = 0x0, val = 1024}, {name = 0x5634870116d1 "subst", has_arg = 1, flag = 0x0, val = 1025}, {name = 0x5634870116d7 "substdef", has_arg = 1, flag = 0x0, val = 1026}, {name = 0x5634870116e0 "substdefs", has_arg = 1, flag = 0x0, val = 1027}, {name = 0x5634870116ea "server-id", has_arg = 1, flag = 0x0, val = 1028}, {name = 0x5634870116f4 "loadmodule", has_arg = 1, flag = 0x0, val = 1029}, {name = 0x5634870116ff "modparam", has_arg = 1, flag = 0x0, val = 1030}, {name = 0x563487011708 "log-engine", has_arg = 1, flag = 0x0, val = 1031}, {name = 0x563487011713 "debug", has_arg = 1, flag = 0x0, val = 1032}, {name = 0x563487011719 "cfg-print", has_arg = 0, flag = 0x0, val = 1033}, {name = 0x563487011723 "atexit", has_arg = 1, flag = 0x0, val = 1034}, {name = 0x0, has_arg = 0, flag = 0x0, val = 0}} __func__ = "main" ================================================================================ # list ================================================================================ 680 in usrloc_sync.c