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

Daniel-Constantin Mierla notifications at github.com
Mon Mar 1 13:33:51 CET 2021


@sergey-safarov - if kamailio is compiled with pkg memory, then external tools cannot detect its memory leaks in most of the cases. There are few places where kamailio is still using the system memory manager (iirc, rpc commands build the output in system memory). Otherwise kamailio allocates a big chunk of system memory at startup and that's it, at runtime the pkg allocator works inside that chunk. There is option to compile to use system memory manager instead pkg, but that's not the default.

Normally, you can pass compiler or linker extra cli parameters via:

```
CC_EXTRA_OPTS=...  LD_EXTRA_OPTS=... make ...
```

Of course, you can also make a new mode if you want to be persistent in the src/Makefile.defs -- in such case, just make a pull request.

If you feel there is more to discuss here, then reopen.

-- 
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#issuecomment-787914896
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20210301/5dd65275/attachment-0001.htm>


More information about the sr-dev mailing list