<p>Can you try with the patch referenced above? For now it is only in master branch, if solves it, then I will backport.</p>
<p>The patch is with safety checks for db result to avoid a crash. Code in 4.4, 5.0 and even master is pretty much the same for this rpc function, so I guess is rather a matter of getting mysql out of sync, than the version of kamailio. You are sending rpc commands at high rate in a loop in shell, many of the rpc commands were designed more for human/admin interaction, not considering high rate processing. I haven't developed the db rpc function in usrloc, never used them before, so I am not sure about their purpose. They are also restricted to sql backends, using raw query internally, something that is not recommended to be done in C code.</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/1900#issuecomment-475218993">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZQhtD8Ga-o3WhMeTI9dyZrVPtLKVks5vY4JigaJpZM4cA-rX">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZZ79F6Lrf3ddMikFS-kCA8BXTVNDks5vY4JigaJpZM4cA-rX.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":"PERSON","message":"@miconda in #1900: Can you try with the patch referenced above? For now it is only in master branch, if solves it, then I will backport.\r\n\r\nThe patch is with safety checks for db result to avoid a crash. Code in 4.4, 5.0 and even master is pretty much the same for this rpc function, so I guess is rather a matter of getting mysql out of sync, than the version of kamailio. You are sending rpc commands at high rate in a loop in shell, many of the rpc commands were designed more for human/admin interaction, not considering high rate processing. I haven't developed the db rpc function in usrloc, never used them before, so I am not sure about their purpose. They are also restricted to sql backends, using raw query internally, something that is not recommended to be done in C code.\r\n"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1900#issuecomment-475218993"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1900#issuecomment-475218993",
"url": "https://github.com/kamailio/kamailio/issues/1900#issuecomment-475218993",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>