<p>You're welcome.</p>

<p>After more tries, the segmentation faults don't seem to be related to my patch as : </p>

<ul>
<li>the segmentation occurs between the database locks release and the "tps_reappend_route" function and simply adding a sleep between database locks releases and it solved (partially) my issue.</li>
<li>more children i use more often the segmentation occurs, and, on the contrary, less threads i use, less often the segmentation occurs</li>
<li>even with removing my patch if i start kamailio with, for example, more than 10 children, children dies and so kamailio exits.</li>
</ul>

<p>So, it seems the problem is more database locking/releasing related, but that would mean very complicated debugging... i would be unable to do.</p>

<p>Maybe you have more ideas i have... let me know if you need more informations, you would probably be able to reproduce the issue has it only requires to add more children to kamailio process.</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/716#issuecomment-237043962">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZZeSfeEHWsWsl7iscN9e7kR0eRxoks5qb7FZgaJpZM4JPNU8">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZYVQwIAonubHMmkwWimayVgN7LJoks5qb7FZgaJpZM4JPNU8.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/716#issuecomment-237043962"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<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/modules/aws/aws-bg.jpg","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@darencrew in #716: You're welcome.\r\n\r\nAfter more tries, the segmentation faults don't seem to be related to my patch as : \r\n- the segmentation occurs between the database locks release and the \"tps_reappend_route\" function and simply adding a sleep between database locks releases and it solved (partially) my issue.\r\n- more children i use more often the segmentation occurs, and, on the contrary, less threads i use, less often the segmentation occurs\r\n- even with removing my patch if i start kamailio with, for example, more than 10 children, children dies and so kamailio exits.\r\n\r\nSo, it seems the problem is more database locking/releasing related, but that would mean very complicated debugging... i would be unable to do.\r\n\r\nMaybe you have more ideas i have... let me know if you need more informations, you would probably be able to reproduce the issue has it only requires to add more children to kamailio process."}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/716#issuecomment-237043962"}}}</script>