==22070== Memcheck, a memory error detector ==22070== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. ==22070== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info ==22070== Command: asterisk -vvvvcg ==22070== ==22070== Syscall param ioctl(generic) points to uninitialised byte(s) ==22070== at 0x7E1FC87: ioctl (in /lib64/libc-2.25.so) ==22070== by 0x2042E31E: mkintf (chan_dahdi.c:12331) ==22070== by 0x20431DBD: build_channels.isra.69 (chan_dahdi.c:17706) ==22070== by 0x2043234E: process_dahdi (chan_dahdi.c:17916) ==22070== by 0x2043757A: setup_dahdi_int (chan_dahdi.c:19503) ==22070== by 0x20437F91: setup_dahdi (chan_dahdi.c:19650) ==22070== by 0x2044CBBC: load_module (chan_dahdi.c:19734) ==22070== by 0x24977F: start_resource.part.10 (loader.c:1713) ==22070== by 0x249EB8: start_resource (loader.c:1687) ==22070== by 0x249EB8: start_resource_attempt (loader.c:1889) ==22070== by 0x24DD8E: start_resource_list (loader.c:1986) ==22070== by 0x24DD8E: load_resource_list (loader.c:2168) ==22070== by 0x24DD8E: load_modules (loader.c:2391) ==22070== by 0x14E9A5: asterisk_daemon (asterisk.c:4160) ==22070== by 0x14E9A5: main (asterisk.c:3927) ==22070== Address 0xffeff0a94 is on thread 1's stack ==22070== in frame #1, created by mkintf (chan_dahdi.c:12096) ==22070== ==22070== Thread 51: ==22070== Syscall param ioctl(generic) points to uninitialised byte(s) ==22070== at 0x7E1FC87: ioctl (in /lib64/libc-2.25.so) ==22070== by 0x2041C336: dahdi_show_status.part.47 (chan_dahdi.c:15920) ==22070== by 0x1F885D: ast_cli_command_full (cli.c:2986) ==22070== by 0x399C63: action_command (manager.c:5318) ==22070== by 0x390F2C: process_message (manager.c:6684) ==22070== by 0x39713F: do_message (manager.c:6897) ==22070== by 0x39713F: session_do (manager.c:7002) ==22070== by 0x31ADD6: dummy_start (utils.c:1428) ==22070== by 0x735D83A: start_thread (in /lib64/libpthread-2.25.so) ==22070== by 0x7E2879E: clone (in /lib64/libc-2.25.so) ==22070== Address 0x2e197bd4 is on thread 51's stack ==22070== in frame #1, created by dahdi_show_status.part.47 (chan_dahdi.c:15890) ==22070== ==22070== Thread 7: ==22070== Syscall param ioctl(generic) points to uninitialised byte(s) ==22070== at 0x7E1FC87: ioctl (in /lib64/libc-2.25.so) ==22070== by 0x2042E31E: mkintf (chan_dahdi.c:12331) ==22070== by 0x20431EAB: build_channels.isra.69 (chan_dahdi.c:17706) ==22070== by 0x2043234E: process_dahdi (chan_dahdi.c:17916) ==22070== by 0x2043757A: setup_dahdi_int (chan_dahdi.c:19503) ==22070== by 0x20437F91: setup_dahdi (chan_dahdi.c:19650) ==22070== by 0x204384E5: dahdi_restart (chan_dahdi.c:15529) ==22070== by 0x20438803: action_dahdirestart (chan_dahdi.c:15564) ==22070== by 0x390F2C: process_message (manager.c:6684) ==22070== by 0x39713F: do_message (manager.c:6897) ==22070== by 0x39713F: session_do (manager.c:7002) ==22070== by 0x31ADD6: dummy_start (utils.c:1428) ==22070== by 0x735D83A: start_thread (in /lib64/libpthread-2.25.so) ==22070== Address 0xe33ac54 is on thread 7's stack ==22070== in frame #1, created by mkintf (chan_dahdi.c:12096) ==22070== ==22070== Warning: invalid file descriptor -1 in syscall close() ==22070== ==22070== HEAP SUMMARY: ==22070== in use at exit: 18,850,696 bytes in 9,680 blocks ==22070== total heap usage: 6,076,440 allocs, 6,066,760 frees, 1,227,445,246 bytes allocated ==22070== ==22070== Thread 1: ==22070== 36 bytes in 1 blocks are possibly lost in loss record 223 of 415 ==22070== at 0x4C2AF05: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==22070== by 0x7151BE7: cap_init (in /lib64/libcap.so.2.24) ==22070== by 0x7152464: cap_from_text (in /lib64/libcap.so.2.24) ==22070== by 0x14DEE3: main (asterisk.c:3924) ==22070== ==22070== 36 bytes in 1 blocks are possibly lost in loss record 224 of 415 ==22070== at 0x4C2AF05: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==22070== by 0x7151BE7: cap_init (in /lib64/libcap.so.2.24) ==22070== by 0x7152464: cap_from_text (in /lib64/libcap.so.2.24) ==22070== by 0x16A1FD: app_init (app.c:3132) ==22070== by 0x14E86D: asterisk_daemon (asterisk.c:4134) ==22070== by 0x14E86D: main (asterisk.c:3927) ==22070== ==22070== 48 bytes in 1 blocks are definitely lost in loss record 232 of 415 ==22070== at 0x4C2AF05: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==22070== by 0x77A5E59: wcsdup (in /lib64/libedit.so.0.0.47) ==22070== by 0x77AD47B: el_set (in /lib64/libedit.so.0.0.47) ==22070== by 0x173CB9: ast_el_initialize (asterisk.c:3053) ==22070== by 0x14F5BE: asterisk_daemon (asterisk.c:4052) ==22070== by 0x14F5BE: main (asterisk.c:3927) ==22070== ==22070== 72 bytes in 1 blocks are definitely lost in loss record 240 of 415 ==22070== at 0x4C2AF05: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==22070== by 0x77A5E59: wcsdup (in /lib64/libedit.so.0.0.47) ==22070== by 0x77AD46F: el_set (in /lib64/libedit.so.0.0.47) ==22070== by 0x173CB9: ast_el_initialize (asterisk.c:3053) ==22070== by 0x14F5BE: asterisk_daemon (asterisk.c:4052) ==22070== by 0x14F5BE: main (asterisk.c:3927) ==22070== ==22070== 198 bytes in 3 blocks are definitely lost in loss record 274 of 415 ==22070== at 0x4C2AF05: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==22070== by 0x50DA34B: xmlBufCreateSize (in /usr/lib64/libxml2.so.2.9.6) ==22070== by 0x508D1A7: xmlNodeGetContent (in /usr/lib64/libxml2.so.2.9.6) ==22070== by 0x24CA4D: load_modules (loader.c:2451) ==22070== by 0x14E9A5: asterisk_daemon (asterisk.c:4160) ==22070== by 0x14E9A5: main (asterisk.c:3927) ==22070== ==22070== 272 bytes in 1 blocks are definitely lost in loss record 285 of 415 ==22070== at 0x4C2AF05: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==22070== by 0x17B73A: __ast_repl_malloc (astmm.c:1583) ==22070== by 0x17B73A: __ast_malloc (astmm.c:1664) ==22070== by 0x32E9C7: __ast_cc_config_params_init (ccss.c:683) ==22070== by 0x20431904: mkintf (chan_dahdi.c:12409) ==22070== by 0x20431DBD: build_channels.isra.69 (chan_dahdi.c:17706) ==22070== by 0x2043234E: process_dahdi (chan_dahdi.c:17916) ==22070== by 0x2043757A: setup_dahdi_int (chan_dahdi.c:19503) ==22070== by 0x20437F91: setup_dahdi (chan_dahdi.c:19650) ==22070== by 0x2044CBBC: load_module (chan_dahdi.c:19734) ==22070== by 0x24977F: start_resource.part.10 (loader.c:1713) ==22070== by 0x249EB8: start_resource (loader.c:1687) ==22070== by 0x249EB8: start_resource_attempt (loader.c:1889) ==22070== by 0x24DD8E: start_resource_list (loader.c:1986) ==22070== by 0x24DD8E: load_resource_list (loader.c:2168) ==22070== by 0x24DD8E: load_modules (loader.c:2391) ==22070== ==22070== 304 bytes in 1 blocks are possibly lost in loss record 289 of 415 ==22070== at 0x4C2CDA5: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==22070== by 0x4011531: allocate_dtv (in /lib64/ld-2.25.so) ==22070== by 0x4011E5B: _dl_allocate_tls (in /lib64/ld-2.25.so) ==22070== by 0x735E298: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.25.so) ==22070== by 0x31DD7E: ast_pthread_create_stack (utils.c:1490) ==22070== by 0x31E01F: ast_pthread_create_detached_stack (utils.c:1510) ==22070== by 0x14E005: asterisk_daemon (asterisk.c:4019) ==22070== by 0x14E005: main (asterisk.c:3927) ==22070== ==22070== 304 bytes in 1 blocks are possibly lost in loss record 290 of 415 ==22070== at 0x4C2CDA5: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==22070== by 0x4011531: allocate_dtv (in /lib64/ld-2.25.so) ==22070== by 0x4011E5B: _dl_allocate_tls (in /lib64/ld-2.25.so) ==22070== by 0x735E298: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.25.so) ==22070== by 0x31DD7E: ast_pthread_create_stack (utils.c:1490) ==22070== by 0x1BC22216: restart_monitor (chan_phone.c:1181) ==22070== by 0x1BC2426B: load_module (chan_phone.c:1513) ==22070== by 0x24977F: start_resource.part.10 (loader.c:1713) ==22070== by 0x249EB8: start_resource (loader.c:1687) ==22070== by 0x249EB8: start_resource_attempt (loader.c:1889) ==22070== by 0x24DD8E: start_resource_list (loader.c:1986) ==22070== by 0x24DD8E: load_resource_list (loader.c:2168) ==22070== by 0x24DD8E: load_modules (loader.c:2391) ==22070== by 0x14E9A5: asterisk_daemon (asterisk.c:4160) ==22070== by 0x14E9A5: main (asterisk.c:3927) ==22070== ==22070== 304 bytes in 1 blocks are possibly lost in loss record 291 of 415 ==22070== at 0x4C2CDA5: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==22070== by 0x4011531: allocate_dtv (in /lib64/ld-2.25.so) ==22070== by 0x4011E5B: _dl_allocate_tls (in /lib64/ld-2.25.so) ==22070== by 0x735E298: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.25.so) ==22070== by 0x31DD7E: ast_pthread_create_stack (utils.c:1490) ==22070== by 0x31E01F: ast_pthread_create_detached_stack (utils.c:1510) ==22070== by 0x201FDF2B: load_module (pbx_spool.c:957) ==22070== by 0x24977F: start_resource.part.10 (loader.c:1713) ==22070== by 0x249EB8: start_resource (loader.c:1687) ==22070== by 0x249EB8: start_resource_attempt (loader.c:1889) ==22070== by 0x24DD8E: start_resource_list (loader.c:1986) ==22070== by 0x24DD8E: load_resource_list (loader.c:2168) ==22070== by 0x24DD8E: load_modules (loader.c:2391) ==22070== by 0x14E9A5: asterisk_daemon (asterisk.c:4160) ==22070== by 0x14E9A5: main (asterisk.c:3927) ==22070== ==22070== 304 bytes in 1 blocks are possibly lost in loss record 292 of 415 ==22070== at 0x4C2CDA5: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==22070== by 0x4011531: allocate_dtv (in /lib64/ld-2.25.so) ==22070== by 0x4011E5B: _dl_allocate_tls (in /lib64/ld-2.25.so) ==22070== by 0x735E298: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.25.so) ==22070== by 0x31DD7E: ast_pthread_create_stack (utils.c:1490) ==22070== by 0x31E01F: ast_pthread_create_detached_stack (utils.c:1510) ==22070== by 0x14EC88: asterisk_daemon (asterisk.c:4212) ==22070== by 0x14EC88: main (asterisk.c:3927) ==22070== ==22070== 544 bytes in 2 blocks are possibly lost in loss record 318 of 415 ==22070== at 0x4C2AF05: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==22070== by 0x17B73A: __ast_repl_malloc (astmm.c:1583) ==22070== by 0x17B73A: __ast_malloc (astmm.c:1664) ==22070== by 0x32E9C7: __ast_cc_config_params_init (ccss.c:683) ==22070== by 0x20431904: mkintf (chan_dahdi.c:12409) ==22070== by 0x20431EAB: build_channels.isra.69 (chan_dahdi.c:17706) ==22070== by 0x2043234E: process_dahdi (chan_dahdi.c:17916) ==22070== by 0x2043757A: setup_dahdi_int (chan_dahdi.c:19503) ==22070== by 0x20437F91: setup_dahdi (chan_dahdi.c:19650) ==22070== by 0x204384E5: dahdi_restart (chan_dahdi.c:15529) ==22070== by 0x20438803: action_dahdirestart (chan_dahdi.c:15564) ==22070== by 0x390F2C: process_message (manager.c:6684) ==22070== by 0x39713F: do_message (manager.c:6897) ==22070== by 0x39713F: session_do (manager.c:7002) ==22070== ==22070== 18,052 (11,904 direct, 6,148 indirect) bytes in 1 blocks are definitely lost in loss record 404 of 415 ==22070== at 0x4C2CDA5: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==22070== by 0x2090F7D8: pri_ctrl_new (pri.c:553) ==22070== by 0x2090FDFF: pri_new (pri.c:678) ==22070== by 0x2046ADC6: sig_pri_start_pri (sig_pri.c:9173) ==22070== by 0x204379CD: setup_dahdi_int (chan_dahdi.c:19585) ==22070== by 0x20437F91: setup_dahdi (chan_dahdi.c:19650) ==22070== by 0x2044CBBC: load_module (chan_dahdi.c:19734) ==22070== by 0x24977F: start_resource.part.10 (loader.c:1713) ==22070== by 0x249EB8: start_resource (loader.c:1687) ==22070== by 0x249EB8: start_resource_attempt (loader.c:1889) ==22070== by 0x24DD8E: start_resource_list (loader.c:1986) ==22070== by 0x24DD8E: load_resource_list (loader.c:2168) ==22070== by 0x24DD8E: load_modules (loader.c:2391) ==22070== by 0x14E9A5: asterisk_daemon (asterisk.c:4160) ==22070== by 0x14E9A5: main (asterisk.c:3927) ==22070== ==22070== 108,756 bytes in 53 blocks are possibly lost in loss record 406 of 415 ==22070== at 0x4C2CDA5: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==22070== by 0x2090F81C: pri_ctrl_new (pri.c:565) ==22070== by 0x2090FDFF: pri_new (pri.c:678) ==22070== by 0x2046ADC6: sig_pri_start_pri (sig_pri.c:9173) ==22070== by 0x204379CD: setup_dahdi_int (chan_dahdi.c:19585) ==22070== by 0x20437F91: setup_dahdi (chan_dahdi.c:19650) ==22070== by 0x204384E5: dahdi_restart (chan_dahdi.c:15529) ==22070== by 0x20438803: action_dahdirestart (chan_dahdi.c:15564) ==22070== by 0x390F2C: process_message (manager.c:6684) ==22070== by 0x39713F: do_message (manager.c:6897) ==22070== by 0x39713F: session_do (manager.c:7002) ==22070== by 0x31ADD6: dummy_start (utils.c:1428) ==22070== by 0x735D83A: start_thread (in /lib64/libpthread-2.25.so) ==22070== ==22070== 180,224 bytes in 44 blocks are possibly lost in loss record 407 of 415 ==22070== at 0x4C2CDA5: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==22070== by 0x209197F1: pri_schedule_grow (prisched.c:82) ==22070== by 0x209197F1: pri_schedule_event (prisched.c:140) ==22070== by 0x20914559: reschedule_t200 (q921.c:456) ==22070== by 0x20916049: q921_establish_data_link (q921.c:3133) ==22070== by 0x20918AEF: q921_start (q921.c:3169) ==22070== by 0x2090FB53: pri_ctrl_new (pri.c:639) ==22070== by 0x2090FDFF: pri_new (pri.c:678) ==22070== by 0x2046ADC6: sig_pri_start_pri (sig_pri.c:9173) ==22070== by 0x204379CD: setup_dahdi_int (chan_dahdi.c:19585) ==22070== by 0x20437F91: setup_dahdi (chan_dahdi.c:19650) ==22070== by 0x204384E5: dahdi_restart (chan_dahdi.c:15529) ==22070== by 0x20438803: action_dahdirestart (chan_dahdi.c:15564) ==22070== ==22070== 271,184 bytes in 997 blocks are definitely lost in loss record 408 of 415 ==22070== at 0x4C2AF05: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==22070== by 0x17B73A: __ast_repl_malloc (astmm.c:1583) ==22070== by 0x17B73A: __ast_malloc (astmm.c:1664) ==22070== by 0x32E9C7: __ast_cc_config_params_init (ccss.c:683) ==22070== by 0x20431904: mkintf (chan_dahdi.c:12409) ==22070== by 0x20431EAB: build_channels.isra.69 (chan_dahdi.c:17706) ==22070== by 0x2043234E: process_dahdi (chan_dahdi.c:17916) ==22070== by 0x2043757A: setup_dahdi_int (chan_dahdi.c:19503) ==22070== by 0x20437F91: setup_dahdi (chan_dahdi.c:19650) ==22070== by 0x204384E5: dahdi_restart (chan_dahdi.c:15529) ==22070== by 0x20438803: action_dahdirestart (chan_dahdi.c:15564) ==22070== by 0x390F2C: process_message (manager.c:6684) ==22070== by 0x39713F: do_message (manager.c:6897) ==22070== by 0x39713F: session_do (manager.c:7002) ==22070== ==22070== 535,680 bytes in 45 blocks are possibly lost in loss record 410 of 415 ==22070== at 0x4C2CDA5: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==22070== by 0x2090F7D8: pri_ctrl_new (pri.c:553) ==22070== by 0x2090FDFF: pri_new (pri.c:678) ==22070== by 0x2046ADC6: sig_pri_start_pri (sig_pri.c:9173) ==22070== by 0x204379CD: setup_dahdi_int (chan_dahdi.c:19585) ==22070== by 0x20437F91: setup_dahdi (chan_dahdi.c:19650) ==22070== by 0x204384E5: dahdi_restart (chan_dahdi.c:15529) ==22070== by 0x20438803: action_dahdirestart (chan_dahdi.c:15564) ==22070== by 0x390F2C: process_message (manager.c:6684) ==22070== by 0x39713F: do_message (manager.c:6897) ==22070== by 0x39713F: session_do (manager.c:7002) ==22070== by 0x31ADD6: dummy_start (utils.c:1428) ==22070== by 0x735D83A: start_thread (in /lib64/libpthread-2.25.so) ==22070== ==22070== 4,707,468 (3,106,944 direct, 1,600,524 indirect) bytes in 261 blocks are definitely lost in loss record 413 of 415 ==22070== at 0x4C2CDA5: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==22070== by 0x2090F7D8: pri_ctrl_new (pri.c:553) ==22070== by 0x2090FDFF: pri_new (pri.c:678) ==22070== by 0x2046ADC6: sig_pri_start_pri (sig_pri.c:9173) ==22070== by 0x204379CD: setup_dahdi_int (chan_dahdi.c:19585) ==22070== by 0x20437F91: setup_dahdi (chan_dahdi.c:19650) ==22070== by 0x204384E5: dahdi_restart (chan_dahdi.c:15529) ==22070== by 0x20438803: action_dahdirestart (chan_dahdi.c:15564) ==22070== by 0x390F2C: process_message (manager.c:6684) ==22070== by 0x39713F: do_message (manager.c:6897) ==22070== by 0x39713F: session_do (manager.c:7002) ==22070== by 0x31ADD6: dummy_start (utils.c:1428) ==22070== by 0x735D83A: start_thread (in /lib64/libpthread-2.25.so) ==22070== ==22070== 12,497,724 (2,838,528 direct, 9,659,196 indirect) bytes in 693 blocks are definitely lost in loss record 415 of 415 ==22070== at 0x4C2CDA5: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==22070== by 0x209197F1: pri_schedule_grow (prisched.c:82) ==22070== by 0x209197F1: pri_schedule_event (prisched.c:140) ==22070== by 0x20914559: reschedule_t200 (q921.c:456) ==22070== by 0x20916049: q921_establish_data_link (q921.c:3133) ==22070== by 0x20918AEF: q921_start (q921.c:3169) ==22070== by 0x2090FB53: pri_ctrl_new (pri.c:639) ==22070== by 0x2090FDFF: pri_new (pri.c:678) ==22070== by 0x2046ADC6: sig_pri_start_pri (sig_pri.c:9173) ==22070== by 0x204379CD: setup_dahdi_int (chan_dahdi.c:19585) ==22070== by 0x20437F91: setup_dahdi (chan_dahdi.c:19650) ==22070== by 0x204384E5: dahdi_restart (chan_dahdi.c:15529) ==22070== by 0x20438803: action_dahdirestart (chan_dahdi.c:15564) ==22070== ==22070== LEAK SUMMARY: ==22070== definitely lost: 6,229,150 bytes in 1,958 blocks ==22070== indirectly lost: 11,265,868 bytes in 1,902 blocks ==22070== possibly lost: 826,492 bytes in 150 blocks ==22070== still reachable: 529,186 bytes in 5,670 blocks ==22070== suppressed: 0 bytes in 0 blocks ==22070== Reachable blocks (those to which a pointer was found) are not shown. ==22070== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==22070== ==22070== For counts of detected and suppressed errors, rerun with: -v ==22070== Use --track-origins=yes to see where uninitialised values come from ==22070== ERROR SUMMARY: 33823 errors from 21 contexts (suppressed: 0 from 0) ==22070== could not unlink /tmp/vgdb-pipe-from-vgdb-to-22070-by-root-on-??? ==22070== could not unlink /tmp/vgdb-pipe-to-vgdb-from-22070-by-root-on-??? ==22070== could not unlink /tmp/vgdb-pipe-shared-mem-vgdb-22070-by-root-on-???