Summary: | ASTERISK-27704: Add cache_pools debug option to pjproject.conf | ||
Reporter: | Richard Mudgett (rmudgett) | Labels: | |
Date Opened: | 2018-02-27 19:14:11.000-0600 | Date Closed: | 2018-03-05 07:55:45.000-0600 |
Priority: | Major | Regression? | |
Status: | Closed/Complete | Components: | Resources/res_pjsip |
Versions: | 13.19.2 15.2.2 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | Attachments: | ||
Description: | The pjproject memory pool cache gets in the way of finding use after free errors of pool contents. Tools like valgrind and MALLOC_DEBUG don't know when a pool is released because the most important memory block gets put into the cache instead of being freed.
To disable the memory pool cache simply disable the {{cache_pools}} option in {{pjproject.conf}} and restart Asterisk. Sample pjproject.conf setting: {noformat} [startup] cache_pools=no {noformat} | ||
Comments: | By: Friendly Automation (friendly-automation) 2018-03-05 07:55:46.457-0600 Change 8286 merged by Jenkins2: pjproject: Add cache_pools debugging option. [https://gerrit.asterisk.org/8286|https://gerrit.asterisk.org/8286] By: Friendly Automation (friendly-automation) 2018-03-05 08:02:11.379-0600 Change 8287 merged by Jenkins2: pjproject: Add cache_pools debugging option. [https://gerrit.asterisk.org/8287|https://gerrit.asterisk.org/8287] By: Friendly Automation (friendly-automation) 2018-03-05 08:10:44.279-0600 Change 8288 merged by Jenkins2: pjproject: Add cache_pools debugging option. [https://gerrit.asterisk.org/8288|https://gerrit.asterisk.org/8288] |