==27548== Memcheck, a memory error detector. ==27548== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al. ==27548== Using LibVEX rev 1878, a library for dynamic binary translation. ==27548== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP. ==27548== Using valgrind-3.4.0, a dynamic binary instrumentation framework. ==27548== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al. ==27548== For more details, rerun with: -v ==27548== ==27548== My PID = 27548, parent PID = 23031. Prog and args are: ==27548== asterisk ==27548== -vvvvcg ==27548== ==27548== Invalid read of size 1 ==27548== at 0x4013C1D: _dl_close (dl-close.c:717) ==27548== by 0x44F1C93: (within /lib/libdl-2.9.so) ==27548== by 0x400E4A5: _dl_catch_error (dl-error.c:178) ==27548== by 0x44F201B: (within /lib/libdl-2.9.so) ==27548== by 0x44F1CC9: dlclose (in /lib/libdl-2.9.so) ==27548== by 0x80FAEE7: load_dynamic_module (loader.c:401) ==27548== by 0x80FBE1D: load_resource (loader.c:663) ==27548== by 0x80FC82A: load_modules (loader.c:878) ==27548== by 0x8080D48: main (asterisk.c:3586) ==27548== Address 0x4b92408 is 512 bytes inside a block of size 652 free'd ==27548== at 0x4023B2A: free (vg_replace_malloc.c:323) ==27548== by 0x4013774: _dl_close_worker (dl-close.c:664) ==27548== by 0x4013C46: _dl_close (dl-close.c:730) ==27548== by 0x44F1C93: (within /lib/libdl-2.9.so) ==27548== by 0x400E4A5: _dl_catch_error (dl-error.c:178) ==27548== by 0x44F201B: (within /lib/libdl-2.9.so) ==27548== by 0x44F1CC9: dlclose (in /lib/libdl-2.9.so) ==27548== by 0x80FAEE7: load_dynamic_module (loader.c:401) ==27548== by 0x80FBE1D: load_resource (loader.c:663) ==27548== by 0x80FC82A: load_modules (loader.c:878) ==27548== by 0x8080D48: main (asterisk.c:3586) ==27548== ==27548== Invalid read of size 1 ==27548== at 0x4025438: strlen (mc_replace_strmem.c:243) ==27548== by 0x400E58B: _dl_signal_error (dl-error.c:87) ==27548== by 0x4013C72: _dl_close (dl-close.c:725) ==27548== by 0x44F1C93: (within /lib/libdl-2.9.so) ==27548== by 0x400E4A5: _dl_catch_error (dl-error.c:178) ==27548== by 0x44F201B: (within /lib/libdl-2.9.so) ==27548== by 0x44F1CC9: dlclose (in /lib/libdl-2.9.so) ==27548== by 0x80FAEE7: load_dynamic_module (loader.c:401) ==27548== by 0x80FBE1D: load_resource (loader.c:663) ==27548== by 0x80FC82A: load_modules (loader.c:878) ==27548== by 0x8080D48: main (asterisk.c:3586) ==27548== Address 0x4b921b0 is 0 bytes inside a block of size 40 free'd ==27548== at 0x4023B2A: free (vg_replace_malloc.c:323) ==27548== by 0x40136F0: _dl_close_worker (dl-close.c:636) ==27548== by 0x4013C46: _dl_close (dl-close.c:730) ==27548== by 0x44F1C93: (within /lib/libdl-2.9.so) ==27548== by 0x400E4A5: _dl_catch_error (dl-error.c:178) ==27548== by 0x44F201B: (within /lib/libdl-2.9.so) ==27548== by 0x44F1CC9: dlclose (in /lib/libdl-2.9.so) ==27548== by 0x80FAEE7: load_dynamic_module (loader.c:401) ==27548== by 0x80FBE1D: load_resource (loader.c:663) ==27548== by 0x80FC82A: load_modules (loader.c:878) ==27548== by 0x8080D48: main (asterisk.c:3586) ==27548== ==27548== Invalid read of size 1 ==27548== at 0x4025443: strlen (mc_replace_strmem.c:243) ==27548== by 0x400E58B: _dl_signal_error (dl-error.c:87) ==27548== by 0x4013C72: _dl_close (dl-close.c:725) ==27548== by 0x44F1C93: (within /lib/libdl-2.9.so) ==27548== by 0x400E4A5: _dl_catch_error (dl-error.c:178) ==27548== by 0x44F201B: (within /lib/libdl-2.9.so) ==27548== by 0x44F1CC9: dlclose (in /lib/libdl-2.9.so) ==27548== by 0x80FAEE7: load_dynamic_module (loader.c:401) ==27548== by 0x80FBE1D: load_resource (loader.c:663) ==27548== by 0x80FC82A: load_modules (loader.c:878) ==27548== by 0x8080D48: main (asterisk.c:3586) ==27548== Address 0x4b921b1 is 1 bytes inside a block of size 40 free'd ==27548== at 0x4023B2A: free (vg_replace_malloc.c:323) ==27548== by 0x40136F0: _dl_close_worker (dl-close.c:636) ==27548== by 0x4013C46: _dl_close (dl-close.c:730) ==27548== by 0x44F1C93: (within /lib/libdl-2.9.so) ==27548== by 0x400E4A5: _dl_catch_error (dl-error.c:178) ==27548== by 0x44F201B: (within /lib/libdl-2.9.so) ==27548== by 0x44F1CC9: dlclose (in /lib/libdl-2.9.so) ==27548== by 0x80FAEE7: load_dynamic_module (loader.c:401) ==27548== by 0x80FBE1D: load_resource (loader.c:663) ==27548== by 0x80FC82A: load_modules (loader.c:878) ==27548== by 0x8080D48: main (asterisk.c:3586) ==27548== ==27548== Invalid read of size 1 ==27548== at 0x401718E: memcpy (memcpy.S:75) ==27548== by 0x4013C72: _dl_close (dl-close.c:725) ==27548== by 0x44F1C93: (within /lib/libdl-2.9.so) ==27548== by 0x400E4A5: _dl_catch_error (dl-error.c:178) ==27548== by 0x44F201B: (within /lib/libdl-2.9.so) ==27548== by 0x44F1CC9: dlclose (in /lib/libdl-2.9.so) ==27548== by 0x80FAEE7: load_dynamic_module (loader.c:401) ==27548== by 0x80FBE1D: load_resource (loader.c:663) ==27548== by 0x80FC82A: load_modules (loader.c:878) ==27548== by 0x8080D48: main (asterisk.c:3586) ==27548== Address 0x4b921b0 is 0 bytes inside a block of size 40 free'd ==27548== at 0x4023B2A: free (vg_replace_malloc.c:323) ==27548== by 0x40136F0: _dl_close_worker (dl-close.c:636) ==27548== by 0x4013C46: _dl_close (dl-close.c:730) ==27548== by 0x44F1C93: (within /lib/libdl-2.9.so) ==27548== by 0x400E4A5: _dl_catch_error (dl-error.c:178) ==27548== by 0x44F201B: (within /lib/libdl-2.9.so) ==27548== by 0x44F1CC9: dlclose (in /lib/libdl-2.9.so) ==27548== by 0x80FAEE7: load_dynamic_module (loader.c:401) ==27548== by 0x80FBE1D: load_resource (loader.c:663) ==27548== by 0x80FC82A: load_modules (loader.c:878) ==27548== by 0x8080D48: main (asterisk.c:3586) ==27548== ==27548== Invalid read of size 1 ==27548== at 0x40171DC: memcpy (memcpy.S:118) ==27548== by 0x4013C72: _dl_close (dl-close.c:725) ==27548== by 0x44F1C93: (within /lib/libdl-2.9.so) ==27548== by 0x400E4A5: _dl_catch_error (dl-error.c:178) ==27548== by 0x44F201B: (within /lib/libdl-2.9.so) ==27548== by 0x44F1CC9: dlclose (in /lib/libdl-2.9.so) ==27548== by 0x80FAEE7: load_dynamic_module (loader.c:401) ==27548== by 0x80FBE1D: load_resource (loader.c:663) ==27548== by 0x80FC82A: load_modules (loader.c:878) ==27548== by 0x8080D48: main (asterisk.c:3586) ==27548== Address 0x4b921d1 is 33 bytes inside a block of size 40 free'd ==27548== at 0x4023B2A: free (vg_replace_malloc.c:323) ==27548== by 0x40136F0: _dl_close_worker (dl-close.c:636) ==27548== by 0x4013C46: _dl_close (dl-close.c:730) ==27548== by 0x44F1C93: (within /lib/libdl-2.9.so) ==27548== by 0x400E4A5: _dl_catch_error (dl-error.c:178) ==27548== by 0x44F201B: (within /lib/libdl-2.9.so) ==27548== by 0x44F1CC9: dlclose (in /lib/libdl-2.9.so) ==27548== by 0x80FAEE7: load_dynamic_module (loader.c:401) ==27548== by 0x80FBE1D: load_resource (loader.c:663) ==27548== by 0x80FC82A: load_modules (loader.c:878) ==27548== by 0x8080D48: main (asterisk.c:3586) ==27548== ==27548== Source and destination overlap in memcpy(0xBECD063C, 0xBECD06DC, 428) ==27548== at 0x40258F9: memcpy (mc_replace_strmem.c:402) ==27548== by 0x571184E: Decode (iLBC_decode.c:254) ==27548== by 0x57122F3: iLBC_decode (iLBC_decode.c:508) ==27548== by 0x5710E4F: ilbctolin_framein (codec_ilbc.c:108) ==27548== by 0x816FAE1: framein (translate.c:193) ==27548== by 0x8170EEC: calc_cost (translate.c:420) ==27548== by 0x817220B: __ast_register_translator (translate.c:672) ==27548== by 0x5711134: load_module (codec_ilbc.c:200) ==27548== by 0x80FBF5C: load_resource (loader.c:694) ==27548== by 0x80FC98C: load_modules (loader.c:898) ==27548== by 0x8080D48: main (asterisk.c:3586) ==27548== ==27548== Source and destination overlap in memcpy(0xBECD063C, 0xBECD06DC, 428) ==27548== at 0x40258F9: memcpy (mc_replace_strmem.c:402) ==27548== by 0x5711A05: Decode (iLBC_decode.c:302) ==27548== by 0x57122F3: iLBC_decode (iLBC_decode.c:508) ==27548== by 0x5710E4F: ilbctolin_framein (codec_ilbc.c:108) ==27548== by 0x816FAE1: framein (translate.c:193) ==27548== by 0x8170EEC: calc_cost (translate.c:420) ==27548== by 0x817220B: __ast_register_translator (translate.c:672) ==27548== by 0x5711134: load_module (codec_ilbc.c:200) ==27548== by 0x80FBF5C: load_resource (loader.c:694) ==27548== by 0x80FC98C: load_modules (loader.c:898) ==27548== by 0x8080D48: main (asterisk.c:3586) ==27548== ==27548== Source and destination overlap in memcpy(0xBECD0E40, 0xBECD0EE0, 428) ==27548== at 0x40258F9: memcpy (mc_replace_strmem.c:402) ==27548== by 0x5713458: iLBC_encode (iLBC_encode.c:311) ==27548== by 0x571101D: lintoilbc_frameout (codec_ilbc.c:148) ==27548== by 0x8170F2B: calc_cost (translate.c:422) ==27548== by 0x817220B: __ast_register_translator (translate.c:672) ==27548== by 0x5711157: load_module (codec_ilbc.c:202) ==27548== by 0x80FBF5C: load_resource (loader.c:694) ==27548== by 0x80FC98C: load_modules (loader.c:898) ==27548== by 0x8080D48: main (asterisk.c:3586) ==27548== ==27548== Invalid read of size 4 ==27548== at 0x8184F34: el_gets (read.c:254) ==27548== by 0x8081036: main (asterisk.c:3642) ==27548== Address 0x4539dcc is 68 bytes inside a block of size 776 free'd ==27548== at 0x4023B2A: free (vg_replace_malloc.c:323) ==27548== by 0x8182D3D: el_end (el.c:126) ==27548== by 0x807A7FC: quit_handler (asterisk.c:1603) ==27548== by 0x807EF7E: monitor_sig_flags (asterisk.c:3020) ==27548== by 0x8179AF4: dummy_start (utils.c:968) ==27548== by 0x44FB314: start_thread (in /lib/i686/libpthread-2.9.so) ==27548== by 0x42EE25D: clone (in /lib/i686/libc-2.9.so) ==27548== ==27548== Invalid read of size 4 ==27548== at 0x8184F49: el_gets (read.c:258) ==27548== by 0x8081036: main (asterisk.c:3642) ==27548== Address 0x453a028 is 672 bytes inside a block of size 776 free'd ==27548== at 0x4023B2A: free (vg_replace_malloc.c:323) ==27548== by 0x8182D3D: el_end (el.c:126) ==27548== by 0x807A7FC: quit_handler (asterisk.c:1603) ==27548== by 0x807EF7E: monitor_sig_flags (asterisk.c:3020) ==27548== by 0x8179AF4: dummy_start (utils.c:968) ==27548== by 0x44FB314: start_thread (in /lib/i686/libpthread-2.9.so) ==27548== by 0x42EE25D: clone (in /lib/i686/libc-2.9.so) ==27548== ==27548== Invalid read of size 1 ==27548== at 0x8184F4F: el_gets (read.c:258) ==27548== by 0x8081036: main (asterisk.c:3642) ==27548== Address 0xa is not stack'd, malloc'd or (recently) free'd ==27548== ==27548== Process terminating with default action of signal 11 (SIGSEGV): dumping core ==27548== Access not within mapped region at address 0xA ==27548== at 0x8184F4F: el_gets (read.c:258) ==27548== by 0x8081036: main (asterisk.c:3642) ==27548== If you believe this happened as a result of a stack overflow in your ==27548== program's main thread (unlikely but possible), you can try to increase ==27548== the size of the main thread stack using the --main-stacksize= flag. ==27548== The main thread stack size used in this run was 8388608. ==27548== ==27548== ERROR SUMMARY: 4113 errors from 11 contexts (suppressed: 1141 from 3) ==27548== malloc/free: in use at exit: 2,456,881 bytes in 5,882 blocks. ==27548== malloc/free: 133,414 allocs, 127,532 frees, 26,974,433 bytes allocated. ==27548== For counts of detected errors, rerun with: -v ==27548== searching for pointers to 5,882 not-freed blocks. ==27548== checked 10,142,360 bytes. ==27548== ==27548== LEAK SUMMARY: ==27548== definitely lost: 1,583 bytes in 34 blocks. ==27548== possibly lost: 241,032 bytes in 259 blocks. ==27548== still reachable: 2,214,266 bytes in 5,589 blocks. ==27548== suppressed: 0 bytes in 0 blocks. ==27548== Rerun with --leak-check=full to see details of leaked memory.