<p>I can't seem to recreate it any more.  I compiled from source with DBG_QM_MALLOC and it worked fine with no segfault and $avp(cnam) got populated from the http_query function.</p>

<p>So I completely removed kamailio including the libs, etc. and did a yum reinstall on it to get the original prebuilt version I was testing with and it also worked fine with no segfault.</p>

<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/issues/212#issuecomment-122345856">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZRJZ2y7K-AYOeCWC8-IcwHmr2izlks5oeS8-gaJpZM4FEq4p.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/212#issuecomment-122345856"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>