==21945== Memcheck, a memory error detector ==21945== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al. ==21945== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info ==21945== Command: asterisk -vvvvcg ==21945== ==21945== Conditional jump or move depends on uninitialised value(s) ==21945== at 0x771B4E0: inflateReset2 (in /lib/x86_64-linux-gnu/libz.so.1.2.3.4) ==21945== by 0x771B5D8: inflateInit2_ (in /lib/x86_64-linux-gnu/libz.so.1.2.3.4) ==21945== by 0x7715323: ??? (in /lib/x86_64-linux-gnu/libz.so.1.2.3.4) ==21945== by 0x5454DA5: ??? (in /usr/lib/x86_64-linux-gnu/libxml2.so.2.7.8) ==21945== by 0x54554D1: __xmlParserInputBufferCreateFilename (in /usr/lib/x86_64-linux-gnu/libxml2.so.2.7.8) ==21945== by 0x542A2B1: xmlNewInputFromFile (in /usr/lib/x86_64-linux-gnu/libxml2.so.2.7.8) ==21945== by 0x543DE65: xmlCreateURLParserCtxt (in /usr/lib/x86_64-linux-gnu/libxml2.so.2.7.8) ==21945== by 0x5444269: xmlReadFile (in /usr/lib/x86_64-linux-gnu/libxml2.so.2.7.8) ==21945== by 0x5FA981: ast_xml_open (xml.c:73) ==21945== by 0x60164B: ast_xmldoc_load_documentation (xmldoc.c:2797) ==21945== by 0x45B014: main (asterisk.c:4330) ==21945== ==21945== Source and destination overlap in memcpy(0x7feffd688, 0x7feffd688, 16) ==21945== at 0x4C2CFA0: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==21945== by 0xE015BCF: pj_gethostip (in /usr/local/lib/libpj.so.2) ==21945== by 0x2560B44B: load_module (res_pjsip_multihomed.c:208) ==21945== by 0x536A22: start_resource (loader.c:975) ==21945== by 0x5374DC: load_resource_list (loader.c:1178) ==21945== by 0x537B55: load_modules (loader.c:1331) ==21945== by 0x45B832: main (asterisk.c:4544) ==21945== ==21945== Conditional jump or move depends on uninitialised value(s) ==21945== at 0xFD6549C: speex_decode_int (in /usr/local/lib/libspeex.so.2) ==21945== by 0x2A550C49: speextolin_framein (codec_speex.c:227) ==21945== by 0x5EBFFC: framein (translate.c:359) ==21945== by 0x5ECDC5: generate_computational_cost (translate.c:609) ==21945== by 0x5EE948: __ast_register_translator (translate.c:1110) ==21945== by 0x2A551F4E: load_module (codec_speex.c:556) ==21945== by 0x536A22: start_resource (loader.c:975) ==21945== by 0x5374DC: load_resource_list (loader.c:1178) ==21945== by 0x537B55: load_modules (loader.c:1331) ==21945== by 0x45B832: main (asterisk.c:4544) ==21945== ==21945== Conditional jump or move depends on uninitialised value(s) ==21945== at 0xFD654A1: speex_decode_int (in /usr/local/lib/libspeex.so.2) ==21945== by 0x2A550C49: speextolin_framein (codec_speex.c:227) ==21945== by 0x5EBFFC: framein (translate.c:359) ==21945== by 0x5ECDC5: generate_computational_cost (translate.c:609) ==21945== by 0x5EE948: __ast_register_translator (translate.c:1110) ==21945== by 0x2A551F4E: load_module (codec_speex.c:556) ==21945== by 0x536A22: start_resource (loader.c:975) ==21945== by 0x5374DC: load_resource_list (loader.c:1178) ==21945== by 0x537B55: load_modules (loader.c:1331) ==21945== by 0x45B832: main (asterisk.c:4544) ==21945== ==21945== Thread 25: ==21945== Invalid read of size 8 ==21945== at 0x137B5493: transport_read (string3.h:52) ==21945== by 0x11C212CA: sync_task (res_pjsip.c:2116) ==21945== by 0x5E2A55: ast_taskprocessor_execute (taskprocessor.c:766) ==21945== by 0x5EACEB: execute_tasks (threadpool.c:1152) ==21945== by 0x5E2A55: ast_taskprocessor_execute (taskprocessor.c:766) ==21945== by 0x5E951B: threadpool_execute (threadpool.c:351) ==21945== by 0x5EA9D1: worker_active (threadpool.c:1072) ==21945== by 0x5EA78D: worker_start (threadpool.c:992) ==21945== by 0x5F6E2A: dummy_start (utils.c:1193) ==21945== by 0x6ABDE99: start_thread (pthread_create.c:308) ==21945== by 0x512973C: clone (clone.S:112) ==21945== Address 0x91ff830 is 0 bytes after a block of size 576 alloc'd ==21945== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==21945== by 0x4C2B857: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==21945== by 0x5F3E55: _ast_realloc (utils.h:586) ==21945== by 0x115E6C3B: __ast_websocket_read (res_http_websocket.c:511) ==21945== by 0x137B5C53: websocket_cb (res_pjsip_transport_websocket.c:293) ==21945== by 0x115E8112: __ast_websocket_uri_cb (res_http_websocket.c:773) ==21945== by 0x529453: handle_uri (http.c:1443) ==21945== by 0x52A126: httpd_process_request (http.c:1800) ==21945== by 0x52A53F: httpd_helper_thread (http.c:1887) ==21945== by 0x5E4308: handle_tcptls_connection (tcptls.c:685) ==21945== by 0x5F6E2A: dummy_start (utils.c:1193) ==21945== by 0x6ABDE99: start_thread (pthread_create.c:308) ==21945== ==21945== Invalid read of size 8 ==21945== at 0xDDC9F2E: pjsip_fromto_hdr_clone (in /usr/local/lib/libpjsip.so.2) ==21945== by 0xDDD328B: pjsip_endpt_create_request_from_hdr (in /usr/local/lib/libpjsip.so.2) ==21945== by 0xDDE7B97: pjsip_dlg_create_request (in /usr/local/lib/libpjsip.so.2) ==21945== by 0xF8D48E8: pjsip_inv_invite (in /usr/local/lib/libpjsip-ua.so.2) ==21945== by 0xF6C7D85: ast_sip_session_create_invite (res_pjsip_session.c:1003) ==21945== by 0x1A60D214: call (chan_pjsip.c:1519) ==21945== by 0x5E2A55: ast_taskprocessor_execute (taskprocessor.c:766) ==21945== by 0x5EACEB: execute_tasks (threadpool.c:1152) ==21945== by 0x5E2A55: ast_taskprocessor_execute (taskprocessor.c:766) ==21945== by 0x5E951B: threadpool_execute (threadpool.c:351) ==21945== by 0x5EA9D1: worker_active (threadpool.c:1072) ==21945== by 0x5EA78D: worker_start (threadpool.c:992) ==21945== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==21945== ==21945== ==21945== Process terminating with default action of signal 11 (SIGSEGV): dumping core ==21945== Access not within mapped region at address 0x0 ==21945== at 0xDDC9F2E: pjsip_fromto_hdr_clone (in /usr/local/lib/libpjsip.so.2) ==21945== by 0xDDD328B: pjsip_endpt_create_request_from_hdr (in /usr/local/lib/libpjsip.so.2) ==21945== by 0xDDE7B97: pjsip_dlg_create_request (in /usr/local/lib/libpjsip.so.2) ==21945== by 0xF8D48E8: pjsip_inv_invite (in /usr/local/lib/libpjsip-ua.so.2) ==21945== by 0xF6C7D85: ast_sip_session_create_invite (res_pjsip_session.c:1003) ==21945== by 0x1A60D214: call (chan_pjsip.c:1519) ==21945== by 0x5E2A55: ast_taskprocessor_execute (taskprocessor.c:766) ==21945== by 0x5EACEB: execute_tasks (threadpool.c:1152) ==21945== by 0x5E2A55: ast_taskprocessor_execute (taskprocessor.c:766) ==21945== by 0x5E951B: threadpool_execute (threadpool.c:351) ==21945== by 0x5EA9D1: worker_active (threadpool.c:1072) ==21945== by 0x5EA78D: worker_start (threadpool.c:992) ==21945== If you believe this happened as a result of a stack ==21945== overflow in your program's main thread (unlikely but ==21945== possible), you can try to increase the size of the ==21945== main thread stack using the --main-stacksize= flag. ==21945== The main thread stack size used in this run was 8388608. ==21945== ==21945== HEAP SUMMARY: ==21945== in use at exit: 132,294,336 bytes in 177,414 blocks ==21945== total heap usage: 1,823,783 allocs, 1,646,369 frees, 487,685,066 bytes allocated ==21945== ==21945== LEAK SUMMARY: ==21945== definitely lost: 8,484 bytes in 5 blocks ==21945== indirectly lost: 2,734 bytes in 70 blocks ==21945== possibly lost: 21,502,354 bytes in 26,755 blocks ==21945== still reachable: 110,780,764 bytes in 150,584 blocks ==21945== suppressed: 0 bytes in 0 blocks ==21945== Rerun with --leak-check=full to see details of leaked memory ==21945== ==21945== For counts of detected and suppressed errors, rerun with: -v ==21945== Use --track-origins=yes to see where uninitialised values come from ==21945== ERROR SUMMARY: 48386 errors from 6 contexts (suppressed: 2 from 2)