<h3>Description</h3>
<p>slow_timer proc exited with crash, kamailio kept running but tm transaction kept accumulating which will lead to shared memory exhaustion and crash.</p>
<p>in line 1131 <code>ret=tl->f(*ticks, tl, tl->data);</code> f is null, reason of crash</p>

<h3>Troubleshooting</h3>
<h4>Reproduction</h4>
<p>happens from time to time, not a way to reliably reproduce it.</p>

<h4>Debugging Data</h4>

<pre><code>#0  0x0000000000000000 in ?? ()
#1  0x000000000049f648 in slow_timer_main () at core/timer.c:1131
#2  0x0000000000424b84 in main_loop () at main.c:1685
#3  0x000000000042b9d3 in main (argc=16, argv=0x7ffe568bcd08) at main.c:2663
(gdb) frame 1
#1  0x000000000049f648 in slow_timer_main () at core/timer.c:1131
1131                                            ret=tl->f(*ticks, tl, tl->data);
(gdb) list
1126    #ifdef TIMER_DEBUG
1127                                    tl->expires_no++;
1128    #endif
1129                                    SET_RUNNING_SLOW(tl);
1130                                    UNLOCK_SLOW_TIMER_LIST();
1131                                            ret=tl->f(*ticks, tl, tl->data);
1132                                            /* reset the configuration group handles */
1133                                            cfg_reset_all();
1134                                            if (ret==0){
1135                                                    /* one shot */
(gdb) p *tl
$1 = {next = 0x0, prev = 0x0, expire = 938928580, initial_timeout = 80, data = 0x0, f = 0x0, flags = 768, slow_idx = 45488}
(gdb) info locals
n = 12
ret = 4294967295
tl = 0x7fb2d3c860d0
i = 432
__func__ = "slow_timer_main"

</code></pre>
<h4>Log Messages</h4>

<pre><code>(paste your log messages here)
</code></pre>
<h4>SIP Traffic</h4>

<pre><code>(paste your sip traffic here)
</code></pre>
<h3>Possible Solutions</h3>

<h3>Additional Information</h3>
<ul>
<li><strong>Kamailio Version</strong> - output of <code>kamailio -v</code></li>
</ul>
<pre><code>5.1.7
</code></pre>
<ul>
<li><strong>Operating System</strong>:</li>
</ul>

<pre><code>centos 7
</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/1897">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZUC0ZEgbepXfqO-5GVnVJYbef2zLks5vYk9GgaJpZM4b_iq1">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZTmL4c4kuU4cWVqp2Ns_gh7b8BbFks5vYk9GgaJpZM4b_iq1.gif" height="1" width="1" alt="" /></p>
<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://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"crash in slow timer (#1897)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1897"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1897",
"url": "https://github.com/kamailio/kamailio/issues/1897",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>