<p>Ok this is what I did, hope that is correct.</p>

<pre><code>gdb /usr/local/sbin/kamailio /var/run/kamailio/kamailio.core
</code></pre>

<pre><code>(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
</code></pre>

<pre><code>(gdb) frame 0
#0  0x00000008098d32c3 in ds_avl_destroy (node_ptr=0x809ed2b40) at dispatch.c:3046
3046            if(dest->uri.s!=NULL)
</code></pre>

<pre><code>(gdb) info locals
node = (ds_set_t *) 0x809ee72d8
i = 2
dest = (ds_dest_t *) 0x1
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/846#issuecomment-258103621">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZTZlgG6xHAwPv4LpYUuz_gmkczXdks5q6bKBgaJpZM4KoIa7">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZZKrLpbwvf781s5oSH6zhCgQBkDRks5q6bKBgaJpZM4KoIa7.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/846#issuecomment-258103621"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@dunst0 in #846: Ok this is what I did, hope that is correct.\r\n\r\n```\r\ngdb /usr/local/sbin/kamailio /var/run/kamailio/kamailio.core\r\n```\r\n\r\n```\r\n(gdb) bt full\r\n#0  0x00000008098d32c3 in ds_avl_destroy (node_ptr=0x809ed2b40) at dispatch.c:3046\r\n\tnode = (ds_set_t *) 0x809ee72d8\r\n\ti = 2\r\n\tdest = (ds_dest_t *) 0x1\r\n#1  0x00000008098d95cb in ds_destroy_list () at dispatch.c:1000\r\nNo locals.\r\n#2  0x0000000809911ead in destroy () at dispatcher.c:593\r\nNo locals.\r\n#3  0x0000000000508345 in destroy_modules () at sr_module.c:811\r\n\tt = (struct sr_module *) 0x80186fa50\r\n\tfoo = (struct sr_module *) 0x80186f5a0\r\n#4  0x0000000000517ff7 in cleanup (show_status=1) at main.c:526\r\n\tmemlog = 0\r\n#5  0x000000000052011c in shutdown_children (sig=15, show_status=1) at main.c:668\r\nNo locals.\r\n#6  0x000000000051f094 in handle_sigs () at main.c:760\r\n\tchld = 0\r\n\tchld_status = 0\r\n\tmemlog = 32767\r\n#7  0x0000000000530859 in main_loop () at main.c:1748\r\n\ti = 8\r\n\tpid = 43479\r\n\tsi = (struct socket_info *) 0x0\r\n\tsi_desc = \"udp receiver child=7 sock=5.159.56.124:5060\\000\\b\\000\\000\\000\\001\", '\\0' \u003crepeats 15 times\u003e, \"\\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\"\r\n\tnrprocs = 8\r\n\twoneinit = 1\r\n#8  0x000000000053b530 in main (argc=15, argv=0x7fffffffeb18) at main.c:2632\r\n\tcfg_stream = (FILE *) 0x801206170\r\n\tc = -1\r\n\tr = 0\r\n\ttmp = 0x7fffffffede9 \"\"\r\n\ttmp_len = 32767\r\n\tport = -5224\r\n\tproto = 32767\r\n\toptions = 0x99b412 \":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:\"\r\n\tret = -1\r\n\tseed = 1396112342\r\n\trfd = 4\r\n\tdebug_save = 0\r\n\tdebug_flag = 0\r\n\tdont_fork_cnt = 0\r\n\tn_lst = (struct name_lst *) 0xf\r\n\tp = 0x7fffffffeb18 \"�����\\177\"\r\n\tst = {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 = {\r\n    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, \r\n  st_birthtim = {tv_sec = 1462371141, tv_nsec = 922274000}}\r\nCurrent language:  auto; currently minimal\r\n```\r\n\r\n```\r\n(gdb) frame 0\r\n#0  0x00000008098d32c3 in ds_avl_destroy (node_ptr=0x809ed2b40) at dispatch.c:3046\r\n3046\t\t\tif(dest-\u003euri.s!=NULL)\r\n```\r\n\r\n```\r\n(gdb) info locals\r\nnode = (ds_set_t *) 0x809ee72d8\r\ni = 2\r\ndest = (ds_dest_t *) 0x1\r\n```"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/846#issuecomment-258103621"}}}</script>