<p></p>
<p>This is a race that can show up in a multi-process application and is hard to avoid it completely if you do not "cool down" the server (stop/reduce other interactions with kamailio) -- you run RPC commands as the same time with triggering shut down.</p>
<p>I pushed the commit referenced above (which depends on another commit to the core) to narrow down the window of this specific case, but it is not completely avoidable, as the rpc command can be in the middle of iterating some internal lists when kill is performed and some structures can be destroyed by other processes.</p>
<p>If someone wants to propose other solutions, make PRs and can be discussed there.</p>

<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/2433#issuecomment-671396222">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZOOH3PUOXXH7KLVINLSAABEXANCNFSM4PZY2KDA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZNZCTSIW4QY556ITXDSAABEXA5CNFSM4PZY2KDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFACLC7Q.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/2433#issuecomment-671396222",
"url": "https://github.com/kamailio/kamailio/issues/2433#issuecomment-671396222",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>