-
- Downloads
pjproject: Add cache_pools debugging option.
The pool cache gets in the way of finding use after free errors of memory pool contents. Tools like valgrind and MALLOC_DEBUG don't know when a pool is released because it gets put into the cache instead of being freed. * Added the "cache_pools" option to pjproject.conf. Disabling the option helps track down pool content mismanagement when using valgrind or MALLOC_DEBUG. The cache gets in the way of determining if the pool contents are used after free and who freed it. To disable the pool caching simply disable the cache_pools option in pjproject.conf and restart Asterisk. Sample pjproject.conf setting: [startup] cache_pools=no * Made current users of the caching pool factory initialization and destruction calls call common routines to create and destroy cached pools. ASTERISK-27704 Change-Id: I64d5befbaeed2532f93aa027a51eb52347d2b828
Showing
- CHANGES 11 additions, 0 deletionsCHANGES
- configs/samples/pjproject.conf.sample 7 additions, 0 deletionsconfigs/samples/pjproject.conf.sample
- include/asterisk/options.h 5 additions, 0 deletionsinclude/asterisk/options.h
- include/asterisk/res_pjproject.h 26 additions, 0 deletionsinclude/asterisk/res_pjproject.h
- main/asterisk.c 4 additions, 0 deletionsmain/asterisk.c
- res/res_pjproject.c 12 additions, 0 deletionsres/res_pjproject.c
- res/res_pjsip.c 2 additions, 2 deletionsres/res_pjsip.c
- res/res_pjsip/location.c 2 additions, 2 deletionsres/res_pjsip/location.c
- res/res_pjsip_history.c 3 additions, 2 deletionsres/res_pjsip_history.c
- res/res_rtp_asterisk.c 5 additions, 2 deletionsres/res_rtp_asterisk.c
- res/res_sdp_translator_pjmedia.c 8 additions, 6 deletionsres/res_sdp_translator_pjmedia.c
Loading
Please register or sign in to comment