<p>So digging into it more, I guess print is just looking for a terminating character \0, but still what is passed to sqlite3 for its call to openDatabase includes an extra byte on the end and that's whats causing the problem:</p>

<p>119274  in sqlite3.c<br><br>
(gdb) s<br><br>
openDatabase (zFilename=0x7fffeecf30b8 "/var/db/opensips\b", ppDb=ppDb@entry=0x7fffffffe040, flags=flags@entry=6, zVfs=zVfs@entry=0x0) at sqlite3.c:121423</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/471#issuecomment-94626123">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciQFVDoEVarQ7THnsn2iHwHgZZGDjks5oBbktgaJpZM4EDZbV.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/OpenSIPS/opensips/issues/471#issuecomment-94626123"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>