<p><a class="user-mention" data-hovercard-user-id="184809" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/miconda">@miconda</a>: they are both (core1 and core2) from the same server, just later in time. So core1 was generated at say for example 1pm, then kamailio is restarted by watchdog, and at 3pm core2 is generated.</p>
<p>Regarding core-per-pid:</p>
<p>I have the following in <code>/etc/kamailio/kamailio.cfg</code>:</p>
<pre><code>fork=yes
</code></pre>
<p>And in <code>/etc/sysctl.d/kamailio.conf</code>:</p>
<pre><code># Kamailio debugging
kernel.core_pattern = /var/tmp/core.%e.%p.%h.%t
kernel.core_uses_pid = 1
fs.suid_dumpable = 2
</code></pre>
<p>Just to verify:</p>
<pre><code>root@sbc01:~# cat /proc/sys/kernel/core_uses_pid
1
root@sbc01:~#
</code></pre>
<p>Am I missing anything to get the core-per-pid ??</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/1594#issuecomment-406449916">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZUctmPAYxx24ocjWi2MoDB2B31sEks5uIR7dgaJpZM4VPpVZ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZcCrD7LTcs1XhSfCYMkedZVMC2vrks5uIR7dgaJpZM4VPpVZ.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://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@joelsdc in #1594: @miconda: they are both (core1 and core2) from the same server, just later in time. So core1 was generated at say for example 1pm, then kamailio is restarted by watchdog, and at 3pm core2 is generated.\r\n\r\nRegarding core-per-pid:\r\n\r\nI have the following in `/etc/kamailio/kamailio.cfg`:\r\n\r\n```\r\nfork=yes\r\n```\r\n\r\nAnd in `/etc/sysctl.d/kamailio.conf`:\r\n\r\n```\r\n# Kamailio debugging\r\nkernel.core_pattern = /var/tmp/core.%e.%p.%h.%t\r\nkernel.core_uses_pid = 1\r\nfs.suid_dumpable = 2\r\n```\r\n\r\nJust to verify:\r\n\r\n```\r\nroot@sbc01:~# cat /proc/sys/kernel/core_uses_pid\r\n1\r\nroot@sbc01:~#\r\n```\r\n\r\nAm I missing anything to get the core-per-pid ??\r\n"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1594#issuecomment-406449916"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1594#issuecomment-406449916",
"url": "https://github.com/kamailio/kamailio/issues/1594#issuecomment-406449916",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [kamailio/kamailio] coredumps possibly generated by DMQ in kamailio v5.1.4 (#1594)",
"sections": [
{
"text": "",
"activityTitle": "**Joel Serrano**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@joelsdc",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"kamailio/kamailio\",\n\"issueId\": 1594,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"kamailio/kamailio\",\n\"issueId\": 1594\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/kamailio/kamailio/issues/1594#issuecomment-406449916"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 356423001\n}"
}
],
"themeColor": "26292E"
}
]</script>