Code Monkey home page Code Monkey logo

Comments (7)

W2Wizard avatar W2Wizard commented on July 25, 2024

To help you better understand what the leaks origins might be, i had this output of valgrind(valgrind-3.20.0 Linux) of the executable of the example in the bottom of this repo's README.md. (I hope it serves useful!)

==23779== Memcheck, a memory error detector
==23779== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==23779== Using Valgrind-3.20.0-5147d671e4-20221024 and LibVEX; rerun with -h for copyright info
==23779== Command: ./a.out
==23779== Parent PID: 3604
==23779== 
--23779-- 
--23779-- Valgrind options:
--23779--    --verbose
--23779--    --leak-check=full
--23779--    --track-origins=yes
--23779--    --log-file=valgrind_output_new
--23779-- Contents of /proc/version:
--23779--   Linux version 5.8.0-63-generic (buildd@lgw01-amd64-035) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #71~20.04.1-Ubuntu SMP Thu Jul 15 17:46:08 UTC 2021
--23779-- 
--23779-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-sse3-ssse3
--23779-- Page sizes: currently 4096, max supported 4096
--23779-- Valgrind library directory: /usr/local/libexec/valgrind
--23779-- Reading syms from /home/linus-penguin/mlx_project/a.out
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/ld-2.31.so
--23779--   Considering /usr/lib/x86_64-linux-gnu/ld-2.31.so ..
--23779--   .. CRC mismatch (computed 6cded93a wanted 1af57820)
--23779--   Considering /lib/x86_64-linux-gnu/ld-2.31.so ..
--23779--   .. CRC mismatch (computed 6cded93a wanted 1af57820)
--23779--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.31.so ..
--23779--   .. CRC is valid
--23779-- Reading syms from /usr/local/libexec/valgrind/memcheck-amd64-linux
--23779--    object doesn't have a dynamic symbol table
--23779-- Scheduler: using generic scheduler lock implementation.
--23779-- Reading suppressions file: /usr/local/libexec/valgrind/default.supp
==23779== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-23779-by-linus-penguin-on-???
==23779== embedded gdbserver: writing to   /tmp/vgdb-pipe-to-vgdb-from-23779-by-linus-penguin-on-???
==23779== embedded gdbserver: shared mem   /tmp/vgdb-pipe-shared-mem-vgdb-23779-by-linus-penguin-on-???
==23779== 
==23779== TO CONTROL THIS PROCESS USING vgdb (which you probably
==23779== don't want to do, unless you know exactly what you're doing,
==23779== or are doing some strange experiment):
==23779==   /usr/local/libexec/valgrind/../../bin/vgdb --pid=23779 ...command...
==23779== 
==23779== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==23779==   /path/to/gdb ./a.out
==23779== and then give GDB the following command
==23779==   target remote | /usr/local/libexec/valgrind/../../bin/vgdb --pid=23779
==23779== --pid is optional if only one valgrind process is running
==23779== 
--23779-- REDIR: 0x4022d80 (ld-linux-x86-64.so.2:strlen) redirected to 0x580be542 (vgPlain_amd64_linux_REDIR_FOR_strlen)
--23779-- REDIR: 0x4022b50 (ld-linux-x86-64.so.2:index) redirected to 0x580be55c (vgPlain_amd64_linux_REDIR_FOR_index)
--23779-- Reading syms from /usr/local/libexec/valgrind/vgpreload_core-amd64-linux.so
--23779-- Reading syms from /usr/local/libexec/valgrind/vgpreload_memcheck-amd64-linux.so
==23779== WARNING: new redirection conflicts with existing -- ignoring it
--23779--     old: 0x04022d80 (strlen              ) R-> (0000.0) 0x580be542 vgPlain_amd64_linux_REDIR_FOR_strlen
--23779--     new: 0x04022d80 (strlen              ) R-> (2007.0) 0x048426e0 strlen
--23779-- REDIR: 0x401f560 (ld-linux-x86-64.so.2:strcmp) redirected to 0x48436d0 (strcmp)
--23779-- REDIR: 0x40232e0 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4847330 (mempcpy)
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libglfw.so.3.3
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libdl-2.31.so
--23779--   Considering /usr/lib/x86_64-linux-gnu/libdl-2.31.so ..
--23779--   .. CRC mismatch (computed a3ca3288 wanted 3cde2f36)
--23779--   Considering /lib/x86_64-linux-gnu/libdl-2.31.so ..
--23779--   .. CRC mismatch (computed a3ca3288 wanted 3cde2f36)
--23779--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libdl-2.31.so ..
--23779--   .. CRC is valid
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libc-2.31.so
--23779--   Considering /usr/lib/x86_64-linux-gnu/libc-2.31.so ..
--23779--   .. CRC mismatch (computed cd1655d1 wanted 09373696)
--23779--   Considering /lib/x86_64-linux-gnu/libc-2.31.so ..
--23779--   .. CRC mismatch (computed cd1655d1 wanted 09373696)
--23779--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.31.so ..
--23779--   .. CRC is valid
==23779== WARNING: new redirection conflicts with existing -- ignoring it
--23779--     old: 0x049733d0 (memalign            ) R-> (1011.0) 0x048419a6 memalign
--23779--     new: 0x049733d0 (memalign            ) R-> (1017.0) 0x04841979 aligned_alloc
==23779== WARNING: new redirection conflicts with existing -- ignoring it
--23779--     old: 0x049733d0 (memalign            ) R-> (1011.0) 0x048419a6 memalign
--23779--     new: 0x049733d0 (memalign            ) R-> (1017.0) 0x0484194c aligned_alloc
==23779== WARNING: new redirection conflicts with existing -- ignoring it
--23779--     old: 0x049733d0 (memalign            ) R-> (1011.0) 0x048419a6 memalign
--23779--     new: 0x049733d0 (memalign            ) R-> (1017.0) 0x04841979 aligned_alloc
==23779== WARNING: new redirection conflicts with existing -- ignoring it
--23779--     old: 0x049733d0 (memalign            ) R-> (1011.0) 0x048419a6 memalign
--23779--     new: 0x049733d0 (memalign            ) R-> (1017.0) 0x0484194c aligned_alloc
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libm-2.31.so
--23779--   Considering /usr/lib/x86_64-linux-gnu/libm-2.31.so ..
--23779--   .. CRC mismatch (computed b88da5c9 wanted 1658d783)
--23779--   Considering /lib/x86_64-linux-gnu/libm-2.31.so ..
--23779--   .. CRC mismatch (computed b88da5c9 wanted 1658d783)
--23779--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libm-2.31.so ..
--23779--   .. CRC is valid
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
--23779--   Considering /usr/lib/debug/.build-id/4f/c5fc33f4429136a494c640b113d76f610e4abc.debug ..
--23779--   .. build-id is valid
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
--23779--   Considering /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0 ..
--23779--   .. CRC mismatch (computed 7de9b6ad wanted e8a17129)
--23779--   Considering /lib/x86_64-linux-gnu/libXau.so.6.0.0 ..
--23779--   .. CRC mismatch (computed 7de9b6ad wanted e8a17129)
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libbsd.so.0.10.0
--23779--    object doesn't have a symbol table
--23779-- REDIR: 0x4978600 (libc.so.6:memmove) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4977900 (libc.so.6:strncpy) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4978930 (libc.so.6:strcasecmp) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4977220 (libc.so.6:strcat) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4977960 (libc.so.6:rindex) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4979dd0 (libc.so.6:rawmemchr) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4994e60 (libc.so.6:wmemchr) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x49949a0 (libc.so.6:wcscmp) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4978760 (libc.so.6:mempcpy) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4978590 (libc.so.6:bcmp) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4977890 (libc.so.6:strncmp) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x49772d0 (libc.so.6:strcmp) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x49786c0 (libc.so.6:memset) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4994960 (libc.so.6:wcschr) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x49777f0 (libc.so.6:strnlen) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x49773b0 (libc.so.6:strcspn) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4978980 (libc.so.6:strncasecmp) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4977350 (libc.so.6:strcpy) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4978ad0 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x49960d0 (libc.so.6:wcsnlen) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x49949e0 (libc.so.6:wcscpy) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x49779a0 (libc.so.6:strpbrk) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4977280 (libc.so.6:index) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x49777b0 (libc.so.6:strlen) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4980d20 (libc.so.6:memrchr) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x49789d0 (libc.so.6:strcasecmp_l) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4978550 (libc.so.6:memchr) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4994ab0 (libc.so.6:wcslen) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4977c60 (libc.so.6:strspn) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x49788d0 (libc.so.6:stpncpy) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4978870 (libc.so.6:stpcpy) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4979e10 (libc.so.6:strchrnul) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4978a20 (libc.so.6:strncasecmp_l) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4a058e0 (libc.so.6:__memcpy_chk) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4978470 (libc.so.6:strstr) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4977830 (libc.so.6:strncat) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0x4989a30 (libc.so.6:__strrchr_sse2) redirected to 0x4842110 (__strrchr_sse2)
--23779-- REDIR: 0x4994070 (libc.so.6:__memset_sse2_unaligned) redirected to 0x4846270 (memset)
--23779-- REDIR: 0x4972260 (libc.so.6:malloc) redirected to 0x483c7dd (malloc)
--23779-- REDIR: 0x4973c90 (libc.so.6:calloc) redirected to 0x484139e (calloc)
--23779-- REDIR: 0x4989d30 (libc.so.6:__strlen_sse2) redirected to 0x4842620 (__strlen_sse2)
--23779-- REDIR: 0x4a56c50 (libc.so.6:__strncmp_sse42) redirected to 0x4842de0 (__strncmp_sse42)
--23779-- REDIR: 0x4993c40 (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4843800 (memcpy@GLIBC_2.2.5)
--23779-- REDIR: 0x4972850 (libc.so.6:free) redirected to 0x483f036 (free)
--23779-- REDIR: 0x4989820 (libc.so.6:__strchrnul_sse2) redirected to 0x4846e40 (strchrnul)
--23779-- REDIR: 0x4a05c90 (libc.so.6:__strcpy_chk) redirected to 0x4846eb0 (__strcpy_chk)
--23779-- REDIR: 0x4978120 (libc.so.6:__GI_strstr) redirected to 0x48475d0 (__strstr_sse2)
--23779-- REDIR: 0x4a654e0 (libc.so.6:__memcmp_sse4_1) redirected to 0x4845a80 (__memcmp_sse4_1)
--23779-- REDIR: 0x4973000 (libc.so.6:realloc) redirected to 0x48415eb (realloc)
--23779-- REDIR: 0x498f2a0 (libc.so.6:__strncpy_sse2_unaligned) redirected to 0x4842b90 (__strncpy_sse2_unaligned)
--23779-- REDIR: 0x4993560 (libc.so.6:__strstr_sse2_unaligned) redirected to 0x4847530 (strstr)
--23779-- REDIR: 0x49895f0 (libc.so.6:__strchr_sse2) redirected to 0x4842230 (__strchr_sse2)
--23779-- REDIR: 0x4993c20 (libc.so.6:__mempcpy_sse2_unaligned) redirected to 0x4846f50 (mempcpy)
--23779-- REDIR: 0x4984030 (libc.so.6:__memchr_sse2) redirected to 0x4843750 (memchr)
--23779-- REDIR: 0x4982520 (libc.so.6:__strcmp_sse2_unaligned) redirected to 0x48435d0 (strcmp)
--23779-- REDIR: 0x498ec70 (libc.so.6:__strcpy_sse2_unaligned) redirected to 0x4842710 (strcpy)
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1.0.0
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
--23779--   Considering /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0 ..
--23779--   .. CRC mismatch (computed 7e27e1ef wanted 4ab025b2)
--23779--   Considering /lib/x86_64-linux-gnu/libXext.so.6.4.0 ..
--23779--   .. CRC mismatch (computed 7e27e1ef wanted 4ab025b2)
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libXrandr.so.2.2.0
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libXinerama.so.1.0.0
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
--23779--    object doesn't have a symbol table
--23779-- REDIR: 0x49902b0 (libc.so.6:__stpcpy_sse2_unaligned) redirected to 0x4845e70 (__stpcpy_sse2_unaligned)
--23779-- REDIR: 0x4a5b7b0 (libc.so.6:__strcspn_sse42) redirected to 0x4847780 (strcspn)
--23779-- REDIR: 0x4993c30 (libc.so.6:__memcpy_chk_sse2_unaligned) redirected to 0x4847420 (__memcpy_chk)
--23779-- REDIR: 0x4a5ba30 (libc.so.6:__strspn_sse42) redirected to 0x4847880 (strspn)
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libGL.so.1.7.0
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0.0.0
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0.0.0
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0.0.0
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0.0.0
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libXdamage.so.1.1.0
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libexpat.so.1.6.11
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0.0.0
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb-present.so.0.0.0
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1.0.0
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libxshmfence.so.1.0.0
--23779--    object doesn't have a symbol table
--23779-- REDIR: 0x4989ed0 (libc.so.6:__strnlen_sse2) redirected to 0x4842560 (strnlen)
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libz.so.1.2.11
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libzstd.so.1.4.4
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libsensors.so.5.0.0
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1.0.1
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libelf-0.176.so
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libdrm_amdgpu.so.1.0.0
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libdrm_nouveau.so.2.0.0
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libvulkan.so.1.2.131
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libgcc_s.so.1
--23779--    object doesn't have a symbol table
--23779-- REDIR: 0x40209b0 (ld-linux-x86-64.so.2:strncmp) redirected to 0x4842ec0 (strncmp)
--23779-- REDIR: 0x4023140 (ld-linux-x86-64.so.2:stpcpy) redirected to 0x4845ff0 (stpcpy)
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libffi.so.7.1.0
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libedit.so.2.0.63
--23779--    object doesn't have a symbol table
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/librt-2.31.so
--23779--   Considering /usr/lib/x86_64-linux-gnu/librt-2.31.so ..
--23779--   .. CRC mismatch (computed 6a819213 wanted 953fa4ef)
--23779--   Considering /lib/x86_64-linux-gnu/librt-2.31.so ..
--23779--   .. CRC mismatch (computed 6a819213 wanted 953fa4ef)
--23779--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/librt-2.31.so ..
--23779--   .. CRC is valid
--23779-- Reading syms from /usr/lib/x86_64-linux-gnu/libtinfo.so.6.2
--23779--    object doesn't have a symbol table
--23779-- REDIR: 0x4994b50 (libc.so.6:wcsncmp) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--23779-- REDIR: 0xbc0ab20 (libstdc++.so.6:operator new(unsigned long)) redirected to 0x483cf67 (operator new(unsigned long))
--23779-- REDIR: 0xbc08d70 (libstdc++.so.6:operator delete(void*)) redirected to 0x483f5bb (operator delete(void*))
--23779-- REDIR: 0xbc0ab60 (libstdc++.so.6:operator new(unsigned long, std::nothrow_t const&)) redirected to 0x483d7a5 (operator new(unsigned long, std::nothrow_t const&))
--23779-- REDIR: 0x4984360 (libc.so.6:__rawmemchr_sse2) redirected to 0x4846e70 (rawmemchr)
--23779-- REDIR: 0x49749b0 (libc.so.6:posix_memalign) redirected to 0x48418b0 (posix_memalign)
--23779-- REDIR: 0xbc08d80 (libstdc++.so.6:operator delete(void*, unsigned long)) redirected to 0x483f82f (operator delete(void*, unsigned long))
--23779-- REDIR: 0xbc0ab80 (libstdc++.so.6:operator new[](unsigned long)) redirected to 0x483e191 (operator new[](unsigned long))
--23779-- REDIR: 0xbc08da0 (libstdc++.so.6:operator delete[](void*)) redirected to 0x48405ad (operator delete[](void*))
--23779-- REDIR: 0x4a57c30 (libc.so.6:__strcasecmp_sse42) redirected to 0x4842f30 (strcasecmp)
--23779-- memcheck GC: 1000 nodes, 119 survivors (11.9%)
--23779-- memcheck GC: 1000 nodes, 119 survivors (11.9%)
--23779-- memcheck GC: 1000 nodes, 119 survivors (11.9%)
--23779-- memcheck GC: 1000 nodes, 126 survivors (12.6%)
--23779-- memcheck GC: 1000 nodes, 129 survivors (12.9%)
--23779-- memcheck GC: 1000 nodes, 346 survivors (34.6%)
--23779-- memcheck GC: 1014 new table size (driftup)
--23779-- memcheck GC: 1014 nodes, 411 survivors (40.5%)
--23779-- memcheck GC: 1029 new table size (driftup)
--23779-- memcheck GC: 1029 nodes, 663 survivors (64.4%)
--23779-- memcheck GC: 1455 new table size (stepup)
==23779== Conditional jump or move depends on uninitialised value(s)
==23779==    at 0x803A343: ??? (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779==    by 0x7F7A5E7: llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779==    by 0x7DE4D75: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779==    by 0x7DE4FF2: llvm::FPPassManager::runOnModule(llvm::Module&) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779==    by 0x7DE549F: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779==    by 0x8F30B34: llvm::MCJIT::emitObject(llvm::Module*) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779==    by 0x8F30F1D: llvm::MCJIT::generateCodeForModule(llvm::Module*) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779==    by 0x8F316AD: llvm::MCJIT::finalizeObject() (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779==    by 0x8EF587F: LLVMGetPointerToGlobal (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779==    by 0x6409041: ??? (in /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so)
==23779==    by 0x63FD9EF: ??? (in /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so)
==23779==    by 0x63E9937: ??? (in /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so)
==23779==  Uninitialised value was created by a stack allocation
==23779==    at 0x8038D3A: ??? (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779== 
--23779-- memcheck GC: 1455 nodes, 392 survivors (26.9%)
--23779-- memcheck GC: 1476 new table size (driftup)
--23779-- memcheck GC: 1476 nodes, 1386 survivors (93.9%)
--23779-- memcheck GC: 2087 new table size (stepup)
--23779-- memcheck GC: 2087 nodes, 297 survivors (14.2%)
--23779-- memcheck GC: 2087 nodes, 298 survivors (14.3%)
--23779-- Discarding syms at 0x5dd5ff0-0x6b18ab2 in /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so (have_dinfo 1)
--23779-- Discarding syms at 0xba12240-0xbaa3d0a in /usr/lib/x86_64-linux-gnu/libzstd.so.1.4.4 (have_dinfo 1)
--23779-- Discarding syms at 0xbaba580-0xbac0f68 in /usr/lib/x86_64-linux-gnu/libsensors.so.5.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0xbaca2a0-0xbad0b5d in /usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1.0.1 (have_dinfo 1)
--23779-- Discarding syms at 0xbada580-0xbaeb105 in /usr/lib/x86_64-linux-gnu/libelf-0.176.so (have_dinfo 1)
--23779-- Discarding syms at 0xbaf6740-0xbafaf01 in /usr/lib/x86_64-linux-gnu/libdrm_amdgpu.so.1.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0xbb013c0-0xbb051ae in /usr/lib/x86_64-linux-gnu/libdrm_nouveau.so.2.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0xbb196c0-0xbb4af16 in /usr/lib/x86_64-linux-gnu/libvulkan.so.1.2.131 (have_dinfo 1)
--23779-- Discarding syms at 0x5417660-0x541c288 in /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2 (have_dinfo 1)
--23779-- Discarding syms at 0x51ff360-0x52056b9 in /usr/lib/x86_64-linux-gnu/libXrandr.so.2.2.0 (have_dinfo 1)
--23779-- Discarding syms at 0x542a0f0-0x542aa31 in /usr/lib/x86_64-linux-gnu/libXinerama.so.1.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0x520ba60-0x5211ab5 in /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0 (have_dinfo 1)
--23779-- Discarding syms at 0x51ed460-0x51f7d1b in /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0 (have_dinfo 1)
--23779-- Discarding syms at 0x58761c0-0x587901d in /usr/lib/x86_64-linux-gnu/libGL.so.1.7.0 (have_dinfo 1)
--23779-- Discarding syms at 0x5976700-0x599048c in /usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0x58fb240-0x58fd4eb in /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0x59c1d60-0x5a04a42 in /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0x542f040-0x542f11f in /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0x5423300-0x54256ea in /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0 (have_dinfo 1)
--23779-- Discarding syms at 0x51d0240-0x51d29f9 in /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0x51da5e0-0x51e484e in /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0 (have_dinfo 1)
--23779-- Discarding syms at 0x5a2f1a0-0x5a3c410 in /usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0x5a61780-0x5a6b489 in /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0 (have_dinfo 1)
--23779-- Discarding syms at 0x5a7d0a0-0x5a85b29 in /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0x5a910a0-0x5a92309 in /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0x5a971a0-0x5a97b1b in /usr/lib/x86_64-linux-gnu/libXdamage.so.1.1.0 (have_dinfo 1)
--23779-- Discarding syms at 0x5a9f230-0x5abab07 in /usr/lib/x86_64-linux-gnu/libexpat.so.1.6.11 (have_dinfo 1)
--23779-- Discarding syms at 0x5acb0e0-0x5acbfd7 in /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0x5ad00a0-0x5ad097a in /usr/lib/x86_64-linux-gnu/libxcb-present.so.0.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0x5ad7100-0x5ad9416 in /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1.0.0 (have_dinfo 1)
--23779-- Discarding syms at 0x5ade960-0x5adec2c in /usr/lib/x86_64-linux-gnu/libxshmfence.so.1.0.0 (have_dinfo 1)
==23779== 
==23779== HEAP SUMMARY:
==23779==     in use at exit: 298,622 bytes in 2,554 blocks
==23779==   total heap usage: 166,353 allocs, 163,799 frees, 76,537,183 bytes allocated
==23779== 
==23779== Searching for pointers to 2,554 not-freed blocks
==23779== Checked 12,997,488 bytes
==23779== 
==23779== 112 (56 direct, 56 indirect) bytes in 1 blocks are definitely lost in loss record 1,887 of 1,927
==23779==    at 0x4841428: calloc (vg_replace_malloc.c:1340)
==23779==    by 0x676607E: ???
==23779==    by 0x63E1C3B: ???
==23779==    by 0x63CC7A5: ???
==23779==    by 0x63CC86C: ???
==23779==    by 0x63CD479: ???
==23779==    by 0x6390A33: ???
==23779==    by 0x639335C: ???
==23779==    by 0x638E2BC: ???
==23779==    by 0x6351357: ???
==23779==    by 0x637533D: ???
==23779==    by 0x6372C76: ???
==23779== 
==23779== 5,294 bytes in 255 blocks are definitely lost in loss record 1,922 of 1,927
==23779==    at 0x483C853: malloc (vg_replace_malloc.c:393)
==23779==    by 0x497750E: strdup (strdup.c:42)
==23779==    by 0x5A3C0D6: ???
==23779==    by 0x5A3BE84: ???
==23779==    by 0x59DDE16: ???
==23779==    by 0x58FB436: ???
==23779==    by 0x58FBE1C: ???
==23779==    by 0x5977419: ???
==23779==    by 0x5978C57: ???
==23779==    by 0x4880A06: ??? (in /usr/lib/x86_64-linux-gnu/libglfw.so.3.3)
==23779==    by 0x486FDEB: ??? (in /usr/lib/x86_64-linux-gnu/libglfw.so.3.3)
==23779==    by 0x48756AA: glfwCreateWindow (in /usr/lib/x86_64-linux-gnu/libglfw.so.3.3)
==23779== 
==23779== LEAK SUMMARY:
==23779==    definitely lost: 5,350 bytes in 256 blocks
==23779==    indirectly lost: 56 bytes in 1 blocks
==23779==      possibly lost: 0 bytes in 0 blocks
==23779==    still reachable: 293,172 bytes in 2,295 blocks
==23779==         suppressed: 44 bytes in 2 blocks
==23779== Reachable blocks (those to which a pointer was found) are not shown.
==23779== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==23779== 
==23779== ERROR SUMMARY: 185 errors from 3 contexts (suppressed: 0 from 0)
==23779== 
==23779== 183 errors in context 1 of 3:
==23779== Conditional jump or move depends on uninitialised value(s)
==23779==    at 0x803A343: ??? (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779==    by 0x7F7A5E7: llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779==    by 0x7DE4D75: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779==    by 0x7DE4FF2: llvm::FPPassManager::runOnModule(llvm::Module&) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779==    by 0x7DE549F: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779==    by 0x8F30B34: llvm::MCJIT::emitObject(llvm::Module*) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779==    by 0x8F30F1D: llvm::MCJIT::generateCodeForModule(llvm::Module*) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779==    by 0x8F316AD: llvm::MCJIT::finalizeObject() (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779==    by 0x8EF587F: LLVMGetPointerToGlobal (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779==    by 0x6409041: ???
==23779==    by 0x63FD9EF: ???
==23779==    by 0x63E9937: ???
==23779==  Uninitialised value was created by a stack allocation
==23779==    at 0x8038D3A: ??? (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==23779== 
--23779-- 
--23779-- used_suppression:      2 dtv-addr-init /usr/local/libexec/valgrind/default.supp:1476 suppressed: 44 bytes in 2 blocks
==23779== 
==23779== ERROR SUMMARY: 185 errors from 3 contexts (suppressed: 0 from 0)

from mlx42.

W2Wizard avatar W2Wizard commented on July 25, 2024

This is not telling me much besides that its not from me but from GLFW itself?

Also its using 3.3 instead of 3.8 so the leak might be fixed in the later version.

from mlx42.

W2Wizard avatar W2Wizard commented on July 25, 2024

What version of MLX42 are you using?

from mlx42.

m4nnb3ll avatar m4nnb3ll commented on July 25, 2024

I am using the latest version of MLX42.
9b17358

from mlx42.

m4nnb3ll avatar m4nnb3ll commented on July 25, 2024

So i can assume that the leaks are not from the MLX42 itself but from GLFW? I used the latest version of GLFW and i still get leaks:

==6689== Memcheck, a memory error detector
==6689== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==6689== Using Valgrind-3.20.0-5147d671e4-20221024 and LibVEX; rerun with -h for copyright info
==6689== Command: ./a.out
==6689== Parent PID: 1658
==6689== 
--6689-- 
--6689-- Valgrind options:
--6689--    --leak-check=full
--6689--    --verbose
--6689--    --track-origins=yes
--6689--    --log-file=valgrind_log
--6689-- Contents of /proc/version:
--6689--   Linux version 5.8.0-63-generic (buildd@lgw01-amd64-035) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #71~20.04.1-Ubuntu SMP Thu Jul 15 17:46:08 UTC 2021
--6689-- 
--6689-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-sse3-ssse3
--6689-- Page sizes: currently 4096, max supported 4096
--6689-- Valgrind library directory: /usr/local/libexec/valgrind
--6689-- Reading syms from /home/linus-penguin/mlx_project/a.out
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/ld-2.31.so
--6689--   Considering /usr/lib/x86_64-linux-gnu/ld-2.31.so ..
--6689--   .. CRC mismatch (computed 6cded93a wanted 1af57820)
--6689--   Considering /lib/x86_64-linux-gnu/ld-2.31.so ..
--6689--   .. CRC mismatch (computed 6cded93a wanted 1af57820)
--6689--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.31.so ..
--6689--   .. CRC is valid
--6689-- Reading syms from /usr/local/libexec/valgrind/memcheck-amd64-linux
--6689--    object doesn't have a dynamic symbol table
--6689-- Scheduler: using generic scheduler lock implementation.
--6689-- Reading suppressions file: /usr/local/libexec/valgrind/default.supp
==6689== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-6689-by-linus-penguin-on-???
==6689== embedded gdbserver: writing to   /tmp/vgdb-pipe-to-vgdb-from-6689-by-linus-penguin-on-???
==6689== embedded gdbserver: shared mem   /tmp/vgdb-pipe-shared-mem-vgdb-6689-by-linus-penguin-on-???
==6689== 
==6689== TO CONTROL THIS PROCESS USING vgdb (which you probably
==6689== don't want to do, unless you know exactly what you're doing,
==6689== or are doing some strange experiment):
==6689==   /usr/local/libexec/valgrind/../../bin/vgdb --pid=6689 ...command...
==6689== 
==6689== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==6689==   /path/to/gdb ./a.out
==6689== and then give GDB the following command
==6689==   target remote | /usr/local/libexec/valgrind/../../bin/vgdb --pid=6689
==6689== --pid is optional if only one valgrind process is running
==6689== 
--6689-- REDIR: 0x4022d80 (ld-linux-x86-64.so.2:strlen) redirected to 0x580be542 (vgPlain_amd64_linux_REDIR_FOR_strlen)
--6689-- REDIR: 0x4022b50 (ld-linux-x86-64.so.2:index) redirected to 0x580be55c (vgPlain_amd64_linux_REDIR_FOR_index)
--6689-- Reading syms from /usr/local/libexec/valgrind/vgpreload_core-amd64-linux.so
--6689-- Reading syms from /usr/local/libexec/valgrind/vgpreload_memcheck-amd64-linux.so
==6689== WARNING: new redirection conflicts with existing -- ignoring it
--6689--     old: 0x04022d80 (strlen              ) R-> (0000.0) 0x580be542 vgPlain_amd64_linux_REDIR_FOR_strlen
--6689--     new: 0x04022d80 (strlen              ) R-> (2007.0) 0x048426e0 strlen
--6689-- REDIR: 0x401f560 (ld-linux-x86-64.so.2:strcmp) redirected to 0x48436d0 (strcmp)
--6689-- REDIR: 0x40232e0 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4847330 (mempcpy)
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libdl-2.31.so
--6689--   Considering /usr/lib/x86_64-linux-gnu/libdl-2.31.so ..
--6689--   .. CRC mismatch (computed a3ca3288 wanted 3cde2f36)
--6689--   Considering /lib/x86_64-linux-gnu/libdl-2.31.so ..
--6689--   .. CRC mismatch (computed a3ca3288 wanted 3cde2f36)
--6689--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libdl-2.31.so ..
--6689--   .. CRC is valid
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libm-2.31.so
--6689--   Considering /usr/lib/x86_64-linux-gnu/libm-2.31.so ..
--6689--   .. CRC mismatch (computed b88da5c9 wanted 1658d783)
--6689--   Considering /lib/x86_64-linux-gnu/libm-2.31.so ..
--6689--   .. CRC mismatch (computed b88da5c9 wanted 1658d783)
--6689--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libm-2.31.so ..
--6689--   .. CRC is valid
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
--6689--   Considering /usr/lib/debug/.build-id/4f/c5fc33f4429136a494c640b113d76f610e4abc.debug ..
--6689--   .. build-id is valid
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libc-2.31.so
--6689--   Considering /usr/lib/x86_64-linux-gnu/libc-2.31.so ..
--6689--   .. CRC mismatch (computed cd1655d1 wanted 09373696)
--6689--   Considering /lib/x86_64-linux-gnu/libc-2.31.so ..
--6689--   .. CRC mismatch (computed cd1655d1 wanted 09373696)
--6689--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.31.so ..
--6689--   .. CRC is valid
==6689== WARNING: new redirection conflicts with existing -- ignoring it
--6689--     old: 0x04bb93d0 (memalign            ) R-> (1011.0) 0x048419a6 memalign
--6689--     new: 0x04bb93d0 (memalign            ) R-> (1017.0) 0x04841979 aligned_alloc
==6689== WARNING: new redirection conflicts with existing -- ignoring it
--6689--     old: 0x04bb93d0 (memalign            ) R-> (1011.0) 0x048419a6 memalign
--6689--     new: 0x04bb93d0 (memalign            ) R-> (1017.0) 0x0484194c aligned_alloc
==6689== WARNING: new redirection conflicts with existing -- ignoring it
--6689--     old: 0x04bb93d0 (memalign            ) R-> (1011.0) 0x048419a6 memalign
--6689--     new: 0x04bb93d0 (memalign            ) R-> (1017.0) 0x04841979 aligned_alloc
==6689== WARNING: new redirection conflicts with existing -- ignoring it
--6689--     old: 0x04bb93d0 (memalign            ) R-> (1011.0) 0x048419a6 memalign
--6689--     new: 0x04bb93d0 (memalign            ) R-> (1017.0) 0x0484194c aligned_alloc
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
--6689--   Considering /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0 ..
--6689--   .. CRC mismatch (computed 7de9b6ad wanted e8a17129)
--6689--   Considering /lib/x86_64-linux-gnu/libXau.so.6.0.0 ..
--6689--   .. CRC mismatch (computed 7de9b6ad wanted e8a17129)
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libbsd.so.0.10.0
--6689--    object doesn't have a symbol table
--6689-- REDIR: 0x4bbe600 (libc.so.6:memmove) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbd900 (libc.so.6:strncpy) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbe930 (libc.so.6:strcasecmp) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbd220 (libc.so.6:strcat) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbd960 (libc.so.6:rindex) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbfdd0 (libc.so.6:rawmemchr) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bdae60 (libc.so.6:wmemchr) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bda9a0 (libc.so.6:wcscmp) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbe760 (libc.so.6:mempcpy) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbe590 (libc.so.6:bcmp) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbd890 (libc.so.6:strncmp) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbd2d0 (libc.so.6:strcmp) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbe6c0 (libc.so.6:memset) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bda960 (libc.so.6:wcschr) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbd7f0 (libc.so.6:strnlen) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbd3b0 (libc.so.6:strcspn) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbe980 (libc.so.6:strncasecmp) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbd350 (libc.so.6:strcpy) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbead0 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bdc0d0 (libc.so.6:wcsnlen) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bda9e0 (libc.so.6:wcscpy) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbd9a0 (libc.so.6:strpbrk) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbd280 (libc.so.6:index) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbd7b0 (libc.so.6:strlen) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bc6d20 (libc.so.6:memrchr) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbe9d0 (libc.so.6:strcasecmp_l) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbe550 (libc.so.6:memchr) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bdaab0 (libc.so.6:wcslen) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbdc60 (libc.so.6:strspn) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbe8d0 (libc.so.6:stpncpy) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbe870 (libc.so.6:stpcpy) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbfe10 (libc.so.6:strchrnul) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbea20 (libc.so.6:strncasecmp_l) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbd830 (libc.so.6:strncat) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bbe470 (libc.so.6:strstr) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bcfa30 (libc.so.6:__strrchr_sse2) redirected to 0x4842110 (__strrchr_sse2)
--6689-- REDIR: 0x4bda070 (libc.so.6:__memset_sse2_unaligned) redirected to 0x4846270 (memset)
--6689-- REDIR: 0x4bc8520 (libc.so.6:__strcmp_sse2_unaligned) redirected to 0x48435d0 (strcmp)
--6689-- REDIR: 0x4bcfd30 (libc.so.6:__strlen_sse2) redirected to 0x4842620 (__strlen_sse2)
--6689-- REDIR: 0x4c9cc50 (libc.so.6:__strncmp_sse42) redirected to 0x4842de0 (__strncmp_sse42)
--6689-- REDIR: 0x4bca030 (libc.so.6:__memchr_sse2) redirected to 0x4843750 (memchr)
--6689-- REDIR: 0x4bcf5f0 (libc.so.6:__strchr_sse2) redirected to 0x4842230 (__strchr_sse2)
--6689-- REDIR: 0x4bcf820 (libc.so.6:__strchrnul_sse2) redirected to 0x4846e40 (strchrnul)
--6689-- REDIR: 0x4bb8260 (libc.so.6:malloc) redirected to 0x483c7dd (malloc)
--6689-- REDIR: 0x4bd9c20 (libc.so.6:__mempcpy_sse2_unaligned) redirected to 0x4846f50 (mempcpy)
--6689-- REDIR: 0x4bd9c40 (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4843800 (memcpy@GLIBC_2.2.5)
--6689-- REDIR: 0x4bb8850 (libc.so.6:free) redirected to 0x483f036 (free)
--6689-- REDIR: 0x4bd62b0 (libc.so.6:__stpcpy_sse2_unaligned) redirected to 0x4845e70 (__stpcpy_sse2_unaligned)
--6689-- REDIR: 0x4bb9c90 (libc.so.6:calloc) redirected to 0x484139e (calloc)
--6689-- REDIR: 0x4c4bc90 (libc.so.6:__strcpy_chk) redirected to 0x4846eb0 (__strcpy_chk)
--6689-- REDIR: 0x4bbe120 (libc.so.6:__GI_strstr) redirected to 0x48475d0 (__strstr_sse2)
--6689-- REDIR: 0x4cab4e0 (libc.so.6:__memcmp_sse4_1) redirected to 0x4845a80 (__memcmp_sse4_1)
--6689-- REDIR: 0x4bb9000 (libc.so.6:realloc) redirected to 0x48415eb (realloc)
--6689-- REDIR: 0x4bd52a0 (libc.so.6:__strncpy_sse2_unaligned) redirected to 0x4842b90 (__strncpy_sse2_unaligned)
--6689-- REDIR: 0x4bd9560 (libc.so.6:__strstr_sse2_unaligned) redirected to 0x4847530 (strstr)
--6689-- REDIR: 0x4bd4c70 (libc.so.6:__strcpy_sse2_unaligned) redirected to 0x4842710 (strcpy)
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1.0.0
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
--6689--   Considering /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0 ..
--6689--   .. CRC mismatch (computed 7e27e1ef wanted 4ab025b2)
--6689--   Considering /lib/x86_64-linux-gnu/libXext.so.6.4.0 ..
--6689--   .. CRC mismatch (computed 7e27e1ef wanted 4ab025b2)
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libXrandr.so.2.2.0
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libXinerama.so.1.0.0
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
--6689--    object doesn't have a symbol table
--6689-- REDIR: 0x4ca17b0 (libc.so.6:__strcspn_sse42) redirected to 0x4847780 (strcspn)
--6689-- REDIR: 0x4ca1a30 (libc.so.6:__strspn_sse42) redirected to 0x4847880 (strspn)
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libGL.so.1.7.0
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0.0.0
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0.0.0
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0.0.0
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0.0.0
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libXdamage.so.1.1.0
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libexpat.so.1.6.11
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0.0.0
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb-present.so.0.0.0
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1.0.0
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libxshmfence.so.1.0.0
--6689--    object doesn't have a symbol table
--6689-- REDIR: 0x4bcfed0 (libc.so.6:__strnlen_sse2) redirected to 0x4842560 (strnlen)
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libz.so.1.2.11
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libzstd.so.1.4.4
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libsensors.so.5.0.0
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1.0.1
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libelf-0.176.so
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libdrm_amdgpu.so.1.0.0
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libdrm_nouveau.so.2.0.0
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libvulkan.so.1.2.131
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libgcc_s.so.1
--6689--    object doesn't have a symbol table
--6689-- REDIR: 0x40209b0 (ld-linux-x86-64.so.2:strncmp) redirected to 0x4842ec0 (strncmp)
--6689-- REDIR: 0x4023140 (ld-linux-x86-64.so.2:stpcpy) redirected to 0x4845ff0 (stpcpy)
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libffi.so.7.1.0
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libedit.so.2.0.63
--6689--    object doesn't have a symbol table
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/librt-2.31.so
--6689--   Considering /usr/lib/x86_64-linux-gnu/librt-2.31.so ..
--6689--   .. CRC mismatch (computed 6a819213 wanted 953fa4ef)
--6689--   Considering /lib/x86_64-linux-gnu/librt-2.31.so ..
--6689--   .. CRC mismatch (computed 6a819213 wanted 953fa4ef)
--6689--   Considering /usr/lib/debug/lib/x86_64-linux-gnu/librt-2.31.so ..
--6689--   .. CRC is valid
--6689-- Reading syms from /usr/lib/x86_64-linux-gnu/libtinfo.so.6.2
--6689--    object doesn't have a symbol table
--6689-- REDIR: 0x4c4b8e0 (libc.so.6:__memcpy_chk) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0x4bdab50 (libc.so.6:wcsncmp) redirected to 0x48311ba (_vgnU_ifunc_wrapper)
--6689-- REDIR: 0xc116b20 (libstdc++.so.6:operator new(unsigned long)) redirected to 0x483cf67 (operator new(unsigned long))
--6689-- REDIR: 0xc114d70 (libstdc++.so.6:operator delete(void*)) redirected to 0x483f5bb (operator delete(void*))
--6689-- REDIR: 0xc116b60 (libstdc++.so.6:operator new(unsigned long, std::nothrow_t const&)) redirected to 0x483d7a5 (operator new(unsigned long, std::nothrow_t const&))
--6689-- REDIR: 0x4bec220 (libc.so.6:__wmemchr_sse2) redirected to 0x4847c60 (wmemchr)
--6689-- REDIR: 0x4bca360 (libc.so.6:__rawmemchr_sse2) redirected to 0x4846e70 (rawmemchr)
--6689-- REDIR: 0x4bba9b0 (libc.so.6:posix_memalign) redirected to 0x48418b0 (posix_memalign)
--6689-- REDIR: 0x4bd9c30 (libc.so.6:__memcpy_chk_sse2_unaligned) redirected to 0x4847420 (__memcpy_chk)
--6689-- REDIR: 0xc114d80 (libstdc++.so.6:operator delete(void*, unsigned long)) redirected to 0x483f82f (operator delete(void*, unsigned long))
--6689-- REDIR: 0xc116b80 (libstdc++.so.6:operator new[](unsigned long)) redirected to 0x483e191 (operator new[](unsigned long))
--6689-- REDIR: 0xc114da0 (libstdc++.so.6:operator delete[](void*)) redirected to 0x48405ad (operator delete[](void*))
--6689-- REDIR: 0x4c9dc30 (libc.so.6:__strcasecmp_sse42) redirected to 0x4842f30 (strcasecmp)
--6689-- memcheck GC: 1000 nodes, 121 survivors (12.1%)
--6689-- memcheck GC: 1000 nodes, 121 survivors (12.1%)
--6689-- memcheck GC: 1000 nodes, 121 survivors (12.1%)
--6689-- memcheck GC: 1000 nodes, 128 survivors (12.8%)
--6689-- memcheck GC: 1000 nodes, 131 survivors (13.1%)
--6689-- memcheck GC: 1000 nodes, 343 survivors (34.3%)
--6689-- memcheck GC: 1014 new table size (driftup)
--6689-- memcheck GC: 1014 nodes, 391 survivors (38.6%)
--6689-- memcheck GC: 1029 new table size (driftup)
--6689-- memcheck GC: 1029 nodes, 662 survivors (64.3%)
--6689-- memcheck GC: 1455 new table size (stepup)
==6689== Conditional jump or move depends on uninitialised value(s)
==6689==    at 0x8546343: ??? (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==6689==    by 0x84865E7: llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==6689==    by 0x82F0D75: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==6689==    by 0x82F0FF2: llvm::FPPassManager::runOnModule(llvm::Module&) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==6689==    by 0x82F149F: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==6689==    by 0x943CB34: llvm::MCJIT::emitObject(llvm::Module*) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==6689==    by 0x943CF1D: llvm::MCJIT::generateCodeForModule(llvm::Module*) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==6689==    by 0x943D6AD: llvm::MCJIT::finalizeObject() (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==6689==    by 0x940187F: LLVMGetPointerToGlobal (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==6689==    by 0x6915041: ??? (in /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so)
==6689==    by 0x69099EF: ??? (in /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so)
==6689==    by 0x68F5937: ??? (in /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so)
==6689==  Uninitialised value was created by a stack allocation
==6689==    at 0x8544D3A: ??? (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==6689== 
--6689-- memcheck GC: 1455 nodes, 392 survivors (26.9%)
--6689-- memcheck GC: 1476 new table size (driftup)
--6689-- memcheck GC: 1476 nodes, 1386 survivors (93.9%)
--6689-- memcheck GC: 2087 new table size (stepup)
--6689-- memcheck GC: 2087 nodes, 298 survivors (14.3%)
--6689-- memcheck GC: 2087 nodes, 298 survivors (14.3%)
--6689-- Discarding syms at 0x62e1ff0-0x7024ab2 in /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so (have_dinfo 1)
--6689-- Discarding syms at 0xbf1e240-0xbfafd0a in /usr/lib/x86_64-linux-gnu/libzstd.so.1.4.4 (have_dinfo 1)
--6689-- Discarding syms at 0xbfc6580-0xbfccf68 in /usr/lib/x86_64-linux-gnu/libsensors.so.5.0.0 (have_dinfo 1)
--6689-- Discarding syms at 0xbfd62a0-0xbfdcb5d in /usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1.0.1 (have_dinfo 1)
--6689-- Discarding syms at 0xbfe6580-0xbff7105 in /usr/lib/x86_64-linux-gnu/libelf-0.176.so (have_dinfo 1)
--6689-- Discarding syms at 0xc002740-0xc006f01 in /usr/lib/x86_64-linux-gnu/libdrm_amdgpu.so.1.0.0 (have_dinfo 1)
--6689-- Discarding syms at 0xc00d3c0-0xc0111ae in /usr/lib/x86_64-linux-gnu/libdrm_nouveau.so.2.0.0 (have_dinfo 1)
--6689-- Discarding syms at 0xc0256c0-0xc056f16 in /usr/lib/x86_64-linux-gnu/libvulkan.so.1.2.131 (have_dinfo 1)
--6689-- Discarding syms at 0x591c660-0x5921288 in /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2 (have_dinfo 1)
--6689-- Discarding syms at 0x5704360-0x570a6b9 in /usr/lib/x86_64-linux-gnu/libXrandr.so.2.2.0 (have_dinfo 1)
--6689-- Discarding syms at 0x592f0f0-0x592fa31 in /usr/lib/x86_64-linux-gnu/libXinerama.so.1.0.0 (have_dinfo 1)
--6689-- Discarding syms at 0x5710a60-0x5716ab5 in /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0 (have_dinfo 1)
--6689-- Discarding syms at 0x56f2460-0x56fcd1b in /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0 (have_dinfo 1)
--6689-- Discarding syms at 0x59931c0-0x599601d in /usr/lib/x86_64-linux-gnu/libGL.so.1.7.0 (have_dinfo 1)
--6689-- Discarding syms at 0x5a93700-0x5aad48c in /usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0 (have_dinfo 1)
--6689-- Discarding syms at 0x5a18240-0x5a1a4eb in /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0.0.0 (have_dinfo 1)
--6689-- Discarding syms at 0x5eded60-0x5f21a42 in /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0.0.0 (have_dinfo 1)
--6689-- Discarding syms at 0x5934040-0x593411f in /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0 (have_dinfo 1)
--6689-- Discarding syms at 0x5928300-0x592a6ea in /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0 (have_dinfo 1)
--6689-- Discarding syms at 0x56d5240-0x56d79f9 in /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1.0.0 (have_dinfo 1)
--6689-- Discarding syms at 0x56df5e0-0x56e984e in /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0 (have_dinfo 1)
--6689-- Discarding syms at 0x5f4c1a0-0x5f59410 in /usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0 (have_dinfo 1)
--6689-- Discarding syms at 0x5f7e780-0x5f88489 in /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0 (have_dinfo 1)
--6689-- Discarding syms at 0x5f9a0a0-0x5fa2b29 in /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0.0.0 (have_dinfo 1)
--6689-- Discarding syms at 0x48570a0-0x4858309 in /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0.0.0 (have_dinfo 1)
--6689-- Discarding syms at 0x485d1a0-0x485db1b in /usr/lib/x86_64-linux-gnu/libXdamage.so.1.1.0 (have_dinfo 1)
--6689-- Discarding syms at 0x5fb0230-0x5fcbb07 in /usr/lib/x86_64-linux-gnu/libexpat.so.1.6.11 (have_dinfo 1)
--6689-- Discarding syms at 0x5fdc0e0-0x5fdcfd7 in /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0.0.0 (have_dinfo 1)
--6689-- Discarding syms at 0x48620a0-0x486297a in /usr/lib/x86_64-linux-gnu/libxcb-present.so.0.0.0 (have_dinfo 1)
--6689-- Discarding syms at 0x5fe3100-0x5fe5416 in /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1.0.0 (have_dinfo 1)
--6689-- Discarding syms at 0x5fea960-0x5feac2c in /usr/lib/x86_64-linux-gnu/libxshmfence.so.1.0.0 (have_dinfo 1)
==6689== 
==6689== HEAP SUMMARY:
==6689==     in use at exit: 318,244 bytes in 2,980 blocks
==6689==   total heap usage: 174,862 allocs, 171,882 frees, 75,115,032 bytes allocated
==6689== 
==6689== Searching for pointers to 2,980 not-freed blocks
==6689== Checked 13,000,544 bytes
==6689== 
==6689== 112 (56 direct, 56 indirect) bytes in 1 blocks are definitely lost in loss record 1,901 of 1,945
==6689==    at 0x4841428: calloc (vg_replace_malloc.c:1340)
==6689==    by 0x6C7207E: ???
==6689==    by 0x68EDC3B: ???
==6689==    by 0x68D87A5: ???
==6689==    by 0x68D886C: ???
==6689==    by 0x68D9479: ???
==6689==    by 0x689CA33: ???
==6689==    by 0x689F35C: ???
==6689==    by 0x689A2BC: ???
==6689==    by 0x685D357: ???
==6689==    by 0x688133D: ???
==6689==    by 0x687EC76: ???
==6689== 
==6689== 5,294 bytes in 255 blocks are definitely lost in loss record 1,939 of 1,945
==6689==    at 0x483C853: malloc (vg_replace_malloc.c:393)
==6689==    by 0x4BBD50E: strdup (strdup.c:42)
==6689==    by 0x5F590D6: ???
==6689==    by 0x5F58E84: ???
==6689==    by 0x5EFAE16: ???
==6689==    by 0x5A18436: ???
==6689==    by 0x5A18E1C: ???
==6689==    by 0x5A94419: ???
==6689==    by 0x5A95C57: ???
==6689==    by 0x136733: makeContextCurrentGLX (in /home/linus-penguin/mlx_project/a.out)
==6689==    by 0x11FF8E: glfwMakeContextCurrent (in /home/linus-penguin/mlx_project/a.out)
==6689==    by 0x11F802: _glfwRefreshContextAttribs (in /home/linus-penguin/mlx_project/a.out)
==6689== 
==6689== LEAK SUMMARY:
==6689==    definitely lost: 5,350 bytes in 256 blocks
==6689==    indirectly lost: 56 bytes in 1 blocks
==6689==      possibly lost: 0 bytes in 0 blocks
==6689==    still reachable: 312,794 bytes in 2,721 blocks
==6689==         suppressed: 44 bytes in 2 blocks
==6689== Reachable blocks (those to which a pointer was found) are not shown.
==6689== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==6689== 
==6689== ERROR SUMMARY: 185 errors from 3 contexts (suppressed: 0 from 0)
==6689== 
==6689== 183 errors in context 1 of 3:
==6689== Conditional jump or move depends on uninitialised value(s)
==6689==    at 0x8546343: ??? (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==6689==    by 0x84865E7: llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==6689==    by 0x82F0D75: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==6689==    by 0x82F0FF2: llvm::FPPassManager::runOnModule(llvm::Module&) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==6689==    by 0x82F149F: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==6689==    by 0x943CB34: llvm::MCJIT::emitObject(llvm::Module*) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==6689==    by 0x943CF1D: llvm::MCJIT::generateCodeForModule(llvm::Module*) (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==6689==    by 0x943D6AD: llvm::MCJIT::finalizeObject() (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==6689==    by 0x940187F: LLVMGetPointerToGlobal (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==6689==    by 0x6915041: ???
==6689==    by 0x69099EF: ???
==6689==    by 0x68F5937: ???
==6689==  Uninitialised value was created by a stack allocation
==6689==    at 0x8544D3A: ??? (in /usr/lib/x86_64-linux-gnu/libLLVM-10.so.1)
==6689== 
--6689-- 
--6689-- used_suppression:      2 dtv-addr-init /usr/local/libexec/valgrind/default.supp:1476 suppressed: 44 bytes in 2 blocks
==6689== 
==6689== ERROR SUMMARY: 185 errors from 3 contexts (suppressed: 0 from 0)

from mlx42.

W2Wizard avatar W2Wizard commented on July 25, 2024

Ok so this definitely coming from GLFW. I suggest you pass this on to glfw/glfw#2269

from mlx42.

m4nnb3ll avatar m4nnb3ll commented on July 25, 2024

Okay, thanks!

from mlx42.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.