<p></p>
<p>For some reason destination list is allocated with one uninitialized  item already in it:</p>
<pre><code>int ka_alloc_destinations_list()
{
        if(ka_destinations_list != NULL) {
                LM_DBG("ka_destinations_list already allocated\n");
                return 1;
        }

        ka_destinations_list = (ka_destinations_list_t *)shm_malloc(
                        sizeof(ka_destinations_list_t));
</code></pre>
<p>It may be the source of trouble when keepalive_rpc_list tries to list it:</p>
<pre><code>static void keepalive_rpc_list(rpc_t *rpc, void *ctx)
{
        void *sub;
        ka_dest_t *dest;
        char t_buf[26] = {0};

        for(dest = ka_destinations_list->first; dest != NULL; dest = dest->next) {
</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/2618#issuecomment-771830462">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZIYZUEAKWK52TJULCDS5A2SZANCNFSM4W6N7AZQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZOZW36X2OWGSACOMHTS5A2SZA5CNFSM4W6N7AZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFYATFPQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2618#issuecomment-771830462",
"url": "https://github.com/kamailio/kamailio/issues/2618#issuecomment-771830462",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>