[Home]

Summary:ASTERISK-25724: Many memory leaks and few asan bugs
Reporter:Badalian Vyacheslav (slavon)Labels:
Date Opened:2016-01-25 04:55:50.000-0600Date Closed:2016-10-30 13:42:05
Priority:MajorRegression?
Status:Closed/CompleteComponents:
Versions:13.7.0 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) asterisk_asan.zip
Description: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


Comments:By: Asterisk Team (asteriskteam) 2016-01-25 04:55:52.389-0600

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

By: Badalian Vyacheslav (slavon) 2016-01-25 05:01:32.778-0600

Exapmple output of docker run

By: Corey Farrell (coreyfarrell) 2016-01-25 10:11:23.019-0600

[~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.

By: Badalian Vyacheslav (slavon) 2016-02-09 19:25:18.630-0600

Many places i found with TSAN in ASTERISK-25765