[asterisk-bugs] [JIRA] (ASTERISK-26519) MemLeak: confbridge/conf_config_parser.c
Badalian Vyacheslav (JIRA)
noreply at issues.asterisk.org
Sat Oct 29 12:41:10 CDT 2016
[ https://issues.asterisk.org/jira/browse/ASTERISK-26519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Badalian Vyacheslav updated ASTERISK-26519:
-------------------------------------------
Description:
Asterisk git branch "13"
{code}
Direct leak of 4112 byte(s) in 1 object(s) allocated from:
#0 0x7f1c09773d50 in __interceptor_calloc (/usr/local/lib64/libasan.so.3+0xc1d50)
#1 0x7f1bc237ab7f in _ast_calloc /usr/src/asterisk/include/asterisk/utils.h:573
#2 0x7f1bc238191c in add_action_to_menu_entry confbridge/conf_config_parser.c:1106
#3 0x7f1bc2382340 in add_menu_entry confbridge/conf_config_parser.c:1245
#4 0x7f1bc238de10 in menu_option_handler confbridge/conf_config_parser.c:2051
#5 0x5c7bde in aco_process_var /usr/src/asterisk/main/config_options.c:737
#6 0x5c7daf in aco_process_category_options /usr/src/asterisk/main/config_options.c:750
#7 0x5c62b7 in process_category /usr/src/asterisk/main/config_options.c:520
#8 0x5c6756 in internal_process_ast_config /usr/src/asterisk/main/config_options.c:559
#9 0x5c7356 in aco_process_config /usr/src/asterisk/main/config_options.c:682
#10 0x7f1bc238ef26 in conf_load_config confbridge/conf_config_parser.c:2160
#11 0x7f1bc2376f81 in load_module /usr/src/asterisk/apps/app_confbridge.c:3927
#12 0x674ccc in start_resource /usr/src/asterisk/main/loader.c:1026
#13 0x676e24 in load_resource_list /usr/src/asterisk/main/loader.c:1290
#14 0x677dd3 in load_modules /usr/src/asterisk/main/loader.c:1451
#15 0x4944e5 in asterisk_daemon /usr/src/asterisk/main/asterisk.c:4615
#16 0x49382f in main /usr/src/asterisk/main/asterisk.c:4372
#17 0x7f1c06af2b44 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b44)
{code}
Here:
{code}
if (!(b_data->menu = menu_alloc("dialplan"))) {
{code}
But i don't understand logic and can't fix it
Found in tests
{code}
tests/apps/confbridge/confbridge_result
{code}
Found using my test toolkit
{code}
# mkdir /tmp/asterisk_asan
# docker run --rm -it -v /tmp/asterisk_asan:/tmp/asterisk_asan --name asterisk-asan-master slavon/docker-asterisk-testsute-asan:pjproject_2.5.5-testsute_master-asterisk_13
{code}
was:
{code}
Direct leak of 4112 byte(s) in 1 object(s) allocated from:
#0 0x7f1c09773d50 in __interceptor_calloc (/usr/local/lib64/libasan.so.3+0xc1d50)
#1 0x7f1bc237ab7f in _ast_calloc /usr/src/asterisk/include/asterisk/utils.h:573
#2 0x7f1bc238191c in add_action_to_menu_entry confbridge/conf_config_parser.c:1106
#3 0x7f1bc2382340 in add_menu_entry confbridge/conf_config_parser.c:1245
#4 0x7f1bc238de10 in menu_option_handler confbridge/conf_config_parser.c:2051
#5 0x5c7bde in aco_process_var /usr/src/asterisk/main/config_options.c:737
#6 0x5c7daf in aco_process_category_options /usr/src/asterisk/main/config_options.c:750
#7 0x5c62b7 in process_category /usr/src/asterisk/main/config_options.c:520
#8 0x5c6756 in internal_process_ast_config /usr/src/asterisk/main/config_options.c:559
#9 0x5c7356 in aco_process_config /usr/src/asterisk/main/config_options.c:682
#10 0x7f1bc238ef26 in conf_load_config confbridge/conf_config_parser.c:2160
#11 0x7f1bc2376f81 in load_module /usr/src/asterisk/apps/app_confbridge.c:3927
#12 0x674ccc in start_resource /usr/src/asterisk/main/loader.c:1026
#13 0x676e24 in load_resource_list /usr/src/asterisk/main/loader.c:1290
#14 0x677dd3 in load_modules /usr/src/asterisk/main/loader.c:1451
#15 0x4944e5 in asterisk_daemon /usr/src/asterisk/main/asterisk.c:4615
#16 0x49382f in main /usr/src/asterisk/main/asterisk.c:4372
#17 0x7f1c06af2b44 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b44)
{code}
Here:
{code}
if (!(b_data->menu = menu_alloc("dialplan"))) {
{code}
But i don't understand logic and can't fix it
Found in tests
{code}
tests/apps/confbridge/confbridge_result
{code}
Found using my test toolkit
{code}
# mkdir /tmp/asterisk_asan
# docker run --rm -it -v /tmp/asterisk_asan:/tmp/asterisk_asan --name asterisk-asan-master slavon/docker-asterisk-testsute-asan:pjproject_2.5.5-testsute_master-asterisk_13
{code}
> MemLeak: confbridge/conf_config_parser.c
> ----------------------------------------
>
> Key: ASTERISK-26519
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-26519
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Applications/app_confbridge
> Reporter: Badalian Vyacheslav
> Assignee: Unassigned
> Severity: Minor
>
> Asterisk git branch "13"
> {code}
> Direct leak of 4112 byte(s) in 1 object(s) allocated from:
> #0 0x7f1c09773d50 in __interceptor_calloc (/usr/local/lib64/libasan.so.3+0xc1d50)
> #1 0x7f1bc237ab7f in _ast_calloc /usr/src/asterisk/include/asterisk/utils.h:573
> #2 0x7f1bc238191c in add_action_to_menu_entry confbridge/conf_config_parser.c:1106
> #3 0x7f1bc2382340 in add_menu_entry confbridge/conf_config_parser.c:1245
> #4 0x7f1bc238de10 in menu_option_handler confbridge/conf_config_parser.c:2051
> #5 0x5c7bde in aco_process_var /usr/src/asterisk/main/config_options.c:737
> #6 0x5c7daf in aco_process_category_options /usr/src/asterisk/main/config_options.c:750
> #7 0x5c62b7 in process_category /usr/src/asterisk/main/config_options.c:520
> #8 0x5c6756 in internal_process_ast_config /usr/src/asterisk/main/config_options.c:559
> #9 0x5c7356 in aco_process_config /usr/src/asterisk/main/config_options.c:682
> #10 0x7f1bc238ef26 in conf_load_config confbridge/conf_config_parser.c:2160
> #11 0x7f1bc2376f81 in load_module /usr/src/asterisk/apps/app_confbridge.c:3927
> #12 0x674ccc in start_resource /usr/src/asterisk/main/loader.c:1026
> #13 0x676e24 in load_resource_list /usr/src/asterisk/main/loader.c:1290
> #14 0x677dd3 in load_modules /usr/src/asterisk/main/loader.c:1451
> #15 0x4944e5 in asterisk_daemon /usr/src/asterisk/main/asterisk.c:4615
> #16 0x49382f in main /usr/src/asterisk/main/asterisk.c:4372
> #17 0x7f1c06af2b44 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b44)
> {code}
> Here:
> {code}
> if (!(b_data->menu = menu_alloc("dialplan"))) {
> {code}
> But i don't understand logic and can't fix it
> Found in tests
> {code}
> tests/apps/confbridge/confbridge_result
> {code}
> Found using my test toolkit
> {code}
> # mkdir /tmp/asterisk_asan
> # docker run --rm -it -v /tmp/asterisk_asan:/tmp/asterisk_asan --name asterisk-asan-master slavon/docker-asterisk-testsute-asan:pjproject_2.5.5-testsute_master-asterisk_13
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list