==32117== Memcheck, a memory error detector ==32117== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==32117== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info ==32117== Command: mtraceroute 8.8.8.8 -c mda ==32117== ==32117== Invalid read of size 8 ==32117== at 0x10ECB3: dst_create (dst.c:61) ==32117== by 0x109328: main (mt.c:278) ==32117== Address 0x10 is not stack'd, malloc'd or (recently) free'd ==32117== ==32117== ==32117== Process terminating with default action of signal 11 (SIGSEGV) ==32117== Access not within mapped region at address 0x10 ==32117== at 0x10ECB3: dst_create (dst.c:61) ==32117== by 0x109328: main (mt.c:278) ==32117== If you believe this happened as a result of a stack ==32117== overflow in your program's main thread (unlikely but ==32117== possible), you can try to increase the size of the ==32117== main thread stack using the --main-stacksize= flag. ==32117== The main thread stack size used in this run was 8388608. ==32117== ==32117== HEAP SUMMARY: ==32117== in use at exit: 3,034 bytes in 28 blocks ==32117== total heap usage: 57 allocs, 29 frees, 12,873 bytes allocated ==32117== ==32117== 4 bytes in 1 blocks are still reachable in loss record 1 of 28 ==32117== at 0x483774F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x10E8E3: addr_create (addr.c:59) ==32117== by 0x109EFA: route_lookup.isra.0 (route.c:92) ==32117== by 0x109FC3: route_create (route.c:109) ==32117== by 0x10955F: mt_get_route (mt.c:128) ==32117== by 0x10EC6F: dst_create (dst.c:41) ==32117== by 0x109328: main (mt.c:278) ==32117== ==32117== 4 bytes in 1 blocks are still reachable in loss record 2 of 28 ==32117== at 0x483774F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x10E8E3: addr_create (addr.c:59) ==32117== by 0x109FD0: route_create (route.c:113) ==32117== by 0x10955F: mt_get_route (mt.c:128) ==32117== by 0x10EC6F: dst_create (dst.c:41) ==32117== by 0x109328: main (mt.c:278) ==32117== ==32117== 4 bytes in 1 blocks are still reachable in loss record 3 of 28 ==32117== at 0x483774F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x10E8E3: addr_create (addr.c:59) ==32117== by 0x10EF2C: iface_ip_addr (iface.c:81) ==32117== by 0x10ECF9: dst_create (dst.c:54) ==32117== by 0x109328: main (mt.c:278) ==32117== ==32117== 4 bytes in 1 blocks are indirectly lost in loss record 4 of 28 ==32117== at 0x483774F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x10E9D1: addr_create_from_str (addr.c:77) ==32117== by 0x10ED35: dst_create_from_str (dst.c:73) ==32117== by 0x109328: main (mt.c:278) ==32117== ==32117== 6 bytes in 1 blocks are still reachable in loss record 5 of 28 ==32117== at 0x483774F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x10E8E3: addr_create (addr.c:59) ==32117== by 0x10EE1D: iface_hw_addr (iface.c:55) ==32117== by 0x109617: mt_get_interface (mt.c:162) ==32117== by 0x1096FC: mt_send (mt.c:52) ==32117== by 0x10C76D: neighbor4 (mt_nd.c:109) ==32117== by 0x10C76D: mt_nd (mt_nd.c:198) ==32117== by 0x1099F0: mt_get_neighbor (mt.c:194) ==32117== by 0x10EC8A: dst_create (dst.c:48) ==32117== by 0x109328: main (mt.c:278) ==32117== ==32117== 7 bytes in 1 blocks are still reachable in loss record 6 of 28 ==32117== at 0x483774F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x4B6F0A9: strdup (strdup.c:42) ==32117== by 0x48823EA: pcap_create (in /usr/lib/x86_64-linux-gnu/libpcap.so.1.8.1) ==32117== by 0x4882B04: pcap_open_live (in /usr/lib/x86_64-linux-gnu/libpcap.so.1.8.1) ==32117== by 0x10964D: interface_pcap_open (mt.c:136) ==32117== by 0x10964D: mt_get_interface (mt.c:166) ==32117== by 0x1096FC: mt_send (mt.c:52) ==32117== by 0x10C76D: neighbor4 (mt_nd.c:109) ==32117== by 0x10C76D: mt_nd (mt_nd.c:198) ==32117== by 0x1099F0: mt_get_neighbor (mt.c:194) ==32117== by 0x10EC8A: dst_create (dst.c:48) ==32117== by 0x109328: main (mt.c:278) ==32117== ==32117== 7 bytes in 1 blocks are still reachable in loss record 7 of 28 ==32117== at 0x483774F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x4B6F0A9: strdup (strdup.c:42) ==32117== by 0x487BF7E: ??? (in /usr/lib/x86_64-linux-gnu/libpcap.so.1.8.1) ==32117== by 0x488221C: pcap_activate (in /usr/lib/x86_64-linux-gnu/libpcap.so.1.8.1) ==32117== by 0x4882B4B: pcap_open_live (in /usr/lib/x86_64-linux-gnu/libpcap.so.1.8.1) ==32117== by 0x10964D: interface_pcap_open (mt.c:136) ==32117== by 0x10964D: mt_get_interface (mt.c:166) ==32117== by 0x1096FC: mt_send (mt.c:52) ==32117== by 0x10C76D: neighbor4 (mt_nd.c:109) ==32117== by 0x10C76D: mt_nd (mt_nd.c:198) ==32117== by 0x1099F0: mt_get_neighbor (mt.c:194) ==32117== by 0x10EC8A: dst_create (dst.c:48) ==32117== by 0x109328: main (mt.c:278) ==32117== ==32117== 8 bytes in 1 blocks are still reachable in loss record 8 of 28 ==32117== at 0x483774F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x487DBF4: ??? (in /usr/lib/x86_64-linux-gnu/libpcap.so.1.8.1) ==32117== by 0x488246A: pcap_create (in /usr/lib/x86_64-linux-gnu/libpcap.so.1.8.1) ==32117== by 0x4882B04: pcap_open_live (in /usr/lib/x86_64-linux-gnu/libpcap.so.1.8.1) ==32117== by 0x10964D: interface_pcap_open (mt.c:136) ==32117== by 0x10964D: mt_get_interface (mt.c:166) ==32117== by 0x1096FC: mt_send (mt.c:52) ==32117== by 0x10C76D: neighbor4 (mt_nd.c:109) ==32117== by 0x10C76D: mt_nd (mt_nd.c:198) ==32117== by 0x1099F0: mt_get_neighbor (mt.c:194) ==32117== by 0x10EC8A: dst_create (dst.c:48) ==32117== by 0x109328: main (mt.c:278) ==32117== ==32117== 16 bytes in 1 blocks are still reachable in loss record 9 of 28 ==32117== at 0x483774F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x10E894: addr_create_no_copy (addr.c:47) ==32117== by 0x10E903: addr_create (addr.c:63) ==32117== by 0x109EFA: route_lookup.isra.0 (route.c:92) ==32117== by 0x109FC3: route_create (route.c:109) ==32117== by 0x10955F: mt_get_route (mt.c:128) ==32117== by 0x10EC6F: dst_create (dst.c:41) ==32117== by 0x109328: main (mt.c:278) ==32117== ==32117== 16 bytes in 1 blocks are still reachable in loss record 10 of 28 ==32117== at 0x483774F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x10E894: addr_create_no_copy (addr.c:47) ==32117== by 0x10E903: addr_create (addr.c:63) ==32117== by 0x109FD0: route_create (route.c:113) ==32117== by 0x10955F: mt_get_route (mt.c:128) ==32117== by 0x10EC6F: dst_create (dst.c:41) ==32117== by 0x109328: main (mt.c:278) ==32117== ==32117== 16 bytes in 1 blocks are still reachable in loss record 11 of 28 ==32117== at 0x483774F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x10E894: addr_create_no_copy (addr.c:47) ==32117== by 0x10E903: addr_create (addr.c:63) ==32117== by 0x10EE1D: iface_hw_addr (iface.c:55) ==32117== by 0x109617: mt_get_interface (mt.c:162) ==32117== by 0x1096FC: mt_send (mt.c:52) ==32117== by 0x10C76D: neighbor4 (mt_nd.c:109) ==32117== by 0x10C76D: mt_nd (mt_nd.c:198) ==32117== by 0x1099F0: mt_get_neighbor (mt.c:194) ==32117== by 0x10EC8A: dst_create (dst.c:48) ==32117== by 0x109328: main (mt.c:278) ==32117== ==32117== 16 bytes in 1 blocks are still reachable in loss record 12 of 28 ==32117== at 0x4839775: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x109BC6: link_open (link.c:39) ==32117== by 0x109622: mt_get_interface (mt.c:163) ==32117== by 0x1096FC: mt_send (mt.c:52) ==32117== by 0x10C76D: neighbor4 (mt_nd.c:109) ==32117== by 0x10C76D: mt_nd (mt_nd.c:198) ==32117== by 0x1099F0: mt_get_neighbor (mt.c:194) ==32117== by 0x10EC8A: dst_create (dst.c:48) ==32117== by 0x109328: main (mt.c:278) ==32117== ==32117== 16 bytes in 1 blocks are still reachable in loss record 13 of 28 ==32117== at 0x483774F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x10E894: addr_create_no_copy (addr.c:47) ==32117== by 0x10E903: addr_create (addr.c:63) ==32117== by 0x10EF2C: iface_ip_addr (iface.c:81) ==32117== by 0x10ECF9: dst_create (dst.c:54) ==32117== by 0x109328: main (mt.c:278) ==32117== ==32117== 20 (16 direct, 4 indirect) bytes in 1 blocks are definitely lost in loss record 14 of 28 ==32117== at 0x483774F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x10E894: addr_create_no_copy (addr.c:47) ==32117== by 0x10E9B3: addr_create_from_str (addr.c:92) ==32117== by 0x10ED35: dst_create_from_str (dst.c:73) ==32117== by 0x109328: main (mt.c:278) ==32117== ==32117== 24 bytes in 1 blocks are still reachable in loss record 15 of 28 ==32117== at 0x483774F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x10EF4D: list_create (list.c:33) ==32117== by 0x1092D2: mt_create (mt.c:225) ==32117== by 0x1092D2: main (mt.c:276) ==32117== ==32117== 24 bytes in 1 blocks are still reachable in loss record 16 of 28 ==32117== at 0x483774F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x10EF4D: list_create (list.c:33) ==32117== by 0x1092DC: mt_create (mt.c:226) ==32117== by 0x1092DC: main (mt.c:276) ==32117== ==32117== 24 bytes in 1 blocks are still reachable in loss record 17 of 28 ==32117== at 0x483774F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x10EF4D: list_create (list.c:33) ==32117== by 0x1092E7: mt_create (mt.c:227) ==32117== by 0x1092E7: main (mt.c:276) ==32117== ==32117== 24 bytes in 1 blocks are still reachable in loss record 18 of 28 ==32117== at 0x4839775: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x109FA7: route_create (route.c:105) ==32117== by 0x10955F: mt_get_route (mt.c:128) ==32117== by 0x10EC6F: dst_create (dst.c:41) ==32117== by 0x109328: main (mt.c:278) ==32117== ==32117== 24 bytes in 1 blocks are still reachable in loss record 19 of 28 ==32117== at 0x483774F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x10EF85: list_insert (list.c:48) ==32117== by 0x109573: mt_get_route (mt.c:130) ==32117== by 0x10EC6F: dst_create (dst.c:41) ==32117== by 0x109328: main (mt.c:278) ==32117== ==32117== 24 bytes in 1 blocks are still reachable in loss record 20 of 28 ==32117== at 0x483774F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x10EF4D: list_create (list.c:33) ==32117== by 0x10962D: mt_get_interface (mt.c:164) ==32117== by 0x1096FC: mt_send (mt.c:52) ==32117== by 0x10C76D: neighbor4 (mt_nd.c:109) ==32117== by 0x10C76D: mt_nd (mt_nd.c:198) ==32117== by 0x1099F0: mt_get_neighbor (mt.c:194) ==32117== by 0x10EC8A: dst_create (dst.c:48) ==32117== by 0x109328: main (mt.c:278) ==32117== ==32117== 24 bytes in 1 blocks are still reachable in loss record 21 of 28 ==32117== at 0x483774F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x10EF85: list_insert (list.c:48) ==32117== by 0x109681: mt_get_interface (mt.c:168) ==32117== by 0x1096FC: mt_send (mt.c:52) ==32117== by 0x10C76D: neighbor4 (mt_nd.c:109) ==32117== by 0x10C76D: mt_nd (mt_nd.c:198) ==32117== by 0x1099F0: mt_get_neighbor (mt.c:194) ==32117== by 0x10EC8A: dst_create (dst.c:48) ==32117== by 0x109328: main (mt.c:278) ==32117== ==32117== 40 bytes in 1 blocks are still reachable in loss record 22 of 28 ==32117== at 0x4839775: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x10EC5C: dst_create (dst.c:37) ==32117== by 0x109328: main (mt.c:278) ==32117== ==32117== 56 bytes in 1 blocks are still reachable in loss record 23 of 28 ==32117== at 0x483774F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x1095DD: mt_get_interface (mt.c:157) ==32117== by 0x1096FC: mt_send (mt.c:52) ==32117== by 0x10C76D: neighbor4 (mt_nd.c:109) ==32117== by 0x10C76D: mt_nd (mt_nd.c:198) ==32117== by 0x1099F0: mt_get_neighbor (mt.c:194) ==32117== by 0x10EC8A: dst_create (dst.c:48) ==32117== by 0x109328: main (mt.c:278) ==32117== ==32117== 64 bytes in 1 blocks are still reachable in loss record 24 of 28 ==32117== at 0x483774F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x487D1BA: ??? (in /usr/lib/x86_64-linux-gnu/libpcap.so.1.8.1) ==32117== by 0x488221C: pcap_activate (in /usr/lib/x86_64-linux-gnu/libpcap.so.1.8.1) ==32117== by 0x4882B4B: pcap_open_live (in /usr/lib/x86_64-linux-gnu/libpcap.so.1.8.1) ==32117== by 0x10964D: interface_pcap_open (mt.c:136) ==32117== by 0x10964D: mt_get_interface (mt.c:166) ==32117== by 0x1096FC: mt_send (mt.c:52) ==32117== by 0x10C76D: neighbor4 (mt_nd.c:109) ==32117== by 0x10C76D: mt_nd (mt_nd.c:198) ==32117== by 0x1099F0: mt_get_neighbor (mt.c:194) ==32117== by 0x10EC8A: dst_create (dst.c:48) ==32117== by 0x109328: main (mt.c:278) ==32117== ==32117== 104 bytes in 1 blocks are still reachable in loss record 25 of 28 ==32117== at 0x4839775: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x1092C3: mt_create (mt.c:221) ==32117== by 0x1092C3: main (mt.c:276) ==32117== ==32117== 168 bytes in 1 blocks are still reachable in loss record 26 of 28 ==32117== at 0x483774F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x10AA0C: get_args (args.c:194) ==32117== by 0x109295: main (mt.c:273) ==32117== ==32117== 776 bytes in 1 blocks are still reachable in loss record 27 of 28 ==32117== at 0x4839775: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x48824FA: ??? (in /usr/lib/x86_64-linux-gnu/libpcap.so.1.8.1) ==32117== by 0x4882578: ??? (in /usr/lib/x86_64-linux-gnu/libpcap.so.1.8.1) ==32117== by 0x487DB9E: ??? (in /usr/lib/x86_64-linux-gnu/libpcap.so.1.8.1) ==32117== by 0x488246A: pcap_create (in /usr/lib/x86_64-linux-gnu/libpcap.so.1.8.1) ==32117== by 0x4882B04: pcap_open_live (in /usr/lib/x86_64-linux-gnu/libpcap.so.1.8.1) ==32117== by 0x10964D: interface_pcap_open (mt.c:136) ==32117== by 0x10964D: mt_get_interface (mt.c:166) ==32117== by 0x1096FC: mt_send (mt.c:52) ==32117== by 0x10C76D: neighbor4 (mt_nd.c:109) ==32117== by 0x10C76D: mt_nd (mt_nd.c:198) ==32117== by 0x1099F0: mt_get_neighbor (mt.c:194) ==32117== by 0x10EC8A: dst_create (dst.c:48) ==32117== by 0x109328: main (mt.c:278) ==32117== ==32117== 1,518 bytes in 1 blocks are still reachable in loss record 28 of 28 ==32117== at 0x483774F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32117== by 0x487C473: ??? (in /usr/lib/x86_64-linux-gnu/libpcap.so.1.8.1) ==32117== by 0x488221C: pcap_activate (in /usr/lib/x86_64-linux-gnu/libpcap.so.1.8.1) ==32117== by 0x4882B4B: pcap_open_live (in /usr/lib/x86_64-linux-gnu/libpcap.so.1.8.1) ==32117== by 0x10964D: interface_pcap_open (mt.c:136) ==32117== by 0x10964D: mt_get_interface (mt.c:166) ==32117== by 0x1096FC: mt_send (mt.c:52) ==32117== by 0x10C76D: neighbor4 (mt_nd.c:109) ==32117== by 0x10C76D: mt_nd (mt_nd.c:198) ==32117== by 0x1099F0: mt_get_neighbor (mt.c:194) ==32117== by 0x10EC8A: dst_create (dst.c:48) ==32117== by 0x109328: main (mt.c:278) ==32117== ==32117== LEAK SUMMARY: ==32117== definitely lost: 16 bytes in 1 blocks ==32117== indirectly lost: 4 bytes in 1 blocks ==32117== possibly lost: 0 bytes in 0 blocks ==32117== still reachable: 3,014 bytes in 26 blocks ==32117== suppressed: 0 bytes in 0 blocks ==32117== ==32117== For counts of detected and suppressed errors, rerun with: -v ==32117== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)