summaryrefslogtreecommitdiffstats
path: root/misc/valgrind-2023-01-12.txt
diff options
context:
space:
mode:
Diffstat (limited to 'misc/valgrind-2023-01-12.txt')
-rw-r--r--misc/valgrind-2023-01-12.txt1495
1 files changed, 1495 insertions, 0 deletions
diff --git a/misc/valgrind-2023-01-12.txt b/misc/valgrind-2023-01-12.txt
new file mode 100644
index 0000000..56f3e4a
--- /dev/null
+++ b/misc/valgrind-2023-01-12.txt
@@ -0,0 +1,1495 @@
+==3307== Memcheck, a memory error detector
+==3307== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
+==3307== Using Valgrind-3.20.0-5147d671e4-20221024 and LibVEX; rerun with -h for copyright info
+==3307== Command: ./travnik configfile.ben
+==3307== Parent PID: 3305
+==3307==
+--3307--
+--3307-- Valgrind options:
+--3307-- --error-exitcode=59
+--3307-- --leak-check=full
+--3307-- --show-leak-kinds=all
+--3307-- --track-origins=yes
+--3307-- --verbose
+--3307-- --log-file=valgrind-out.txt
+--3307-- Contents of /proc/version:
+--3307-- Linux version 5.15.80-gentoo (root@livecd) (gcc (Gentoo 11.3.1_p20221209 p3) 11.3.1 20221209, GNU ld (Gentoo 2.39 p5) 2.39.0) #1 SMP Tue Jan 3 18:35:15 CET 2023
+--3307--
+--3307-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-sse3-ssse3-avx-avx2-bmi-f16c-rdrand
+--3307-- Page sizes: currently 4096, max supported 4096
+--3307-- Valgrind library directory: /usr/libexec/valgrind
+--3307-- Reading syms from /root/projects/travnik/travnik
+--3307-- Reading syms from /lib64/ld-linux-x86-64.so.2
+--3307-- Reading syms from /usr/libexec/valgrind/memcheck-amd64-linux
+--3307-- object doesn't have a dynamic symbol table
+--3307-- Scheduler: using generic scheduler lock implementation.
+--3307-- Reading suppressions file: /usr/libexec/valgrind/default.supp
+==3307== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-3307-by-root-on-???
+==3307== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-3307-by-root-on-???
+==3307== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-3307-by-root-on-???
+==3307==
+==3307== TO CONTROL THIS PROCESS USING vgdb (which you probably
+==3307== don't want to do, unless you know exactly what you're doing,
+==3307== or are doing some strange experiment):
+==3307== /usr/libexec/valgrind/../../bin/vgdb --pid=3307 ...command...
+==3307==
+==3307== TO DEBUG THIS PROCESS USING GDB: start GDB like this
+==3307== /path/to/gdb ./travnik
+==3307== and then give GDB the following command
+==3307== target remote | /usr/libexec/valgrind/../../bin/vgdb --pid=3307
+==3307== --pid is optional if only one valgrind process is running
+==3307==
+--3307-- REDIR: 0x40231b0 (ld-linux-x86-64.so.2:strlen) redirected to 0x580bbc62 (vgPlain_amd64_linux_REDIR_FOR_strlen)
+--3307-- REDIR: 0x4021980 (ld-linux-x86-64.so.2:index) redirected to 0x580bbc7c (vgPlain_amd64_linux_REDIR_FOR_index)
+--3307-- Reading syms from /usr/libexec/valgrind/vgpreload_core-amd64-linux.so
+--3307-- Reading syms from /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so
+==3307== WARNING: new redirection conflicts with existing -- ignoring it
+--3307-- old: 0x040231b0 (strlen ) R-> (0000.0) 0x580bbc62 vgPlain_amd64_linux_REDIR_FOR_strlen
+--3307-- new: 0x040231b0 (strlen ) R-> (2007.0) 0x048468e0 strlen
+--3307-- REDIR: 0x4021ba0 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4847800 (strcmp)
+--3307-- REDIR: 0x4020e10 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x484b1e0 (mempcpy)
+--3307-- Reading syms from /lib64/libresolv.so.2
+--3307-- Reading syms from /usr/lib64/libmd.so.0.0.5
+--3307-- object doesn't have a symbol table
+--3307-- Reading syms from /lib64/libc.so.6
+==3307== WARNING: new redirection conflicts with existing -- ignoring it
+--3307-- old: 0x04921a60 (memalign ) R-> (1011.0) 0x04845b90 memalign
+--3307-- new: 0x04921a60 (memalign ) R-> (1017.0) 0x04845b60 aligned_alloc
+==3307== WARNING: new redirection conflicts with existing -- ignoring it
+--3307-- old: 0x04921a60 (memalign ) R-> (1011.0) 0x04845b90 memalign
+--3307-- new: 0x04921a60 (memalign ) R-> (1017.0) 0x04845b30 aligned_alloc
+==3307== WARNING: new redirection conflicts with existing -- ignoring it
+--3307-- old: 0x04921a60 (memalign ) R-> (1011.0) 0x04845b90 memalign
+--3307-- new: 0x04921a60 (memalign ) R-> (1017.0) 0x04845b60 aligned_alloc
+==3307== WARNING: new redirection conflicts with existing -- ignoring it
+--3307-- old: 0x04921a60 (memalign ) R-> (1011.0) 0x04845b90 memalign
+--3307-- new: 0x04921a60 (memalign ) R-> (1017.0) 0x04845b30 aligned_alloc
+--3307-- REDIR: 0x4023350 (ld-linux-x86-64.so.2:strncmp) redirected to 0x4847070 (strncmp)
+--3307-- REDIR: 0x4927780 (libc.so.6:strnlen) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4927810 (libc.so.6:strpbrk) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4925c00 (libc.so.6:strcmp) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x493a520 (libc.so.6:wcsnlen) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4924d50 (libc.so.6:memset) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4938e70 (libc.so.6:wcslen) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4924380 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4938ca0 (libc.so.6:wcschr) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4925af0 (libc.so.6:index) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4927840 (libc.so.6:rindex) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4938d30 (libc.so.6:wcscmp) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4924f90 (libc.so.6:stpncpy) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x49392b0 (libc.so.6:wmemchr) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4927630 (libc.so.6:strncmp) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4925000 (libc.so.6:strcasecmp) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4926ba0 (libc.so.6:strcspn) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4938dc0 (libc.so.6:wcscpy) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4925a70 (libc.so.6:strcat) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4927530 (libc.so.6:strncasecmp_l) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4924290 (libc.so.6:bcmp) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4924cc0 (libc.so.6:memrchr) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4925b70 (libc.so.6:strchrnul) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4926b20 (libc.so.6:strcpy) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4925090 (libc.so.6:strcasecmp_l) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4927410 (libc.so.6:strlen) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x49276c0 (libc.so.6:strncpy) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4924f10 (libc.so.6:stpcpy) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4924aa0 (libc.so.6:memmove) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+==3307== Preferring higher priority redirection:
+--3307-- old: 0x049d4800 (__memcpy_avx_unalign) R-> (2018.0) 0x04848a10 __memcpy_avx_unaligned_erms
+--3307-- new: 0x049d4800 (__memcpy_avx_unalign) R-> (2018.1) 0x0484a270 memmove
+--3307-- REDIR: 0x4924210 (libc.so.6:memchr) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4927a20 (libc.so.6:strspn) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4924bb0 (libc.so.6:mempcpy) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x49274a0 (libc.so.6:strncasecmp) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4924e50 (libc.so.6:rawmemchr) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x49da8d0 (libc.so.6:__strrchr_avx2) redirected to 0x4846320 (rindex)
+--3307-- REDIR: 0x4921b30 (libc.so.6:calloc) redirected to 0x48454f0 (calloc)
+--3307-- REDIR: 0x49d3e00 (libc.so.6:__memchr_avx2) redirected to 0x4847880 (memchr)
+--3307-- REDIR: 0x4920dc0 (libc.so.6:malloc) redirected to 0x4840770 (malloc)
+--3307-- REDIR: 0x49d4800 (libc.so.6:__memcpy_avx_unaligned_erms) redirected to 0x484a270 (memmove)
+--3307-- REDIR: 0x49d9ca0 (libc.so.6:__strncpy_avx2) redirected to 0x4846a90 (strncpy)
+--3307-- REDIR: 0x4921360 (libc.so.6:free) redirected to 0x48430c0 (free)
+--3307-- REDIR: 0x49d7f80 (libc.so.6:__strlen_avx2) redirected to 0x48467c0 (strlen)
+--3307-- REDIR: 0x49d7260 (libc.so.6:__strchr_avx2) redirected to 0x48464a0 (index)
+--3307-- REDIR: 0x49d9650 (libc.so.6:__strncmp_avx2) redirected to 0x4846e90 (strncmp)
+--3307-- REDIR: 0x49d7bf0 (libc.so.6:__strcpy_avx2) redirected to 0x4846910 (strcpy)
+--3307-- REDIR: 0x49d40a0 (libc.so.6:__memcmp_avx2_movbe) redirected to 0x4849a10 (bcmp)
+--3307-- REDIR: 0x49d74a0 (libc.so.6:__strchrnul_avx2) redirected to 0x484acf0 (strchrnul)
+--3307-- REDIR: 0x49d7690 (libc.so.6:__strcmp_avx2) redirected to 0x4847700 (strcmp)
+--3307-- REDIR: 0x49d5200 (libc.so.6:__memset_avx2_unaligned_erms) redirected to 0x484a170 (memset)
+--3307-- REDIR: 0x49d54a0 (libc.so.6:__stpcpy_avx2) redirected to 0x4849b30 (stpcpy)
+--3307-- REDIR: 0x49d8100 (libc.so.6:__strncasecmp_avx2) redirected to 0x4847190 (strncasecmp)
+--3307-- REDIR: 0x49f6d90 (libc.so.6:__strpbrk_sse42) redirected to 0x484b5a0 (strpbrk)
+--3307-- REDIR: 0x49d47b0 (libc.so.6:__mempcpy_avx_unaligned_erms) redirected to 0x484adf0 (mempcpy)
+--3307-- REDIR: 0x49215a0 (libc.so.6:realloc) redirected to 0x4845760 (realloc)
+--3307-- REDIR: 0x49281c0 (libc.so.6:strstr) redirected to 0x48351b0 (_vgnU_ifunc_wrapper)
+--3307-- REDIR: 0x4938210 (libc.so.6:__strstr_sse2_unaligned) redirected to 0x484b3f0 (strstr)
+==3307== Invalid write of size 8
+==3307== at 0x1111A8: add_torrent (dht.c:1368)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874150 is 96 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== Invalid read of size 1
+==3307== at 0x4849A37: bcmp (vg_replace_strmem.c:1219)
+==3307== by 0x110FC0: find_torrent (dht.c:1301)
+==3307== by 0x1137C7: handle (dht.c:1891)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874124 is 52 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== Invalid read of size 1
+==3307== at 0x4849A48: bcmp (vg_replace_strmem.c:1219)
+==3307== by 0x110FC0: find_torrent (dht.c:1301)
+==3307== by 0x1137C7: handle (dht.c:1891)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874125 is 53 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== Invalid read of size 8
+==3307== at 0x110FCF: find_torrent (dht.c:1303)
+==3307== by 0x1137C7: handle (dht.c:1891)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874148 is 88 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== Invalid read of size 8
+==3307== at 0x116126: periodic (dht.c:2305)
+==3307== by 0x11ADB3: main (main.c:166)
+==3307== Address 0x5874188 is 152 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== Invalid read of size 4
+==3307== at 0x11615F: periodic (dht.c:2307)
+==3307== by 0x11ADB3: main (main.c:166)
+==3307== Address 0x5874120 is 48 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== Invalid read of size 4
+==3307== at 0x1164B7: periodic (dht.c:2407)
+==3307== by 0x11ADB3: main (main.c:166)
+==3307== Address 0x5874120 is 48 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== Invalid read of size 8
+==3307== at 0x116929: periodic (dht.c:2463)
+==3307== by 0x11ADB3: main (main.c:166)
+==3307== Address 0x5874148 is 88 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== Invalid read of size 1
+==3307== at 0x4849A37: bcmp (vg_replace_strmem.c:1219)
+==3307== by 0x110FC0: find_torrent (dht.c:1301)
+==3307== by 0x114205: handle (dht.c:1992)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874124 is 52 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== Invalid read of size 1
+==3307== at 0x4849A48: bcmp (vg_replace_strmem.c:1219)
+==3307== by 0x110FC0: find_torrent (dht.c:1301)
+==3307== by 0x114205: handle (dht.c:1992)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874125 is 53 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== Invalid read of size 8
+==3307== at 0x110FCF: find_torrent (dht.c:1303)
+==3307== by 0x114205: handle (dht.c:1992)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874148 is 88 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== Invalid read of size 8
+==3307== at 0x116BE9: tcp_work (dht.c:2480)
+==3307== by 0x11941A: work (dht.c:2906)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874110 is 32 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== Invalid read of size 8
+==3307== at 0x11910D: tcp_work (dht.c:2878)
+==3307== by 0x11941A: work (dht.c:2906)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874148 is 88 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== Invalid read of size 1
+==3307== at 0x4849A37: bcmp (vg_replace_strmem.c:1219)
+==3307== by 0x110FC0: find_torrent (dht.c:1301)
+==3307== by 0x111139: add_torrent (dht.c:1359)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874124 is 52 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== Invalid read of size 8
+==3307== at 0x110FCF: find_torrent (dht.c:1303)
+==3307== by 0x111139: add_torrent (dht.c:1359)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874148 is 88 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== Invalid read of size 1
+==3307== at 0x4849A37: bcmp (vg_replace_strmem.c:1219)
+==3307== by 0x110FC0: find_torrent (dht.c:1301)
+==3307== by 0x111139: add_torrent (dht.c:1359)
+==3307== by 0x113E80: handle (dht.c:1956)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874124 is 52 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== Invalid read of size 1
+==3307== at 0x4849A48: bcmp (vg_replace_strmem.c:1219)
+==3307== by 0x110FC0: find_torrent (dht.c:1301)
+==3307== by 0x111139: add_torrent (dht.c:1359)
+==3307== by 0x113E80: handle (dht.c:1956)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874125 is 53 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== Invalid read of size 8
+==3307== at 0x110FCF: find_torrent (dht.c:1303)
+==3307== by 0x111139: add_torrent (dht.c:1359)
+==3307== by 0x113E80: handle (dht.c:1956)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874148 is 88 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== Invalid read of size 1
+==3307== at 0x4849A48: bcmp (vg_replace_strmem.c:1219)
+==3307== by 0x110FC0: find_torrent (dht.c:1301)
+==3307== by 0x111139: add_torrent (dht.c:1359)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874125 is 53 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== Invalid read of size 4
+==3307== at 0x116BFD: tcp_work (dht.c:2482)
+==3307== by 0x11941A: work (dht.c:2906)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x58740f4 is 4 bytes inside a block of size 88 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10BAD3: free_bencoding (bencoding.c:47)
+==3307== by 0x10BA98: free_bencoding (bencoding.c:43)
+==3307== by 0x10BAB7: free_bencoding (bencoding.c:45)
+==3307== by 0x10BA98: free_bencoding (bencoding.c:43)
+==3307== by 0x1149EA: handle (dht.c:2062)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10C94E: bdecode_safe (bencoding.c:441)
+==3307== by 0x10CB4D: bdecode_safe (bencoding.c:471)
+==3307== by 0x10CB4D: bdecode_safe (bencoding.c:471)
+==3307== by 0x10CED5: bdecode (bencoding.c:563)
+==3307== by 0x1126D0: handle (dht.c:1739)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== Invalid read of size 1
+==3307== at 0x484A2D9: memmove (vg_replace_strmem.c:1398)
+==3307== by 0x116CAC: tcp_work (dht.c:2486)
+==3307== by 0x11941A: work (dht.c:2906)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874124 is 52 bytes inside a block of size 88 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10BAD3: free_bencoding (bencoding.c:47)
+==3307== by 0x10BA98: free_bencoding (bencoding.c:43)
+==3307== by 0x10BAB7: free_bencoding (bencoding.c:45)
+==3307== by 0x10BA98: free_bencoding (bencoding.c:43)
+==3307== by 0x1149EA: handle (dht.c:2062)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10C94E: bdecode_safe (bencoding.c:441)
+==3307== by 0x10CB4D: bdecode_safe (bencoding.c:471)
+==3307== by 0x10CB4D: bdecode_safe (bencoding.c:471)
+==3307== by 0x10CED5: bdecode (bencoding.c:563)
+==3307== by 0x1126D0: handle (dht.c:1739)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== Invalid read of size 8
+==3307== at 0x484A36D: memmove (vg_replace_strmem.c:1398)
+==3307== by 0x116CAC: tcp_work (dht.c:2486)
+==3307== by 0x11941A: work (dht.c:2906)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874128 is 56 bytes inside a block of size 88 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10BAD3: free_bencoding (bencoding.c:47)
+==3307== by 0x10BA98: free_bencoding (bencoding.c:43)
+==3307== by 0x10BAB7: free_bencoding (bencoding.c:45)
+==3307== by 0x10BA98: free_bencoding (bencoding.c:43)
+==3307== by 0x1149EA: handle (dht.c:2062)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10C94E: bdecode_safe (bencoding.c:441)
+==3307== by 0x10CB4D: bdecode_safe (bencoding.c:471)
+==3307== by 0x10CB4D: bdecode_safe (bencoding.c:471)
+==3307== by 0x10CED5: bdecode (bencoding.c:563)
+==3307== by 0x1126D0: handle (dht.c:1739)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== Invalid read of size 4
+==3307== at 0x116CD6: tcp_work (dht.c:2488)
+==3307== by 0x11941A: work (dht.c:2906)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x58740f8 is 8 bytes inside a block of size 88 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10BAD3: free_bencoding (bencoding.c:47)
+==3307== by 0x10BA98: free_bencoding (bencoding.c:43)
+==3307== by 0x10BAB7: free_bencoding (bencoding.c:45)
+==3307== by 0x10BA98: free_bencoding (bencoding.c:43)
+==3307== by 0x1149EA: handle (dht.c:2062)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10C94E: bdecode_safe (bencoding.c:441)
+==3307== by 0x10CB4D: bdecode_safe (bencoding.c:471)
+==3307== by 0x10CB4D: bdecode_safe (bencoding.c:471)
+==3307== by 0x10CED5: bdecode (bencoding.c:563)
+==3307== by 0x1126D0: handle (dht.c:1739)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== Invalid read of size 8
+==3307== at 0x116E47: tcp_work (dht.c:2497)
+==3307== by 0x11941A: work (dht.c:2906)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874110 is 32 bytes inside a block of size 88 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10BAD3: free_bencoding (bencoding.c:47)
+==3307== by 0x10BA98: free_bencoding (bencoding.c:43)
+==3307== by 0x10BAB7: free_bencoding (bencoding.c:45)
+==3307== by 0x10BA98: free_bencoding (bencoding.c:43)
+==3307== by 0x1149EA: handle (dht.c:2062)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10C94E: bdecode_safe (bencoding.c:441)
+==3307== by 0x10CB4D: bdecode_safe (bencoding.c:471)
+==3307== by 0x10CB4D: bdecode_safe (bencoding.c:471)
+==3307== by 0x10CED5: bdecode (bencoding.c:563)
+==3307== by 0x1126D0: handle (dht.c:1739)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== Invalid read of size 4
+==3307== at 0x116E4B: tcp_work (dht.c:2497)
+==3307== by 0x11941A: work (dht.c:2906)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x11 is not stack'd, malloc'd or (recently) free'd
+==3307==
+==3307==
+==3307== Process terminating with default action of signal 11 (SIGSEGV): dumping core
+==3307== Access not within mapped region at address 0x11
+==3307== at 0x116E4B: tcp_work (dht.c:2497)
+==3307== by 0x11941A: work (dht.c:2906)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== If you believe this happened as a result of a stack
+==3307== overflow in your program's main thread (unlikely but
+==3307== possible), you can try to increase the size of the
+==3307== main thread stack using the --main-stacksize= flag.
+==3307== The main thread stack size used in this run was 8388608.
+==3307==
+==3307== HEAP SUMMARY:
+==3307== in use at exit: 96,566 bytes in 512 blocks
+==3307== total heap usage: 971,938 allocs, 971,426 frees, 51,589,595 bytes allocated
+==3307==
+==3307== Searching for pointers to 512 not-freed blocks
+==3307== Checked 164,344 bytes
+==3307==
+==3307== 15 bytes in 1 blocks are still reachable in loss record 1 of 23
+==3307== at 0x48407E5: malloc (vg_replace_malloc.c:393)
+==3307== by 0x4926BEA: strdup (strdup.c:42)
+==3307== by 0x494C500: tzset_internal (tzset.c:402)
+==3307== by 0x494C6F0: __tz_convert (tzset.c:577)
+==3307== by 0x116DAE: tcp_work (dht.c:2496)
+==3307== by 0x11941A: work (dht.c:2906)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== 20 bytes in 1 blocks are still reachable in loss record 2 of 23
+==3307== at 0x48407E5: malloc (vg_replace_malloc.c:393)
+==3307== by 0x494BBAF: __tzstring_len (tzset.c:98)
+==3307== by 0x494D260: __tzfile_read (tzfile.c:408)
+==3307== by 0x494C513: tzset_internal (tzset.c:405)
+==3307== by 0x494C6F0: __tz_convert (tzset.c:577)
+==3307== by 0x10ECF7: sendb (dht.c:638)
+==3307== by 0x10F2EE: find_node (dht.c:699)
+==3307== by 0x10F4BE: ping_node (dht.c:728)
+==3307== by 0x10F8DF: dht_init (dht.c:798)
+==3307== by 0x11AB32: main (main.c:120)
+==3307==
+==3307== 32 bytes in 1 blocks are still reachable in loss record 3 of 23
+==3307== at 0x48407E5: malloc (vg_replace_malloc.c:393)
+==3307== by 0x4922FAF: __libc_dynarray_emplace_enlarge (dynarray_emplace_enlarge.c:61)
+==3307== by 0x49B6478: resolv_conf_array_add__ (dynarray-skeleton.c:281)
+==3307== by 0x49B6478: resolv_conf_array_add (dynarray-skeleton.c:309)
+==3307== by 0x49B6478: __resolv_conf_attach (resolv_conf.c:604)
+==3307== by 0x49B0FFE: __res_vinit (res_init.c:632)
+==3307== by 0x49B0FFE: __res_ninit (res_init.c:113)
+==3307== by 0x1159FC: periodic (dht.c:2253)
+==3307== by 0x11ACB4: main (main.c:137)
+==3307==
+==3307== 32 bytes in 1 blocks are still reachable in loss record 4 of 23
+==3307== at 0x48457DF: realloc (vg_replace_malloc.c:1451)
+==3307== by 0x119CEE: connection (tcp.c:53)
+==3307== by 0x1168DE: periodic (dht.c:2455)
+==3307== by 0x11ADB3: main (main.c:166)
+==3307==
+==3307== 40 bytes in 1 blocks are still reachable in loss record 5 of 23
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10DD4B: bucket_init (dht.c:215)
+==3307== by 0x10F539: dht_init (dht.c:747)
+==3307== by 0x11AB32: main (main.c:120)
+==3307==
+==3307== 40 bytes in 1 blocks are still reachable in loss record 6 of 23
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10DD4B: bucket_init (dht.c:215)
+==3307== by 0x10F549: dht_init (dht.c:748)
+==3307== by 0x11AB32: main (main.c:120)
+==3307==
+==3307== 41 bytes in 2 blocks are still reachable in loss record 7 of 23
+==3307== at 0x48407E5: malloc (vg_replace_malloc.c:393)
+==3307== by 0x494BB55: __tzstring_len (tzset.c:98)
+==3307== by 0x494D260: __tzfile_read (tzfile.c:408)
+==3307== by 0x494C513: tzset_internal (tzset.c:405)
+==3307== by 0x494C6F0: __tz_convert (tzset.c:577)
+==3307== by 0x10ECF7: sendb (dht.c:638)
+==3307== by 0x10F2EE: find_node (dht.c:699)
+==3307== by 0x10F4BE: ping_node (dht.c:728)
+==3307== by 0x10F8DF: dht_init (dht.c:798)
+==3307== by 0x11AB32: main (main.c:120)
+==3307==
+==3307== 88 bytes in 1 blocks are still reachable in loss record 8 of 23
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x49B56BE: get_locked_global (resolv_conf.c:94)
+==3307== by 0x49B56BE: get_locked_global (resolv_conf.c:86)
+==3307== by 0x49B5AE8: __resolv_conf_get_current (resolv_conf.c:127)
+==3307== by 0x49B0FEB: __res_vinit (res_init.c:628)
+==3307== by 0x49B0FEB: __res_ninit (res_init.c:113)
+==3307== by 0x1159FC: periodic (dht.c:2253)
+==3307== by 0x11ACB4: main (main.c:137)
+==3307==
+==3307== 200 bytes in 5 blocks are still reachable in loss record 9 of 23
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10DD4B: bucket_init (dht.c:215)
+==3307== by 0x110639: split (dht.c:1102)
+==3307== by 0x110E5C: replied (dht.c:1254)
+==3307== by 0x110E7C: replied (dht.c:1255)
+==3307== by 0x114180: handle (dht.c:1984)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== 200 bytes in 5 blocks are still reachable in loss record 10 of 23
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10DDCA: peer_init (dht.c:262)
+==3307== by 0x113EBE: handle (dht.c:1961)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== 211 bytes in 1 blocks are still reachable in loss record 11 of 23
+==3307== at 0x48407E5: malloc (vg_replace_malloc.c:393)
+==3307== by 0x4923284: __libc_alloc_buffer_allocate (alloc_buffer_allocate.c:26)
+==3307== by 0x49B5E25: alloc_buffer_allocate (alloc_buffer.h:143)
+==3307== by 0x49B5E25: __resolv_conf_allocate (resolv_conf.c:391)
+==3307== by 0x49B12F1: __resolv_conf_load (res_init.c:599)
+==3307== by 0x49B5B76: __resolv_conf_get_current (resolv_conf.c:140)
+==3307== by 0x49B0FEB: __res_vinit (res_init.c:628)
+==3307== by 0x49B0FEB: __res_ninit (res_init.c:113)
+==3307== by 0x1159FC: periodic (dht.c:2253)
+==3307== by 0x11ACB4: main (main.c:137)
+==3307==
+==3307== 440 bytes in 5 blocks are still reachable in loss record 12 of 23
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10D9FD: node_init (dht.c:98)
+==3307== by 0x110A30: replied (dht.c:1213)
+==3307== by 0x110E7C: replied (dht.c:1255)
+==3307== by 0x110E7C: replied (dht.c:1255)
+==3307== by 0x114180: handle (dht.c:1984)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== 760 bytes in 19 blocks are still reachable in loss record 13 of 23
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10DDCA: peer_init (dht.c:262)
+==3307== by 0x114309: handle (dht.c:2003)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== 800 bytes in 5 blocks are still reachable in loss record 14 of 23
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== 1,167 bytes in 1 blocks are still reachable in loss record 15 of 23
+==3307== at 0x48407E5: malloc (vg_replace_malloc.c:393)
+==3307== by 0x494CBA1: __tzfile_read (tzfile.c:275)
+==3307== by 0x494C513: tzset_internal (tzset.c:405)
+==3307== by 0x494C6F0: __tz_convert (tzset.c:577)
+==3307== by 0x10ECF7: sendb (dht.c:638)
+==3307== by 0x10F2EE: find_node (dht.c:699)
+==3307== by 0x10F4BE: ping_node (dht.c:728)
+==3307== by 0x10F8DF: dht_init (dht.c:798)
+==3307== by 0x11AB32: main (main.c:120)
+==3307==
+==3307== 1,320 bytes in 33 blocks are still reachable in loss record 16 of 23
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10DD4B: bucket_init (dht.c:215)
+==3307== by 0x110639: split (dht.c:1102)
+==3307== by 0x110E5C: replied (dht.c:1254)
+==3307== by 0x114180: handle (dht.c:1984)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== 2,080 bytes in 13 blocks are still reachable in loss record 17 of 23
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x11A183: found_torrent (main.c:56)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== 2,464 bytes in 28 blocks are still reachable in loss record 18 of 23
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10D9FD: node_init (dht.c:98)
+==3307== by 0x110A30: replied (dht.c:1213)
+==3307== by 0x110E7C: replied (dht.c:1255)
+==3307== by 0x114180: handle (dht.c:1984)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== 7,376 bytes in 1 blocks are still reachable in loss record 19 of 23
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10F507: dht_init (dht.c:744)
+==3307== by 0x11AB32: main (main.c:120)
+==3307==
+==3307== 9,856 bytes in 112 blocks are still reachable in loss record 20 of 23
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10D9FD: node_init (dht.c:98)
+==3307== by 0x111AB0: replied_torrent_node (dht.c:1568)
+==3307== by 0x114276: handle (dht.c:1997)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== 12,721 bytes in 2 blocks are still reachable in loss record 21 of 23
+==3307== at 0x48406F5: malloc (vg_replace_malloc.c:392)
+==3307== by 0x118491: tcp_work (dht.c:2662)
+==3307== by 0x11941A: work (dht.c:2906)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== 23,936 bytes in 272 blocks are still reachable in loss record 22 of 23
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10D9FD: node_init (dht.c:98)
+==3307== by 0x110A30: replied (dht.c:1213)
+==3307== by 0x114180: handle (dht.c:1984)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== 32,727 bytes in 1 blocks are still reachable in loss record 23 of 23
+==3307== at 0x48407E5: malloc (vg_replace_malloc.c:393)
+==3307== by 0x11687B: periodic (dht.c:2452)
+==3307== by 0x11ADB3: main (main.c:166)
+==3307==
+==3307== LEAK SUMMARY:
+==3307== definitely lost: 0 bytes in 0 blocks
+==3307== indirectly lost: 0 bytes in 0 blocks
+==3307== possibly lost: 0 bytes in 0 blocks
+==3307== still reachable: 96,566 bytes in 512 blocks
+==3307== suppressed: 0 bytes in 0 blocks
+==3307==
+==3307== ERROR SUMMARY: 2115 errors from 25 contexts (suppressed: 0 from 0)
+==3307==
+==3307== 1 errors in context 1 of 25:
+==3307== Invalid read of size 4
+==3307== at 0x116E4B: tcp_work (dht.c:2497)
+==3307== by 0x11941A: work (dht.c:2906)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x11 is not stack'd, malloc'd or (recently) free'd
+==3307==
+==3307==
+==3307== 1 errors in context 2 of 25:
+==3307== Invalid read of size 8
+==3307== at 0x116E47: tcp_work (dht.c:2497)
+==3307== by 0x11941A: work (dht.c:2906)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874110 is 32 bytes inside a block of size 88 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10BAD3: free_bencoding (bencoding.c:47)
+==3307== by 0x10BA98: free_bencoding (bencoding.c:43)
+==3307== by 0x10BAB7: free_bencoding (bencoding.c:45)
+==3307== by 0x10BA98: free_bencoding (bencoding.c:43)
+==3307== by 0x1149EA: handle (dht.c:2062)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10C94E: bdecode_safe (bencoding.c:441)
+==3307== by 0x10CB4D: bdecode_safe (bencoding.c:471)
+==3307== by 0x10CB4D: bdecode_safe (bencoding.c:471)
+==3307== by 0x10CED5: bdecode (bencoding.c:563)
+==3307== by 0x1126D0: handle (dht.c:1739)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307==
+==3307== 1 errors in context 3 of 25:
+==3307== Invalid read of size 4
+==3307== at 0x116CD6: tcp_work (dht.c:2488)
+==3307== by 0x11941A: work (dht.c:2906)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x58740f8 is 8 bytes inside a block of size 88 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10BAD3: free_bencoding (bencoding.c:47)
+==3307== by 0x10BA98: free_bencoding (bencoding.c:43)
+==3307== by 0x10BAB7: free_bencoding (bencoding.c:45)
+==3307== by 0x10BA98: free_bencoding (bencoding.c:43)
+==3307== by 0x1149EA: handle (dht.c:2062)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10C94E: bdecode_safe (bencoding.c:441)
+==3307== by 0x10CB4D: bdecode_safe (bencoding.c:471)
+==3307== by 0x10CB4D: bdecode_safe (bencoding.c:471)
+==3307== by 0x10CED5: bdecode (bencoding.c:563)
+==3307== by 0x1126D0: handle (dht.c:1739)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307==
+==3307== 1 errors in context 4 of 25:
+==3307== Invalid read of size 4
+==3307== at 0x116BFD: tcp_work (dht.c:2482)
+==3307== by 0x11941A: work (dht.c:2906)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x58740f4 is 4 bytes inside a block of size 88 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10BAD3: free_bencoding (bencoding.c:47)
+==3307== by 0x10BA98: free_bencoding (bencoding.c:43)
+==3307== by 0x10BAB7: free_bencoding (bencoding.c:45)
+==3307== by 0x10BA98: free_bencoding (bencoding.c:43)
+==3307== by 0x1149EA: handle (dht.c:2062)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10C94E: bdecode_safe (bencoding.c:441)
+==3307== by 0x10CB4D: bdecode_safe (bencoding.c:471)
+==3307== by 0x10CB4D: bdecode_safe (bencoding.c:471)
+==3307== by 0x10CED5: bdecode (bencoding.c:563)
+==3307== by 0x1126D0: handle (dht.c:1739)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307==
+==3307== 1 errors in context 5 of 25:
+==3307== Invalid write of size 8
+==3307== at 0x1111A8: add_torrent (dht.c:1368)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874150 is 96 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307==
+==3307== 2 errors in context 6 of 25:
+==3307== Invalid read of size 8
+==3307== at 0x484A36D: memmove (vg_replace_strmem.c:1398)
+==3307== by 0x116CAC: tcp_work (dht.c:2486)
+==3307== by 0x11941A: work (dht.c:2906)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874128 is 56 bytes inside a block of size 88 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10BAD3: free_bencoding (bencoding.c:47)
+==3307== by 0x10BA98: free_bencoding (bencoding.c:43)
+==3307== by 0x10BAB7: free_bencoding (bencoding.c:45)
+==3307== by 0x10BA98: free_bencoding (bencoding.c:43)
+==3307== by 0x1149EA: handle (dht.c:2062)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10C94E: bdecode_safe (bencoding.c:441)
+==3307== by 0x10CB4D: bdecode_safe (bencoding.c:471)
+==3307== by 0x10CB4D: bdecode_safe (bencoding.c:471)
+==3307== by 0x10CED5: bdecode (bencoding.c:563)
+==3307== by 0x1126D0: handle (dht.c:1739)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307==
+==3307== 4 errors in context 7 of 25:
+==3307== Invalid read of size 1
+==3307== at 0x484A2D9: memmove (vg_replace_strmem.c:1398)
+==3307== by 0x116CAC: tcp_work (dht.c:2486)
+==3307== by 0x11941A: work (dht.c:2906)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874124 is 52 bytes inside a block of size 88 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10BAD3: free_bencoding (bencoding.c:47)
+==3307== by 0x10BA98: free_bencoding (bencoding.c:43)
+==3307== by 0x10BAB7: free_bencoding (bencoding.c:45)
+==3307== by 0x10BA98: free_bencoding (bencoding.c:43)
+==3307== by 0x1149EA: handle (dht.c:2062)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10C94E: bdecode_safe (bencoding.c:441)
+==3307== by 0x10CB4D: bdecode_safe (bencoding.c:471)
+==3307== by 0x10CB4D: bdecode_safe (bencoding.c:471)
+==3307== by 0x10CED5: bdecode (bencoding.c:563)
+==3307== by 0x1126D0: handle (dht.c:1739)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307==
+==3307== 4 errors in context 8 of 25:
+==3307== Invalid read of size 8
+==3307== at 0x110FCF: find_torrent (dht.c:1303)
+==3307== by 0x111139: add_torrent (dht.c:1359)
+==3307== by 0x113E80: handle (dht.c:1956)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874148 is 88 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307==
+==3307== 4 errors in context 9 of 25:
+==3307== Invalid read of size 1
+==3307== at 0x4849A37: bcmp (vg_replace_strmem.c:1219)
+==3307== by 0x110FC0: find_torrent (dht.c:1301)
+==3307== by 0x111139: add_torrent (dht.c:1359)
+==3307== by 0x113E80: handle (dht.c:1956)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874124 is 52 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307==
+==3307== 5 errors in context 10 of 25:
+==3307== Invalid read of size 1
+==3307== at 0x4849A48: bcmp (vg_replace_strmem.c:1219)
+==3307== by 0x110FC0: find_torrent (dht.c:1301)
+==3307== by 0x111139: add_torrent (dht.c:1359)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874125 is 53 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307==
+==3307== 5 errors in context 11 of 25:
+==3307== Invalid read of size 1
+==3307== at 0x4849A48: bcmp (vg_replace_strmem.c:1219)
+==3307== by 0x110FC0: find_torrent (dht.c:1301)
+==3307== by 0x111139: add_torrent (dht.c:1359)
+==3307== by 0x113E80: handle (dht.c:1956)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874125 is 53 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307==
+==3307== 11 errors in context 12 of 25:
+==3307== Invalid read of size 8
+==3307== at 0x110FCF: find_torrent (dht.c:1303)
+==3307== by 0x111139: add_torrent (dht.c:1359)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874148 is 88 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307==
+==3307== 11 errors in context 13 of 25:
+==3307== Invalid read of size 1
+==3307== at 0x4849A37: bcmp (vg_replace_strmem.c:1219)
+==3307== by 0x110FC0: find_torrent (dht.c:1301)
+==3307== by 0x111139: add_torrent (dht.c:1359)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874124 is 52 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307==
+==3307== 13 errors in context 14 of 25:
+==3307== Invalid read of size 8
+==3307== at 0x116929: periodic (dht.c:2463)
+==3307== by 0x11ADB3: main (main.c:166)
+==3307== Address 0x5874148 is 88 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307==
+==3307== 13 errors in context 15 of 25:
+==3307== Invalid read of size 4
+==3307== at 0x1164B7: periodic (dht.c:2407)
+==3307== by 0x11ADB3: main (main.c:166)
+==3307== Address 0x5874120 is 48 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307==
+==3307== 13 errors in context 16 of 25:
+==3307== Invalid read of size 4
+==3307== at 0x11615F: periodic (dht.c:2307)
+==3307== by 0x11ADB3: main (main.c:166)
+==3307== Address 0x5874120 is 48 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307==
+==3307== 13 errors in context 17 of 25:
+==3307== Invalid read of size 8
+==3307== at 0x116126: periodic (dht.c:2305)
+==3307== by 0x11ADB3: main (main.c:166)
+==3307== Address 0x5874188 is 152 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307==
+==3307== 29 errors in context 18 of 25:
+==3307== Invalid read of size 8
+==3307== at 0x11910D: tcp_work (dht.c:2878)
+==3307== by 0x11941A: work (dht.c:2906)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874148 is 88 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307==
+==3307== 30 errors in context 19 of 25:
+==3307== Invalid read of size 8
+==3307== at 0x116BE9: tcp_work (dht.c:2480)
+==3307== by 0x11941A: work (dht.c:2906)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874110 is 32 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307==
+==3307== 84 errors in context 20 of 25:
+==3307== Invalid read of size 1
+==3307== at 0x4849A48: bcmp (vg_replace_strmem.c:1219)
+==3307== by 0x110FC0: find_torrent (dht.c:1301)
+==3307== by 0x1137C7: handle (dht.c:1891)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874125 is 53 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307==
+==3307== 139 errors in context 21 of 25:
+==3307== Invalid read of size 8
+==3307== at 0x110FCF: find_torrent (dht.c:1303)
+==3307== by 0x1137C7: handle (dht.c:1891)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874148 is 88 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307==
+==3307== 139 errors in context 22 of 25:
+==3307== Invalid read of size 1
+==3307== at 0x4849A37: bcmp (vg_replace_strmem.c:1219)
+==3307== by 0x110FC0: find_torrent (dht.c:1301)
+==3307== by 0x1137C7: handle (dht.c:1891)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874124 is 52 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307==
+==3307== 457 errors in context 23 of 25:
+==3307== Invalid read of size 1
+==3307== at 0x4849A48: bcmp (vg_replace_strmem.c:1219)
+==3307== by 0x110FC0: find_torrent (dht.c:1301)
+==3307== by 0x114205: handle (dht.c:1992)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874125 is 53 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307==
+==3307== 567 errors in context 24 of 25:
+==3307== Invalid read of size 8
+==3307== at 0x110FCF: find_torrent (dht.c:1303)
+==3307== by 0x114205: handle (dht.c:1992)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874148 is 88 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307==
+==3307== 567 errors in context 25 of 25:
+==3307== Invalid read of size 1
+==3307== at 0x4849A37: bcmp (vg_replace_strmem.c:1219)
+==3307== by 0x110FC0: find_torrent (dht.c:1301)
+==3307== by 0x114205: handle (dht.c:1992)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Address 0x5874124 is 52 bytes inside a block of size 160 free'd
+==3307== at 0x484312B: free (vg_replace_malloc.c:884)
+==3307== by 0x10E203: torrent_free (dht.c:407)
+==3307== by 0x1110AD: remove_torrent (dht.c:1330)
+==3307== by 0x11110A: oom (dht.c:1345)
+==3307== by 0x11118E: add_torrent (dht.c:1366)
+==3307== by 0x11A1F8: found_torrent (main.c:60)
+==3307== by 0x1137FB: handle (dht.c:1892)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307== Block was alloc'd at
+==3307== at 0x484559F: calloc (vg_replace_malloc.c:1340)
+==3307== by 0x10E021: torrent_init (dht.c:355)
+==3307== by 0x113E3A: handle (dht.c:1954)
+==3307== by 0x1194A7: work (dht.c:2910)
+==3307== by 0x11AD27: main (main.c:154)
+==3307==
+==3307== ERROR SUMMARY: 2115 errors from 25 contexts (suppressed: 0 from 0)