[asterisk-bugs] [JIRA] (ASTERISK-25724) Many memory leaks and few asan bugs

Corey Farrell (JIRA) noreply at issues.asterisk.org
Mon Jan 25 10:11:32 CST 2016


    [ https://issues.asterisk.org/jira/browse/ASTERISK-25724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=229170#comment-229170 ] 

Corey Farrell commented on ASTERISK-25724:
------------------------------------------

[~slavon]:
Thank you for the effort you've been making to check Asterisk memory management.  There are some modules that should be excluded from your tests or tested separately.
# ODBC and radius modules.  These modules produce leaks on every run of Asterisk, making it more work to review the logs for other leaks.
# PJSIP modules.  PJSIP has only been tested with REF_DEBUG, even then many tests still produce some AO2 reference leaks.  I would recommend addressing the reference leaks first, since they often carry indirect leaks with them.  Even then combining PJSIP test runs with other tests only makes it harder to find leaks outside PJSIP modules.

To work on PJSIP modules I recommend enabling REF_DEBUG through menuselect, then run the testsuite without ASAN or valgrind.  Any test with an Asterisk instance that produces reference leaks will store 'refs.txt' in that instances asterisk log folder.  Once REF_DEBUG stops reporting leaks, then ASAN/valgrind testing becomes more useful.

> Many memory leaks  and few asan bugs
> ------------------------------------
>
>                 Key: ASTERISK-25724
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25724
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>    Affects Versions: 13.7.0
>            Reporter: Badalian Vyacheslav
>         Attachments: asterisk_asan.zip
>
>
> I create testing sute for docker. 
> Its use asterisk testsute + asan. After run you will have many leaks errors in master branch.
> https://github.com/slavonnet/docker-asterisk-testsute-asan



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list