==5617== Thread 22: ==5617== Invalid write of size 1 ==5617== at 0x401E5B0: memset (mc_replace_strmem.c:490) ==5617== by 0x5296D2C: InitMP3 (in /usr/lib/asterisk/modules/format_mp3.so) ==5617== by 0x5297523: (within /usr/lib/asterisk/modules/format_mp3.so) ==5617== by 0x80A1A5B: fn_wrapper (file.c:315) ==5617== by 0x80A38EA: ast_filehelper (file.c:334) ==5617== by 0x80A4A09: ast_openstream_full (file.c:569) ==5617== by 0x82B4807: moh_files_generator (res_musiconhold.c:253) ==5617== by 0x808925E: ast_read_generator_actions (channel.c:2164) ==5617== by 0x808B787: __ast_read (channel.c:2535) ==5617== by 0x808CC9E: ast_waitfordigit_full (channel.c:2571) ==5617== by 0x808D009: ast_waitfordigit (channel.c:2057) ==5617== by 0x8156456: queue_exec (app_queue.c:2836) ==5617== Address 0x54 is not stack'd, malloc'd or (recently) free'd ==5617== ==5617== Process terminating with default action of signal 11 (SIGSEGV) ==5617== Access not within mapped region at address 0x54 ==5617== at 0x401E5B0: memset (mc_replace_strmem.c:490) ==5617== by 0x5296D2C: InitMP3 (in /usr/lib/asterisk/modules/format_mp3.so) ==5617== by 0x5297523: (within /usr/lib/asterisk/modules/format_mp3.so) ==5617== by 0x80A1A5B: fn_wrapper (file.c:315) ==5617== by 0x80A38EA: ast_filehelper (file.c:334) ==5617== by 0x80A4A09: ast_openstream_full (file.c:569) ==5617== by 0x82B4807: moh_files_generator (res_musiconhold.c:253) ==5617== by 0x808925E: ast_read_generator_actions (channel.c:2164) ==5617== by 0x808B787: __ast_read (channel.c:2535) ==5617== by 0x808CC9E: ast_waitfordigit_full (channel.c:2571) ==5617== by 0x808D009: ast_waitfordigit (channel.c:2057) ==5617== by 0x8156456: queue_exec (app_queue.c:2836) ==5617== ==5617== ERROR SUMMARY: 17011 errors from 46 contexts (suppressed: 51 from 1) ==5617== malloc/free: in use at exit: 780,644 bytes in 2,478 blocks. ==5617== malloc/free: 12,561 allocs, 10,083 frees, 6,669,605 bytes allocated. ==5617== For counts of detected errors, rerun with: -v ==5617== searching for pointers to 2,478 not-freed blocks. ==5617== checked 7,822,896 bytes. ==5617== ==5617== Thread 1: ==5617== ==5617== 156 (36 direct, 120 indirect) bytes in 1 blocks are definitely lost in loss record 43 of 136 ==5617== at 0x401D4B0: malloc (vg_replace_malloc.c:149) ==5617== by 0x4321949: (within /lib/tls/i686/cmov/libc-2.3.6.so) ==5617== by 0x4322036: __nss_database_lookup (in /lib/tls/i686/cmov/libc-2.3.6.so) ==5617== by 0x4625149: ??? ==5617== by 0x462628C: ??? ==5617== by 0x42D19D4: getpwuid_r (in /lib/tls/i686/cmov/libc-2.3.6.so) ==5617== by 0x42D13D9: getpwuid (in /lib/tls/i686/cmov/libc-2.3.6.so) ==5617== by 0x410750C: (within /usr/lib/libodbc.so.1.0.0) ==5617== by 0x4104A68: (within /usr/lib/libodbc.so.1.0.0) ==5617== by 0x40F4E69: (within /usr/lib/libodbc.so.1.0.0) ==5617== by 0x40C4DE4: SQLConnect (in /usr/lib/libodbc.so.1.0.0) ==5617== by 0x82B78A9: odbc_obj_connect (res_odbc.c:511) ==5617== ==5617== ==5617== 84 bytes in 3 blocks are definitely lost in loss record 52 of 136 ==5617== at 0x401D4B0: malloc (vg_replace_malloc.c:149) ==5617== by 0x40AC77D: (within /lib/tls/i686/cmov/libresolv-2.3.6.so) ==5617== by 0x40AB23B: __libc_res_nquery (in /lib/tls/i686/cmov/libresolv-2.3.6.so) ==5617== by 0x40AB4DF: (within /lib/tls/i686/cmov/libresolv-2.3.6.so) ==5617== by 0x40AB71E: __libc_res_nsearch (in /lib/tls/i686/cmov/libresolv-2.3.6.so) ==5617== by 0x40ABA59: __res_nsearch (in /lib/tls/i686/cmov/libresolv-2.3.6.so) ==5617== by 0x809BE04: ast_search_dns (dns.c:259) ==5617== by 0x80F3664: ast_get_srv (srv.c:129) ==5617== by 0x81EFA2D: create_addr (chan_sip.c:2852) ==5617== by 0x81F115A: transmit_register (chan_sip.c:7394) ==5617== by 0x81F34D0: sip_reregister (chan_sip.c:7309) ==5617== by 0x80F289B: ast_sched_runq (sched.c:359) ==5617== ==5617== ==5617== 204 bytes in 3 blocks are definitely lost in loss record 63 of 136 ==5617== at 0x401C7EF: calloc (vg_replace_malloc.c:279) ==5617== by 0x400E188: (within /lib/ld-2.3.6.so) ==5617== by 0x400E24B: _dl_allocate_tls (in /lib/ld-2.3.6.so) ==5617== by 0x403081F: pthread_create@@GLIBC_2.1 (in /lib/tls/i686/cmov/libpthread-2.3.6.so) ==5617== by 0x80FF62C: ast_pthread_create_stack (utils.c:857) ==5617== by 0x8293586: load_module (pbx_spool.c:499) ==5617== by 0x80B119C: load_resource (loader.c:660) ==5617== by 0x80B18D8: load_modules (loader.c:854) ==5617== by 0x80746F8: main (asterisk.c:2926) ==5617== ==5617== ==5617== 492 bytes in 3 blocks are possibly lost in loss record 83 of 136 ==5617== at 0x401C7EF: calloc (vg_replace_malloc.c:279) ==5617== by 0x8075AF3: ao2_alloc (utils.h:359) ==5617== by 0x8075BC5: ao2_container_alloc (astobj2.c:301) ==5617== by 0x814A59D: init_queue (app_queue.c:726) ==5617== by 0x81509B6: reload_queues (app_queue.c:3919) ==5617== by 0x81510D0: load_module (app_queue.c:4632) ==5617== by 0x80B119C: load_resource (loader.c:660) ==5617== by 0x80B18D8: load_modules (loader.c:854) ==5617== by 0x80746F8: main (asterisk.c:2926) ==5617== ==5617== ==5617== 1,360 bytes in 20 blocks are possibly lost in loss record 96 of 136 ==5617== at 0x401C7EF: calloc (vg_replace_malloc.c:279) ==5617== by 0x400E188: (within /lib/ld-2.3.6.so) ==5617== by 0x400E24B: _dl_allocate_tls (in /lib/ld-2.3.6.so) ==5617== by 0x403081F: pthread_create@@GLIBC_2.1 (in /lib/tls/i686/cmov/libpthread-2.3.6.so) ==5617== by 0x80FF62C: ast_pthread_create_stack (utils.c:857) ==5617== by 0x80FF7B0: test_for_thread_safety (utils.c:272) ==5617== by 0x8074386: main (asterisk.c:2830) ==5617== ==5617== LEAK SUMMARY: ==5617== definitely lost: 324 bytes in 7 blocks. ==5617== indirectly lost: 120 bytes in 10 blocks. ==5617== possibly lost: 1,852 bytes in 23 blocks. ==5617== still reachable: 778,348 bytes in 2,438 blocks. ==5617== suppressed: 0 bytes in 0 blocks. ==5617== Reachable blocks (those to which a pointer was found) are not shown. ==5617== To see them, rerun with: --leak-check=full --show-reachable=yes