==55837== Memcheck, a memory error detector ==55837== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==55837== Using Valgrind-3.16.1-36d6727e1d-20200622X and LibVEX; rerun with -h for copyright info ==55837== Command: ./DDNet-Server ==55837== Parent PID: 48910 ==55837== --55837-- --55837-- Valgrind options: --55837-- --show-reachable=yes --55837-- --show-possibly-lost=yes --55837-- --error-limit=no --55837-- --log-fd=1 --55837-- --track-fds=yes --55837-- --trace-children=yes --55837-- --redzone-size=256 --55837-- --leak-check=full --55837-- --show-leak-kinds=all --55837-- --track-origins=yes --55837-- --verbose --55837-- --log-file=valgrind-out.txt --55837-- --fair-sched=yes --55837-- Contents of /proc/version: --55837-- Linux version 5.10.0-11-amd64 (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP Debian 5.10.92-1 (2022-01-18) --55837-- --55837-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-sse3-ssse3-avx-avx2-bmi-f16c-rdrand --55837-- Page sizes: currently 4096, max supported 4096 --55837-- Valgrind library directory: /usr/lib/x86_64-linux-gnu/valgrind --55837-- Reading syms from /home/chiller/Desktop/git/ddnet/build/DDNet-Server --55837-- Reading syms from /usr/lib/x86_64-linux-gnu/ld-2.31.so --55837-- Considering /usr/lib/debug/.build-id/32/438eb3b034da54caf58c7a65446639f7cfe274.debug .. --55837-- .. build-id is valid --55837-- Reading syms from /usr/lib/x86_64-linux-gnu/valgrind/memcheck-amd64-linux --55837-- Considering /usr/lib/debug/.build-id/54/299c4aec0e5e5f3d7b8135341351d0e1dbfc64.debug .. --55837-- .. build-id is valid --55837-- object doesn't have a dynamic symbol table --55837-- Scheduler: using ticket lock scheduler lock implementation. --55837-- Reading suppressions file: /usr/lib/x86_64-linux-gnu/valgrind/default.supp ==55837== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-55837-by-chiller-on-??? ==55837== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-55837-by-chiller-on-??? ==55837== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-55837-by-chiller-on-??? ==55837== ==55837== TO CONTROL THIS PROCESS USING vgdb (which you probably ==55837== don't want to do, unless you know exactly what you're doing, ==55837== or are doing some strange experiment): ==55837== /usr/bin/vgdb --pid=55837 ...command... ==55837== ==55837== TO DEBUG THIS PROCESS USING GDB: start GDB like this ==55837== /path/to/gdb ./DDNet-Server ==55837== and then give GDB the following command ==55837== target remote | /usr/bin/vgdb --pid=55837 ==55837== --pid is optional if only one valgrind process is running ==55837== --55837-- REDIR: 0x401f970 (ld-linux-x86-64.so.2:strlen) redirected to 0x580ca5f2 (vgPlain_amd64_linux_REDIR_FOR_strlen) --55837-- REDIR: 0x401f750 (ld-linux-x86-64.so.2:index) redirected to 0x580ca60c (vgPlain_amd64_linux_REDIR_FOR_index) --55837-- Reading syms from /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_core-amd64-linux.so --55837-- Considering /usr/lib/debug/.build-id/f2/7641e081d3c37b410d7f31da4e2bf21040f356.debug .. --55837-- .. build-id is valid --55837-- Reading syms from /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so --55837-- Considering /usr/lib/debug/.build-id/25/7cdcdf80e04f91ca9e3b185ee3b52995e89946.debug .. --55837-- .. build-id is valid ==55837== WARNING: new redirection conflicts with existing -- ignoring it --55837-- old: 0x0401f970 (strlen ) R-> (0000.0) 0x580ca5f2 vgPlain_amd64_linux_REDIR_FOR_strlen --55837-- new: 0x0401f970 (strlen ) R-> (2007.0) 0x0483bda0 strlen --55837-- REDIR: 0x401c190 (ld-linux-x86-64.so.2:strcmp) redirected to 0x483cc90 (strcmp) --55837-- REDIR: 0x401feb0 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4840740 (mempcpy) --55837-- Reading syms from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 --55837-- object doesn't have a symbol table --55837-- Reading syms from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 --55837-- object doesn't have a symbol table --55837-- Reading syms from /usr/lib/x86_64-linux-gnu/libz.so.1.2.11 --55837-- object doesn't have a symbol table --55837-- Reading syms from /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28 --55837-- object doesn't have a symbol table --55837-- Reading syms from /usr/lib/x86_64-linux-gnu/libm-2.31.so --55837-- Considering /usr/lib/debug/.build-id/e9/d2c06479b13dd3cfa78d714d11dccf6fcbee51.debug .. --55837-- .. build-id is valid --55837-- Reading syms from /usr/lib/x86_64-linux-gnu/libpthread-2.31.so --55837-- Considering /usr/lib/debug/.build-id/50/18237bbf012b4094027fd0b96fc22a24496ea4.debug .. --55837-- .. build-id is valid --55837-- Reading syms from /usr/lib/x86_64-linux-gnu/libc-2.31.so --55837-- Considering /usr/lib/debug/.build-id/54/eef5ce96cf37cb175b0d93186836ca1caf470c.debug .. --55837-- .. build-id is valid --55837-- Reading syms from /usr/lib/x86_64-linux-gnu/libdl-2.31.so --55837-- Considering /usr/lib/debug/.build-id/11/8b90161526d181807818c459baee841993795b.debug .. --55837-- .. build-id is valid --55837-- Reading syms from /usr/lib/x86_64-linux-gnu/libgcc_s.so.1 --55837-- object doesn't have a symbol table --55837-- REDIR: 0x5076ea0 (libc.so.6:memmove) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x5076250 (libc.so.6:strncpy) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x50771c0 (libc.so.6:strcasecmp) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x5075b70 (libc.so.6:strcat) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x50762b0 (libc.so.6:rindex) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x5078550 (libc.so.6:rawmemchr) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x5090710 (libc.so.6:wmemchr) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x50902b0 (libc.so.6:wcscmp) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x5077000 (libc.so.6:mempcpy) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x5076e30 (libc.so.6:bcmp) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x50761f0 (libc.so.6:strncmp) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x5075c20 (libc.so.6:strcmp) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x5076f60 (libc.so.6:memset) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x5090270 (libc.so.6:wcschr) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x5076150 (libc.so.6:strnlen) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x5075cf0 (libc.so.6:strcspn) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x5077210 (libc.so.6:strncasecmp) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x5075c90 (libc.so.6:strcpy) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x5077360 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x5091910 (libc.so.6:wcsnlen) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x50902f0 (libc.so.6:wcscpy) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x50762f0 (libc.so.6:strpbrk) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x5075bd0 (libc.so.6:index) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x5076110 (libc.so.6:strlen) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x507c8b0 (libc.so.6:memrchr) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x5077260 (libc.so.6:strcasecmp_l) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x5076df0 (libc.so.6:memchr) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x5090390 (libc.so.6:wcslen) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x5076590 (libc.so.6:strspn) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x5077160 (libc.so.6:stpncpy) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x5077100 (libc.so.6:stpcpy) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x5078590 (libc.so.6:strchrnul) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x50772b0 (libc.so.6:strncasecmp_l) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x50f3570 (libc.so.6:__memcpy_chk) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x5076d20 (libc.so.6:strstr) redirected to 0x482e1b0 (_vgnU_ifunc_wrapper) --55837-- REDIR: 0x51478f0 (libc.so.6:__strrchr_avx2) redirected to 0x483b7b0 (rindex) --55837-- REDIR: 0x50720f0 (libc.so.6:malloc) redirected to 0x4838710 (malloc) --55837-- REDIR: 0x5147ac0 (libc.so.6:__strlen_avx2) redirected to 0x483bc80 (strlen) --55837-- REDIR: 0x514aab0 (libc.so.6:__memcpy_avx_unaligned_erms) redirected to 0x483f760 (memmove) --55837-- REDIR: 0x4d590f0 (libstdc++.so.6:operator new[](unsigned long)) redirected to 0x48394a0 (operator new[](unsigned long)) --55837-- REDIR: 0x51440d0 (libc.so.6:__memcmp_avx2_movbe) redirected to 0x483ee80 (bcmp) --55837-- REDIR: 0x4d574c0 (libstdc++.so.6:operator delete[](void*)) redirected to 0x483a520 (operator delete[](void*)) --55837-- REDIR: 0x5076a30 (libc.so.6:__GI_strstr) redirected to 0x4840990 (__strstr_sse2) --55837-- REDIR: 0x4d590a0 (libstdc++.so.6:operator new(unsigned long)) redirected to 0x4838d80 (operator new(unsigned long)) --55837-- REDIR: 0x514af40 (libc.so.6:__memset_avx2_unaligned_erms) redirected to 0x483f650 (memset) --55837-- REDIR: 0x5072e50 (libc.so.6:calloc) redirected to 0x483aab0 (calloc) --55837-- REDIR: 0x5072720 (libc.so.6:free) redirected to 0x4839940 (free) --55837-- REDIR: 0x5142ff0 (libc.so.6:__strcmp_avx2) redirected to 0x483cb90 (strcmp) --55837-- REDIR: 0x5147700 (libc.so.6:__strchrnul_avx2) redirected to 0x48402b0 (strchrnul) --55837-- REDIR: 0x514aa90 (libc.so.6:__mempcpy_avx_unaligned_erms) redirected to 0x48403c0 (mempcpy) --55837-- REDIR: 0x51444b0 (libc.so.6:__strcasecmp_avx) redirected to 0x483c530 (strcasecmp) --55837-- REDIR: 0x5143430 (libc.so.6:__strncmp_avx2) redirected to 0x483c370 (strncmp) --55837-- REDIR: 0x5149380 (libc.so.6:__strncpy_avx2) redirected to 0x483bf70 (strncpy) --55837-- REDIR: 0x5143c20 (libc.so.6:__rawmemchr_avx2) redirected to 0x48402e0 (rawmemchr) --55837-- REDIR: 0x51474d0 (libc.so.6:__strchr_avx2) redirected to 0x483b930 (index) --55837-- REDIR: 0x5143950 (libc.so.6:__memchr_avx2) redirected to 0x483cd10 (memchr) --55837-- REDIR: 0x5145b20 (libc.so.6:__strncasecmp_avx) redirected to 0x483c5f0 (strncasecmp) --55837-- REDIR: 0x5142d90 (libc.so.6:__strpbrk_sse42) redirected to 0x4840a70 (strpbrk) --55837-- REDIR: 0x5149ce0 (libc.so.6:__stpcpy_avx2) redirected to 0x483efa0 (stpcpy) --55837-- Reading syms from /usr/lib/x86_64-linux-gnu/libnss_files-2.31.so --55837-- Considering /usr/lib/debug/.build-id/80/57e07b12fc6118d1c723397a05ac902a1908a1.debug .. --55837-- .. build-id is valid --55837-- REDIR: 0x5148ff0 (libc.so.6:__strcpy_avx2) redirected to 0x483bdd0 (strcpy) --55837-- REDIR: 0x5072980 (libc.so.6:realloc) redirected to 0x483ad00 (realloc) --55837-- REDIR: 0x4d57490 (libstdc++.so.6:operator delete(void*)) redirected to 0x4839e40 (operator delete(void*)) --55837-- REDIR: 0x514aaa0 (libc.so.6:__memcpy_chk_avx_unaligned_erms) redirected to 0x4840820 (__memcpy_chk) --55837-- Reading syms from /usr/lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2 --55837-- object doesn't have a symbol table --55837-- Reading syms from /usr/lib/x86_64-linux-gnu/libresolv-2.31.so --55837-- Considering /usr/lib/debug/.build-id/80/3fe1730907289d265f90f72f91652c56204ee6.debug .. --55837-- .. build-id is valid --55837-- Reading syms from /usr/lib/x86_64-linux-gnu/libnss_dns-2.31.so --55837-- Considering /usr/lib/debug/.build-id/1e/d2ac460be5b475f1b4df16ee4b6fb0db321d92.debug .. --55837-- .. build-id is valid --55837-- Discarding syms at 0x8364300-0x836a338 in /usr/lib/x86_64-linux-gnu/libnss_files-2.31.so (have_dinfo 1) --55837-- Discarding syms at 0x9376210-0x93775ea in /usr/lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2 (have_dinfo 1) --55837-- Discarding syms at 0x93961b0-0x9399172 in /usr/lib/x86_64-linux-gnu/libnss_dns-2.31.so (have_dinfo 1) --55837-- Discarding syms at 0x937f3b0-0x938c1ec in /usr/lib/x86_64-linux-gnu/libresolv-2.31.so (have_dinfo 1) ==55837== ==55837== FILE DESCRIPTORS: 8 open at exit. ==55837== Open file descriptor 8: data/wordlist.txt ==55837== at 0x50D6C64: open (open64.c:48) ==55837== by 0x50690D1: _IO_file_open (fileops.c:189) ==55837== by 0x50692A9: _IO_file_fopen@@GLIBC_2.2.5 (fileops.c:281) ==55837== by 0x505CC08: __fopen_internal (iofopen.c:75) ==55837== by 0x216D43: io_open_impl (system.cpp:373) ==55837== by 0x216DC5: io_open (system.cpp:384) ==55837== by 0x20D726: CStorage::OpenFile(char const*, int, int, char*, int) (storage.cpp:386) ==55837== by 0x196FCE: CScore::CScore(CGameContext*, CDbConnectionPool*) (score.cpp:89) ==55837== by 0x17785E: CGameContext::OnInit() (gamecontext.cpp:3305) ==55837== by 0x12EBE6: CServer::Run() (server.cpp:2488) ==55837== by 0x135017: main (server.cpp:3718) ==55837== ==55837== Open AF_INET6 socket 7: [::]:8303 <-> unbound ==55837== at 0x50E7477: socket (syscall-template.S:120) ==55837== by 0x219967: priv_net_create_socket (system.cpp:1523) ==55837== by 0x219CBB: net_udp_create (system.cpp:1646) ==55837== by 0x20453D: CNetServer::Open(NETADDR, CNetBan*, int, int, int) (network_server.cpp:55) ==55837== by 0x12E9C0: CServer::Run() (server.cpp:2459) ==55837== by 0x135017: main (server.cpp:3718) ==55837== ==55837== Open AF_INET socket 6: 0.0.0.0:8303 <-> unbound ==55837== at 0x50E7477: socket (syscall-template.S:120) ==55837== by 0x219967: priv_net_create_socket (system.cpp:1523) ==55837== by 0x219BB5: net_udp_create (system.cpp:1598) ==55837== by 0x20453D: CNetServer::Open(NETADDR, CNetBan*, int, int, int) (network_server.cpp:55) ==55837== by 0x12E9C0: CServer::Run() (server.cpp:2459) ==55837== by 0x135017: main (server.cpp:3718) ==55837== ==55837== Open file descriptor 4: /dev/urandom ==55837== at 0x50D6BE7: open (open64.c:48) ==55837== by 0x50690D1: _IO_file_open (fileops.c:189) ==55837== by 0x50692A9: _IO_file_fopen@@GLIBC_2.2.5 (fileops.c:281) ==55837== by 0x505CC08: __fopen_internal (iofopen.c:75) ==55837== by 0x216D43: io_open_impl (system.cpp:373) ==55837== by 0x216DC5: io_open (system.cpp:384) ==55837== by 0x21EED7: secure_random_init (system.cpp:3784) ==55837== by 0x134A10: main (server.cpp:3634) ==55837== ==55837== Open file descriptor 3: /home/chiller/Desktop/git/ddnet/build/valgrind-out.txt ==55837== ==55837== ==55837== Open file descriptor 2: /dev/pts/4 ==55837== ==55837== ==55837== Open file descriptor 1: /dev/pts/4 ==55837== ==55837== ==55837== Open file descriptor 0: /dev/pts/4 ==55837== ==55837== ==55837== ==55837== HEAP SUMMARY: ==55837== in use at exit: 944 bytes in 2 blocks ==55837== total heap usage: 2,518 allocs, 2,516 frees, 31,260,572 bytes allocated ==55837== ==55837== Searching for pointers to 2 not-freed blocks ==55837== Checked 883,296 bytes ==55837== ==55837== 472 bytes in 1 blocks are still reachable in loss record 1 of 2 ==55837== at 0x483877F: malloc (vg_replace_malloc.c:307) ==55837== by 0x505CBAA: __fopen_internal (iofopen.c:65) ==55837== by 0x216D43: io_open_impl (system.cpp:373) ==55837== by 0x216DC5: io_open (system.cpp:384) ==55837== by 0x21EED7: secure_random_init (system.cpp:3784) ==55837== by 0x134A10: main (server.cpp:3634) ==55837== ==55837== 472 bytes in 1 blocks are still reachable in loss record 2 of 2 ==55837== at 0x483877F: malloc (vg_replace_malloc.c:307) ==55837== by 0x505CBAA: __fopen_internal (iofopen.c:65) ==55837== by 0x216D43: io_open_impl (system.cpp:373) ==55837== by 0x216DC5: io_open (system.cpp:384) ==55837== by 0x20D726: CStorage::OpenFile(char const*, int, int, char*, int) (storage.cpp:386) ==55837== by 0x196FCE: CScore::CScore(CGameContext*, CDbConnectionPool*) (score.cpp:89) ==55837== by 0x17785E: CGameContext::OnInit() (gamecontext.cpp:3305) ==55837== by 0x12EBE6: CServer::Run() (server.cpp:2488) ==55837== by 0x135017: main (server.cpp:3718) ==55837== ==55837== LEAK SUMMARY: ==55837== definitely lost: 0 bytes in 0 blocks ==55837== indirectly lost: 0 bytes in 0 blocks ==55837== possibly lost: 0 bytes in 0 blocks ==55837== still reachable: 944 bytes in 2 blocks ==55837== suppressed: 0 bytes in 0 blocks ==55837== ==55837== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)