<p></p>
<p dir="auto">I have compiled Kamailio with ASAN<br>
When I start Kamailio I this error</p>
<pre><code>core/re.c:390:2: runtime error: null pointer passed as argument 2, which is declared to never be null
</code></pre>
<p dir="auto"><a href="https://github.com/kamailio/kamailio/blob/master/src/core/re.c#L390">Link to code</a></p>
<pre><code>Breakpoint 1, replace_build (match=0xffffb0140fc0 "KZQ_CHECK_MEDIA_SERVER_INSERT", nmatch=1, pmatch=0xffffb01410a8, se=0xffffb00b9bc0, msg=0x332ebe0 <_faked_msg>, 
    rpl=0xffffb0141120) at core/re.c:390
390             RBUF_APPEND(dest, p, end-p);
(gdb) 
Continuing.

Breakpoint 1, replace_build (match=0xffffb0162a78 "auth_cache=>size=16;autoexpire=7200;REGISTRAR_S_WARM_CACHE", nmatch=1, pmatch=0xffffb0162b60, se=0xffffb0162730, 
    msg=0x332ebe0 <_faked_msg>, rpl=0xffffb0162bd8) at core/re.c:390
390             RBUF_APPEND(dest, p, end-p);
(gdb) p p
$4 = 0x0
(gdb) list
385                             default:
386                                     LM_CRIT("unknown type %d\n", se->replace[r].type);
387                                     /* ignore it */
388                     }
389             }
390             RBUF_APPEND(dest, p, end-p);
391             rpl->len = dest - rbuf;
392             if ((rpl->s = pkg_malloc(rpl->len)) == NULL) {
393                     PKG_MEM_ERROR;
394                     goto error;
(gdb) bt
#0  replace_build (match=0xffffb0162a78 "auth_cache=>size=16;autoexpire=7200;REGISTRAR_S_WARM_CACHE", nmatch=1, pmatch=0xffffb0162b60, se=0xffffb0162730, 
    msg=0x332ebe0 <_faked_msg>, rpl=0xffffb0162bd8) at core/re.c:390
#1  0x0000000000f91dc4 in subst_run (se=0xffffb0162730, input=0xffffb0162a78 "auth_cache=>size=16;autoexpire=7200;REGISTRAR_S_WARM_CACHE", msg=0x332ebe0 <_faked_msg>, 
    count=0x0) at core/re.c:460
#2  0x0000000000f926a0 in subst_str (input=0xffffb0162a78 "auth_cache=>size=16;autoexpire=7200;REGISTRAR_S_WARM_CACHE", msg=0x332ebe0 <_faked_msg>, se=0xffffb0162730, 
    count=0x0) at core/re.c:502
#3  0x00000000011e7d0c in pp_subst_run (data=0x338ba20 <s_buf>) at core/ppcfg.c:216
#4  0x00000000018b1f98 in yylex () at core/cfg.lex:1278
#5  0x0000000001900660 in yyparse () at core/cfg.tab.c:5160
#6  0x000000000048c4e4 in main (argc=11, argv=0xfffffffff3b8) at main.c:2487
</code></pre>

<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/2932">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZPDNSFE72AMRL2OENDUL2JLTANCNFSM5H6Z73GQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/ABO7UZLJ7KQHJD4ZSAFXJ3TUL2JLTA5CNFSM5H6Z73G2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4PV7IOAA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2932",
"url": "https://github.com/kamailio/kamailio/issues/2932",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>