[sr-dev] [kamailio/kamailio] add ASAN build options (#2650)

sergey-safarov notifications at github.com
Wed Feb 24 15:08:58 CET 2021


### Description

I want to be sure my customization does not produce memory leack.
To get this work I want to use the ASAN project.

Could you add `mode=asan` build option that adds gcc ` -fsanitize=address -static-libasan` options `-lasan` linker flags.

More info
https://www.osc.edu/resources/getting_started/howto/howto_use_address_sanitizer

Maybe important.
ASAN expects linked first
```
[root at 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.
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2650
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20210224/82a15e77/attachment.htm>


More information about the sr-dev mailing list