<p>Segfaults reported by Igor, on sr-Users mailing list.</p>

<p>Some of the output he got:</p>

<pre><code>Jan 21 10:21:11 /usr/local/sbin/kamailio[3843]: ERROR: <core> [dtrie.c:153]: dtrie_insert(): could not allocate shared memory from available pool

Jan 21 10:21:11 /usr/local/sbin/kamailio[3839]: ERROR: userblacklist [db.c:91]: db_build_userbl_tree(): could not insert values into trie.
</code></pre>

<p>Coredumps:</p>

<pre><code>Program terminated with signal 11, Segmentation fault.

#0  0x00007f13a1550af2 in dtrie_insert (root=0x7f138d7ffb38, number=0x22ba6c0 "003716716", numberlen=9, data=0x2, branches=10) at dtrie.c:141

141                     if (node->child[digit] == NULL) {



Core was generated by `/usr/local/sbin/kamailio -P /var/run/kamailio.pid -m 256 -M 64'.

Program terminated with signal 11, Segmentation fault.

#0  0x00007f13a1550af2 in dtrie_insert (root=0x7f138d7ff998, number=0x22b57a8 "0035587482", numberlen=10, data=0x2, branches=10) at dtrie.c:141

141                     if (node->child[digit] == NULL) {
</code></pre>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/kamailio/kamailio/pull/483'>https://github.com/kamailio/kamailio/pull/483</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>dtrie: sanity checks</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/483/files#diff-0">lib/trie/dtrie.c</a>
    (14)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/kamailio/kamailio/pull/483.patch'>https://github.com/kamailio/kamailio/pull/483.patch</a></li>
  <li><a href='https://github.com/kamailio/kamailio/pull/483.diff'>https://github.com/kamailio/kamailio/pull/483.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/pull/483">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZXbjnkT2G7Tzrag3KVmC-4IqgU1aks5pchrZgaJpZM4HKU95.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/pull/483"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>