<p>The backtrace is from shutdown procedure after the crash happens, not revealing the real reason for crash, because the first core is overwritten by the one produced by shutdown cleanup. You have to enable one core file per pid (per process). I am not sure how is done in freebsd, on linux is done with:</p>
<pre><code>echo "1" > /proc/sys/kernel/core_uses_pid
</code></pre>
<p>The you should get at least another corefile with the issue from runtime.</p>
<p>The log messages suggest a buffer overflow is done somewhere in kamailio code (not related to tls at all).</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/2121?email_source=notifications&email_token=ABO7UZPO6UJI4ZFKCXEUZLLQRWXHFA5CNFSM4JIGOUV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC5AN5I#issuecomment-549062389">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZOAJXOJCNTDOHSZK4TQRWXHFANCNFSM4JIGOUVQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZNWS26P65BTR6N5ZGLQRWXHFA5CNFSM4JIGOUV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC5AN5I.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/2121?email_source=notifications\u0026email_token=ABO7UZPO6UJI4ZFKCXEUZLLQRWXHFA5CNFSM4JIGOUV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC5AN5I#issuecomment-549062389",
"url": "https://github.com/kamailio/kamailio/issues/2121?email_source=notifications\u0026email_token=ABO7UZPO6UJI4ZFKCXEUZLLQRWXHFA5CNFSM4JIGOUV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC5AN5I#issuecomment-549062389",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>