root@proxy-kam-01:/var/kamailio# gdb kamailio core-17582 GNU gdb (Debian 8.2.1-2+b3) 8.2.1 Copyright (C) 2018 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 kamailio...done. [New LWP 17582] [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/local/sbin/kamailio -P /run/kamailio/kamailio.pid -f /usr/local/etc/kamail'. Program terminated with signal SIGSEGV, Segmentation fault. #0 __strcmp_sse2 () at ../sysdeps/x86_64/strcmp.S:174 174 ../sysdeps/x86_64/strcmp.S: No such file or directory. (gdb) bt full #0 __strcmp_sse2 () at ../sysdeps/x86_64/strcmp.S:174 No locals. #1 0x00007f5a99a8a5ed in rpc_mod_is_printed_one (stats=0x55c586cc61e0, current=0x55c586cc89f0) at mod_stats.c:87 iter = 0x55c586cc61e0 #2 0x00007f5a99a8aaa5 in rpc_mod_print_all (rpc=0x7f5a995ae5c0 , ctx=0x7ffe66709fa0, pkg_stats=0x55c586cc61e0, shm_stats=0x55c586cc89f0, flag=1) at mod_stats.c:189 pkg_iter = 0x0 shm_iter = 0x55c586cc89f0 #3 0x00007f5a99a8aca4 in rpc_mod_mem_stats_mode (rpc=0x7f5a995ae5c0 , ctx=0x7ffe66709fa0, fmode=0) at mod_stats.c:235 flag = 1 mname = {s = 0x55c586cacfc8 "all", len = 3} mtype = {s = 0x55c586cacfcd "pkg", len = 3} pkg_mod_stats_list = 0x55c586cc61e0 shm_mod_stats_list = 0x55c586cc89f0 #4 0x00007f5a99a8ad21 in rpc_mod_mem_stats (rpc=0x7f5a995ae5c0 , ctx=0x7ffe66709fa0) at mod_stats.c:251 No locals. #5 0x00007f5a9957db96 in process_rpc_req (buf=0x55c586cacfb4 "\241\003\026z\356͟\221\nmod.stats", size=29, bytes_needed=0x7ffe6670a1bc, sh=0x7ffe6670a120, saved_state=0x55c586cbcfb8) at binrpc_run.c:688 err = 0 val = {name = {s = 0xffffffffffffffb0 , len = 0}, type = 1, u = {strval = { s = 0x55c586cacfbd "mod.stats", len = 9}, fval = 4.6593778881246628e-310, intval = -2033528899, end = -2033528899}} rpc_e = 0x7f5a9a2acfd0 f_ctx = {in = {ctx = {tlen = 22, cookie = 2062470559, type = 0, flags = 1, offset = 22, in_struct = 0, in_array = 0}, s = 0x55c586cacfd1 "", end = 0x55c586cacfd1 "", record_no = 2, in_struct = 0}, out = {pkt = {body = 0x55c586cbd050 "\221\rModule: core", end = 0x55c586cc5050 "", crt = 0x55c586cbd148 "\221\vModule: tm"}, structs = {next = 0x55c586cc8a30, prev = 0x55c586cdeda0}}, send_h = 0x7ffe6670a120, method = 0x55c586cacfbd "mod.stats", gc = 0x0, replied = 0, err_code = 0, err_phrase = {s = 0x0, len = 0}} ctx = 0x7ffe66709fa0 __func__ = "process_rpc_req" #6 0x00007f5a995726b8 in handle_stream_read (s_c=0x55c586cacf80, idx=-1) at io_listener.c:512 bytes_free = 65535 bytes_read = 29 bytes_needed = 0 bytes_processed = 1 r = 0x55c586cacfa0 --Type for more, q to quit, c to continue without paging-- sh = {fd = 14, type = 0, from = {sa_in = {s = {sa_family = 21901, sa_data = "\222\000\223uilio_use"}, sin = {sin_family = 21901, sin_port = 146, sin_addr = {s_addr = 1972603090}, sin_zero = "ilio_use"}, sin6 = {sin6_family = 21901, sin6_port = 146, sin6_flowinfo = 1972603090, sin6_addr = {__in6_u = {__u6_addr8 = "ilio_user\000\024\033\002\000\000", __u6_addr16 = {27753, 28521, 30047, 25971, 114, 6932, 2, 0}, __u6_addr32 = {1869180009, 1702065503, 454295666, 2}}}, sin6_scope_id = 1}, sas = { ss_family = 21901, __ss_padding = "\222\000\223uilio_user\000\024\033\002\000\000\000\001", '\000' , '\377' , '\000' , '\377' , "\001\000\000\000\000\000\000\000\350\252\327\026Z\177", '\000' , __ss_align = 6013624800}}, sa_un = {sun_family = 21901, sun_path = "\222\000\223uilio_user\000\024\033\002\000\000\000\001", '\000' , '\377' , '\000' , '\377' , "\001\000\000\000\000\000\000\000\350\252\327\026Z\177\000\000\000\000\000\000\000"}}, from_len = 0} __func__ = "handle_stream_read" #7 0x00007f5a995745d9 in handle_io (fm=0x7f5a9a2bb460, events=1, idx=-1) at io_listener.c:708 ret = 32602 __func__ = "handle_io" #8 0x00007f5a9956acaf in io_wait_loop_epoll (h=0x7f5a9959e2a0 , t=10, repeat=0) at ../../core/io_wait.h:1070 n = 1 r = 0 fm = 0x7f5a9a2bb460 revents = 1 __func__ = "io_wait_loop_epoll" #9 0x00007f5a9956f111 in io_listen_loop (fd_no=1, cs_lst=0x55c586c6c870) at io_listener.c:281 max_fd_no = 324 poll_err = 0x0 poll_method = 2 cs = 0x0 type = 2 __func__ = "io_listen_loop" #10 0x00007f5a9958e1fd in mod_child (rank=0) at ctl.c:338 pid = 0 cs = 0x7f5aa08879f0 <_rtld_global+2448> rpc_handler = 1 __func__ = "mod_child" #11 0x000055c58545a623 in init_mod_child (m=0x7f5a9a173920, rank=0) at core/sr_module.c:806 __func__ = "init_mod_child" --Type for more, q to quit, c to continue without paging-- #12 0x000055c58545a256 in init_mod_child (m=0x7f5a9a173f58, rank=0) at core/sr_module.c:802 __func__ = "init_mod_child" #13 0x000055c58545a256 in init_mod_child (m=0x7f5a9a175a28, rank=0) at core/sr_module.c:802 __func__ = "init_mod_child" #14 0x000055c58545a256 in init_mod_child (m=0x7f5a9a176898, rank=0) at core/sr_module.c:802 __func__ = "init_mod_child" #15 0x000055c58545a256 in init_mod_child (m=0x7f5a9a176ca8, rank=0) at core/sr_module.c:802 __func__ = "init_mod_child" #16 0x000055c58545a256 in init_mod_child (m=0x7f5a9a177018, rank=0) at core/sr_module.c:802 __func__ = "init_mod_child" #17 0x000055c58545a256 in init_mod_child (m=0x7f5a9a177538, rank=0) at core/sr_module.c:802 __func__ = "init_mod_child" #18 0x000055c58545a256 in init_mod_child (m=0x7f5a9a1778a0, rank=0) at core/sr_module.c:802 __func__ = "init_mod_child" #19 0x000055c58545a256 in init_mod_child (m=0x7f5a9a178680, rank=0) at core/sr_module.c:802 __func__ = "init_mod_child" #20 0x000055c58545a256 in init_mod_child (m=0x7f5a9a179490, rank=0) at core/sr_module.c:802 __func__ = "init_mod_child" #21 0x000055c58545a256 in init_mod_child (m=0x7f5a9a1798e0, rank=0) at core/sr_module.c:802 __func__ = "init_mod_child" #22 0x000055c58545a256 in init_mod_child (m=0x7f5a9a179df0, rank=0) at core/sr_module.c:802 __func__ = "init_mod_child" #23 0x000055c58545a256 in init_mod_child (m=0x7f5a9a17a460, rank=0) at core/sr_module.c:802 __func__ = "init_mod_child" #24 0x000055c58545a256 in init_mod_child (m=0x7f5a9a17adc8, rank=0) at core/sr_module.c:802 __func__ = "init_mod_child" #25 0x000055c58545a256 in init_mod_child (m=0x7f5a9a17b1d8, rank=0) at core/sr_module.c:802 __func__ = "init_mod_child" #26 0x000055c58545a256 in init_mod_child (m=0x7f5a9a17b8e0, rank=0) at core/sr_module.c:802 __func__ = "init_mod_child" #27 0x000055c58545aec2 in init_child (rank=0) at core/sr_module.c:851 ret = -1708459432 type = 0x55c58577922b "PROC_MAIN" __func__ = "init_child" --Type for more, q to quit, c to continue without paging-- #28 0x000055c585343cdc in main_loop () at main.c:1791 i = 8 pid = 17578 si = 0x0 si_desc = "udp receiver child=7 sock=10.128.77.189:5080\000\177\000\000\240+3\205\305U\000\000Ȧ\327\026Z\177", '\000' , "\001\000\000\000\360\262pf\376\177\000\000t`c\205\305U\000\000(\253w\205\305U\000\000\230\217+\232k\000\000\000 \253w\205\305U\000\000Xm)\232Z\177\000" nrprocs = 8 woneinit = 1 __func__ = "main_loop" #29 0x000055c58534e4c3 in main (argc=11, argv=0x7ffe6670b8c8) at main.c:2942 cfg_stream = 0x55c586b95290 c = -1 r = 0 tmp = 0x7ffe6670be69 "" tmp_len = 0 port = 0 proto = 0 ahost = 0x0 aport = 0 options = 0x55c585751d68 ":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 = 4160129616 rfd = 4 debug_save = 0 debug_flag = 0 dont_fork_cnt = 0 n_lst = 0x7ffe66737268 p = 0x7f5aa0573b19 "H\205\300uB\213t$\bM\215\216\244" st = {st_dev = 20, st_ino = 1532452714, st_nlink = 2, st_mode = 16888, st_uid = 0, st_gid = 0, __pad0 = 0, st_rdev = 0, st_size = 40, st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1656657358, tv_nsec = 681916541}, st_mtim = {tv_sec = 1656657358, tv_nsec = 681916541}, st_ctim = {tv_sec = 1656657358, tv_nsec = 681916541}, __glibc_reserved = {0, 0, 0}} tbuf = "\327\366\026\002\000\000\000\000 \265pf\376\177\000\000\020\265pf\376\177\000\000X\264pf\376\177\000\000@j\205\240Z\177\000\000\a\000\000\000\000\000\000\000\370_M\240", '\000' , " \000\000\000ﵽ\205\000\000\000\000pb\205\240Z\177\000\000\270\265pf\376\177\000\000\020_\205\240Z\177\000\000\000\000\000\000\000\000\000\000\230\361L\240Z\177\000\000\217\223\206\240Z\177\000\000\006\000\000\000\000\000\000\000\230\3--Type for more, q to quit, c to continue without paging-- 61L\240Z\177\000\000\001", '\000' , "\001\000\000\000\000\000\000\000\020_\205\240Z\177\000\000\207hi\240Z\177\000\000\000\000\000\000\001\000\000\000\020\265pf\376\177\000\000 \265"... option_index = 0 long_options = {{name = 0x55c585753f36 "help", has_arg = 0, flag = 0x0, val = 104}, {name = 0x55c58574f514 "version", has_arg = 0, flag = 0x0, val = 118}, {name = 0x55c585753f3b "alias", has_arg = 1, flag = 0x0, val = 1024}, {name = 0x55c585753f41 "subst", has_arg = 1, flag = 0x0, val = 1025}, {name = 0x55c585753f47 "substdef", has_arg = 1, flag = 0x0, val = 1026}, { name = 0x55c585753f50 "substdefs", has_arg = 1, flag = 0x0, val = 1027}, {name = 0x55c585753f5a "server-id", has_arg = 1, flag = 0x0, val = 1028}, {name = 0x55c585753f64 "loadmodule", has_arg = 1, flag = 0x0, val = 1029}, {name = 0x55c585753f6f "modparam", has_arg = 1, flag = 0x0, val = 1030}, {name = 0x55c585753f78 "log-engine", has_arg = 1, flag = 0x0, val = 1031}, {name = 0x55c585753f83 "debug", has_arg = 1, flag = 0x0, val = 1032}, {name = 0x55c585753f89 "atexit", has_arg = 1, flag = 0x0, val = 1034}, {name = 0x0, has_arg = 0, flag = 0x0, val = 0}} __func__ = "main" (gdb)