==5574== Memcheck, a memory error detector ==5574== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. ==5574== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info ==5574== Command: asterisk -vvvvcg ==5574== ==5574== Syscall param ioctl(generic) points to uninitialised byte(s) ==5574== at 0x7396EC7: ioctl (syscall-template.S:81) ==5574== by 0x30730743: mkintf (chan_dahdi.c:12166) ==5574== by 0x30734036: build_channels.isra.74 (chan_dahdi.c:17415) ==5574== by 0x307345F0: process_dahdi (chan_dahdi.c:17625) ==5574== by 0x307395BA: setup_dahdi_int (chan_dahdi.c:19174) ==5574== by 0x30739FA9: setup_dahdi (chan_dahdi.c:19314) ==5574== by 0x3073A8EF: load_module (chan_dahdi.c:19555) ==5574== by 0x51A2D0: start_resource.part.8 (loader.c:980) ==5574== by 0x51AAF6: load_resource_list (loader.c:973) ==5574== by 0x51C61E: load_modules (loader.c:1331) ==5574== by 0x4332FC: main (asterisk.c:4555) ==5574== Address 0xffefefc34 is on thread 1's stack ==5574== ==5574== Source and destination overlap in memcpy(0xffeffddd8, 0xffeffddd8, 16) ==5574== at 0x4C2F71C: memcpy@@GLIBC_2.14 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==5574== by 0xDD8A8BA: pj_gethostip (in /usr/local/lib/libpj.so.2) ==5574== by 0x159006D9: load_module (res_pjsip_multihomed.c:217) ==5574== by 0x51A2D0: start_resource.part.8 (loader.c:980) ==5574== by 0x51AAF6: load_resource_list (loader.c:973) ==5574== by 0x51C61E: load_modules (loader.c:1331) ==5574== by 0x4332FC: main (asterisk.c:4555) ==5574== ==5574== Thread 6: ==5574== Invalid read of size 8 ==5574== at 0x11515264: pjsip_timer_process_resp (in /usr/local/lib/libpjsip-ua.so.2) ==5574== by 0x1150D097: handle_timer_response (in /usr/local/lib/libpjsip-ua.so.2) ==5574== by 0x1150D245: handle_uac_tsx_response (in /usr/local/lib/libpjsip-ua.so.2) ==5574== by 0x1150DB97: inv_on_state_confirmed (in /usr/local/lib/libpjsip-ua.so.2) ==5574== by 0x11509A56: mod_inv_on_tsx_state (in /usr/local/lib/libpjsip-ua.so.2) ==5574== by 0xDB5C48C: pjsip_dlg_on_tsx_state (in /usr/local/lib/libpjsip.so.2) ==5574== by 0xDB571E0: tsx_set_state (in /usr/local/lib/libpjsip.so.2) ==5574== by 0xDB5846E: tsx_on_state_proceeding_uac (in /usr/local/lib/libpjsip.so.2) ==5574== by 0xDB58CBD: tsx_on_state_calling (in /usr/local/lib/libpjsip.so.2) ==5574== by 0xDB59E7E: pjsip_tsx_recv_msg (in /usr/local/lib/libpjsip.so.2) ==5574== by 0xDB59F24: mod_tsx_layer_on_rx_response (in /usr/local/lib/libpjsip.so.2) ==5574== by 0xDB4594E: pjsip_endpt_process_rx_data (in /usr/local/lib/libpjsip.so.2) ==5574== Address 0x188 is not stack'd, malloc'd or (recently) free'd ==5574== ==5574== ==5574== Process terminating with default action of signal 11 (SIGSEGV): dumping core ==5574== Access not within mapped region at address 0x188 ==5574== at 0x11515264: pjsip_timer_process_resp (in /usr/local/lib/libpjsip-ua.so.2) ==5574== by 0x1150D097: handle_timer_response (in /usr/local/lib/libpjsip-ua.so.2) ==5574== by 0x1150D245: handle_uac_tsx_response (in /usr/local/lib/libpjsip-ua.so.2) ==5574== by 0x1150DB97: inv_on_state_confirmed (in /usr/local/lib/libpjsip-ua.so.2) ==5574== by 0x11509A56: mod_inv_on_tsx_state (in /usr/local/lib/libpjsip-ua.so.2) ==5574== by 0xDB5C48C: pjsip_dlg_on_tsx_state (in /usr/local/lib/libpjsip.so.2) ==5574== by 0xDB571E0: tsx_set_state (in /usr/local/lib/libpjsip.so.2) ==5574== by 0xDB5846E: tsx_on_state_proceeding_uac (in /usr/local/lib/libpjsip.so.2) ==5574== by 0xDB58CBD: tsx_on_state_calling (in /usr/local/lib/libpjsip.so.2) ==5574== by 0xDB59E7E: pjsip_tsx_recv_msg (in /usr/local/lib/libpjsip.so.2) ==5574== by 0xDB59F24: mod_tsx_layer_on_rx_response (in /usr/local/lib/libpjsip.so.2) ==5574== by 0xDB4594E: pjsip_endpt_process_rx_data (in /usr/local/lib/libpjsip.so.2) ==5574== If you believe this happened as a result of a stack ==5574== overflow in your program's main thread (unlikely but ==5574== possible), you can try to increase the size of the ==5574== main thread stack using the --main-stacksize= flag. ==5574== The main thread stack size used in this run was 8388608. ==5574== ==5574== HEAP SUMMARY: ==5574== in use at exit: 17,637,523 bytes in 149,455 blocks ==5574== total heap usage: 2,069,895 allocs, 1,920,440 frees, 790,454,468 bytes allocated ==5574== ==5574== LEAK SUMMARY: ==5574== definitely lost: 1,437 bytes in 32 blocks ==5574== indirectly lost: 65 bytes in 2 blocks ==5574== possibly lost: 4,982,828 bytes in 20,837 blocks ==5574== still reachable: 12,653,193 bytes in 128,584 blocks ==5574== suppressed: 0 bytes in 0 blocks ==5574== Rerun with --leak-check=full to see details of leaked memory ==5574== ==5574== For counts of detected and suppressed errors, rerun with: -v ==5574== Use --track-origins=yes to see where uninitialised values come from ==5574== ERROR SUMMARY: 32 errors from 3 contexts (suppressed: 0 from 0)