<p></p>
<h3>Description</h3>
<p>I want to be sure my customization does not produce memory leack.<br>
To get this work I want to use the ASAN project.</p>
<p>Could you add <code>mode=asan</code> build option that adds gcc <code> -fsanitize=address -static-libasan</code> options <code>-lasan</code> linker flags.</p>
<p>More info<br>
<a href="https://www.osc.edu/resources/getting_started/howto/howto_use_address_sanitizer" rel="nofollow">https://www.osc.edu/resources/getting_started/howto/howto_use_address_sanitizer</a></p>
<p>Maybe important.<br>
ASAN expects linked first</p>
<pre><code>[root@b276215a3a22 kamailio]# kamailio -DD -E
==13760==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
</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/2650">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZI6WXWUHYDENMNTZ5TTAUB7VANCNFSM4YESSEMQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZI4GKRIGIE3XU22QCTTAUB7VA5CNFSM4YESSEM2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ME3XKDQ.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/2650",
"url": "https://github.com/kamailio/kamailio/issues/2650",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>