<p>I attached an <code>strace</code> to the main TCP receiver process, and saw this preceding the crash:</p>
<pre><code>recvmsg(10, {msg_name(0)=NULL, msg_iov(1)=[{"", 16}], msg_controllen=0, msg_flags=0}, MSG_DONTWAIT) = 0
</code></pre>
<p>This then engenders the following sequence of events:</p>
<pre><code>sendto(5, "<26>Sep 26 13:09:01 /sbin/kamail"..., 99, MSG_NOSIGNAL, NULL, 0) = 99
epoll_ctl(63, EPOLL_CTL_DEL, 10, {EPOLLWRNORM|EPOLLHUP|EPOLLRDHUP|EPOLLET|0x39e9800, {u32=32767, u64=32767}}) = 0
epoll_wait(63, 2b9481eca8c8, 1006, 5000) = -1 EINTR (Interrupted system call)
--- SIGTERM {si_signo=SIGTERM, si_code=SI_USER, si_pid=628, si_uid=106} ---
exit_group(0)                           = ?
+++ exited with 0 +++
</code></pre>
<p>I'm still not sure what is raising <code>SIGTERM</code> exactly, but it thickens the plot insofar as it appears that the cause of the TCP receiver process is dying is actually a <code>SIGTERM</code> from another place, rather than the 0 return value of <code>recvmsg()</code> per se. I assume this is something related to a different child process dying -- I think Kamailio kills all the other children upon receipt of a <code>SIGCHLD</code> from one of the workers, right? -- but I haven't been able to get to the bottom of which child process is dying and why.</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/2075?email_source=notifications&email_token=ABO7UZJ4IOI5IFQQ2XXR25TQLTUXTA5CNFSM4I2TXIFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7WJ65A#issuecomment-535601012">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKE2RCPKGKH7ANAKTLQLTUXTANCNFSM4I2TXIFA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZPOLYDKPNYKIQ2ZSJDQLTUXTA5CNFSM4I2TXIFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7WJ65A.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/2075?email_source=notifications\u0026email_token=ABO7UZJ4IOI5IFQQ2XXR25TQLTUXTA5CNFSM4I2TXIFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7WJ65A#issuecomment-535601012",
"url": "https://github.com/kamailio/kamailio/issues/2075?email_source=notifications\u0026email_token=ABO7UZJ4IOI5IFQQ2XXR25TQLTUXTA5CNFSM4I2TXIFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7WJ65A#issuecomment-535601012",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>