Ok this is what I did, hope that is correct.
``` gdb /usr/local/sbin/kamailio /var/run/kamailio/kamailio.core ```
``` (gdb) bt full #0 0x00000008098d32c3 in ds_avl_destroy (node_ptr=0x809ed2b40) at dispatch.c:3046 node = (ds_set_t *) 0x809ee72d8 i = 2 dest = (ds_dest_t *) 0x1 #1 0x00000008098d95cb in ds_destroy_list () at dispatch.c:1000 No locals. #2 0x0000000809911ead in destroy () at dispatcher.c:593 No locals. #3 0x0000000000508345 in destroy_modules () at sr_module.c:811 t = (struct sr_module *) 0x80186fa50 foo = (struct sr_module *) 0x80186f5a0 #4 0x0000000000517ff7 in cleanup (show_status=1) at main.c:526 memlog = 0 #5 0x000000000052011c in shutdown_children (sig=15, show_status=1) at main.c:668 No locals. #6 0x000000000051f094 in handle_sigs () at main.c:760 chld = 0 chld_status = 0 memlog = 32767 #7 0x0000000000530859 in main_loop () at main.c:1748 i = 8 pid = 43479 si = (struct socket_info *) 0x0 si_desc = "udp receiver child=7 sock=5.159.56.124:5060\000\b\000\000\000\001", '\0' <repeats 15 times>, "\020����\177\000\000\230����\177\000\000\030����\177\000\000\017\000\000\000\000\000\000\000P����\177\000\000��x\000\000\000\000\000U�\232\000\000\000\000\000\000\000\000\000\004\000\000" nrprocs = 8 woneinit = 1 #8 0x000000000053b530 in main (argc=15, argv=0x7fffffffeb18) at main.c:2632 cfg_stream = (FILE *) 0x801206170 c = -1 r = 0 tmp = 0x7fffffffede9 "" tmp_len = 32767 port = -5224 proto = 32767 options = 0x99b412 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:" ret = -1 seed = 1396112342 rfd = 4 debug_save = 0 debug_flag = 0 dont_fork_cnt = 0 n_lst = (struct name_lst *) 0xf p = 0x7fffffffeb18 "�����\177" st = {st_dev = 90, st_ino = 402609, st_mode = 16832, st_nlink = 2, st_uid = 986, st_gid = 986, st_rdev = 826095, st_atim = {tv_sec = 1462371141, tv_nsec = 922319000}, st_mtim = { tv_sec = 1478165947, tv_nsec = 81501000}, st_ctim = {tv_sec = 1478165947, tv_nsec = 81501000}, st_size = 512, st_blocks = 8, st_blksize = 32768, st_flags = 0, st_gen = 0, st_lspare = 0, st_birthtim = {tv_sec = 1462371141, tv_nsec = 922274000}} Current language: auto; currently minimal ```
``` (gdb) frame 0 #0 0x00000008098d32c3 in ds_avl_destroy (node_ptr=0x809ed2b40) at dispatch.c:3046 3046 if(dest->uri.s!=NULL) ```
``` (gdb) info locals node = (ds_set_t *) 0x809ee72d8 i = 2 dest = (ds_dest_t *) 0x1 ```