On Mon, Sep 05, 2016 at 11:10:53AM +0200, Paul Menzel wrote:
> Dear Markus,
> 
> 
> On 08/31/16 21:22, Markus Unterwaditzer wrote:
> > On Wed, Aug 31, 2016 at 09:07:21PM +0200, Markus Unterwaditzer wrote:
> > > On Wed, Aug 31, 2016 at 03:52:36PM +0200, Paul Menzel wrote:
> 
> > > > On 08/30/16 19:32, Markus Unterwaditzer wrote:
> > > > 
> > > > > On Tue, Aug 30, 2016 at 01:30:20PM +0200, Paul Menzel wrote:
> > > > > > > None.
> > > > > > 
> > > > > > How do you start dwm?
> > > > > 
> > > > > A simple `dwm` in `.xinitrc`. You can view the entire setup here:
> > > > > https://github.com/untitaker/dotfiles
> > > > 
> > > > Did you already try running dwm under GDB? You could add it to the
> > > > `.xinitrc` file and attach to GDB remotely I guess.
> 
> > > Well, I have tried now! Attached is the entire session.
> > > 
> > > I'm not sure what to look for. In another session I noticed that shortly 
> > > before
> > > `drw_text` gets called `text` being a nullpointer. It appears that the 
> > > code is
> > > designed to deal with this though.
> > > 
> > > By the way, this time I reproduced this issue using:
> > > 
> > >     echo -e "\xe2\x9b\x93b" | xargs xsetroot -name
> > > 
> > > Thanks for your help,
> > > Markus
> > 
> > Sorry, forgot the actual attachment. Here it is.
> 
> No problem. Thank you very much for that. Unfortunately, I won’t have time
> until the end of the week to look more into it.
> 
> If you have time until then, could you please also run the process under
> Valgrind, or build the stack with some sanitizers (address, undefined
> behavior)?
> 
> ```
> $ G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind \
> -v \
> --tool=memcheck \
> --leak-check=full \
> --num-callers=40 \
> --log-file=valgrind.log \
> $(which <program>) <arguments>
> ```
> 
> 
> Best regards,
> 
> Paul
> 
> 
> PS: By the way, you should be able to attach to running processes too.
> 
> 
> [1] https://wiki.ubuntu.com/Valgrind
> 

Hello Paul,

Attached is the valgrind.log.

Thanks for your help,
Markus
==26599== Memcheck, a memory error detector
==26599== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==26599== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==26599== Command: /home/untitaker/.local/bin/dwm
==26599== Parent PID: 20697
==26599== 
--26599-- 
--26599-- Valgrind options:
--26599--    -v
--26599--    --tool=memcheck
--26599--    --leak-check=full
--26599--    --num-callers=40
--26599--    --log-file=valgrind.log
--26599-- Contents of /proc/version:
--26599--   Linux version 4.7.2-1-ARCH (builduser@tobias) (gcc version 6.1.1 
20160802 (GCC) ) #1 SMP PREEMPT Sat Aug 20 23:02:56 CEST 2016
--26599-- 
--26599-- Arch and hwcaps: AMD64, LittleEndian, 
amd64-cx16-lzcnt-rdtscp-sse3-avx-avx2-bmi
--26599-- Page sizes: currently 4096, max supported 4096
--26599-- Valgrind library directory: /usr/lib/valgrind
--26599-- Reading syms from /home/untitaker/.local/bin/dwm
--26599-- Reading syms from /usr/lib/ld-2.24.so
--26599-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux
--26599--    object doesn't have a symbol table
--26599--    object doesn't have a dynamic symbol table
--26599-- Scheduler: using generic scheduler lock implementation.
--26599-- Reading suppressions file: /usr/lib/valgrind/default.supp
==26599== embedded gdbserver: reading from 
/tmp/vgdb-pipe-from-vgdb-to-26599-by-untitaker-on-???
==26599== embedded gdbserver: writing to   
/tmp/vgdb-pipe-to-vgdb-from-26599-by-untitaker-on-???
==26599== embedded gdbserver: shared mem   
/tmp/vgdb-pipe-shared-mem-vgdb-26599-by-untitaker-on-???
==26599== 
==26599== TO CONTROL THIS PROCESS USING vgdb (which you probably
==26599== don't want to do, unless you know exactly what you're doing,
==26599== or are doing some strange experiment):
==26599==   /usr/lib/valgrind/../../bin/vgdb --pid=26599 ...command...
==26599== 
==26599== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==26599==   /path/to/gdb /home/untitaker/.local/bin/dwm
==26599== and then give GDB the following command
==26599==   target remote | /usr/lib/valgrind/../../bin/vgdb --pid=26599
==26599== --pid is optional if only one valgrind process is running
==26599== 
--26599-- REDIR: 0x401aad0 (ld-linux-x86-64.so.2:strlen) redirected to 
0x3809d191 (???)
--26599-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so
--26599--    object doesn't have a symbol table
--26599-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
--26599--    object doesn't have a symbol table
==26599== WARNING: new redirection conflicts with existing -- ignoring it
--26599--     old: 0x0401aad0 (strlen              ) R-> (0000.0) 0x3809d191 ???
--26599--     new: 0x0401aad0 (strlen              ) R-> (2007.0) 0x04c2ce50 
strlen
--26599-- REDIR: 0x4019640 (ld-linux-x86-64.so.2:strcmp) redirected to 
0x4c2df50 (strcmp)
--26599-- REDIR: 0x4019420 (ld-linux-x86-64.so.2:index) redirected to 0x4c2ca00 
(index)
--26599-- REDIR: 0x401b5e0 (ld-linux-x86-64.so.2:mempcpy) redirected to 
0x4c312e0 (mempcpy)
--26599-- REDIR: 0x401b8b0 (ld-linux-x86-64.so.2:stpcpy) redirected to 
0x4c302b0 (stpcpy)
--26599-- Reading syms from /usr/lib/libgtk3-nocsd.so.0
--26599--    object doesn't have a symbol table
--26599-- Reading syms from /usr/lib/libX11.so.6.3.0
--26599--    object doesn't have a symbol table
--26599-- Reading syms from /usr/lib/libXinerama.so.1.0.0
--26599--    object doesn't have a symbol table
--26599-- Reading syms from /usr/lib/libfontconfig.so.1.9.2
--26599--    object doesn't have a symbol table
--26599-- Reading syms from /usr/lib/libXft.so.2.3.2
--26599--    object doesn't have a symbol table
--26599-- Reading syms from /usr/lib/libc-2.24.so
--26599-- Reading syms from /usr/lib/libdl-2.24.so
--26599--    object doesn't have a symbol table
--26599-- Reading syms from /usr/lib/libpthread-2.24.so
--26599-- Reading syms from /usr/lib/libxcb.so.1.1.0
--26599--    object doesn't have a symbol table
--26599-- Reading syms from /usr/lib/libXext.so.6.4.0
--26599--    object doesn't have a symbol table
--26599-- Reading syms from /usr/lib/libfreetype.so.6.12.5
--26599--    object doesn't have a symbol table
--26599-- Reading syms from /usr/lib/libexpat.so.1.6.2
--26599--    object doesn't have a symbol table
--26599-- Reading syms from /usr/lib/libXrender.so.1.3.0
--26599--    object doesn't have a symbol table
--26599-- Reading syms from /usr/lib/libXau.so.6.0.0
--26599--    object doesn't have a symbol table
--26599-- Reading syms from /usr/lib/libXdmcp.so.6.0.0
--26599--    object doesn't have a symbol table
--26599-- Reading syms from /usr/lib/libz.so.1.2.8
--26599--    object doesn't have a symbol table
--26599-- Reading syms from /usr/lib/libbz2.so.1.0.6
--26599--    object doesn't have a symbol table
--26599-- Reading syms from /usr/lib/libpng16.so.16.24.0
--26599--    object doesn't have a symbol table
--26599-- Reading syms from /usr/lib/libharfbuzz.so.0.10300.0
--26599--    object doesn't have a symbol table
--26599-- Reading syms from /usr/lib/libm-2.24.so
--26599--    object doesn't have a symbol table
--26599-- Reading syms from /usr/lib/libglib-2.0.so.0.4800.2
--26599--    object doesn't have a symbol table
--26599-- Reading syms from /usr/lib/libgraphite2.so.3.0.1
--26599--    object doesn't have a symbol table
--26599-- Reading syms from /usr/lib/libpcre.so.1.2.7
--26599--    object doesn't have a symbol table
--26599-- REDIR: 0x5a5d4d0 (libc.so.6:strcasecmp) redirected to 0x4a256ae 
(_vgnU_ifunc_wrapper)
--26599-- REDIR: 0x5a58f80 (libc.so.6:strcspn) redirected to 0x4a256ae 
(_vgnU_ifunc_wrapper)
--26599-- REDIR: 0x5a5f7c0 (libc.so.6:strncasecmp) redirected to 0x4a256ae 
(_vgnU_ifunc_wrapper)
--26599-- REDIR: 0x5a5b3f0 (libc.so.6:strpbrk) redirected to 0x4a256ae 
(_vgnU_ifunc_wrapper)
--26599-- REDIR: 0x5a5b780 (libc.so.6:strspn) redirected to 0x4a256ae 
(_vgnU_ifunc_wrapper)
--26599-- REDIR: 0x5a5cb50 (libc.so.6:memmove) redirected to 0x4a256ae 
(_vgnU_ifunc_wrapper)
--26599-- REDIR: 0x5a59820 (libc.so.6:strncmp) redirected to 0x4a256ae 
(_vgnU_ifunc_wrapper)
--26599-- REDIR: 0x5a5b100 (libc.so.6:rindex) redirected to 0x4c2c6e0 (rindex)
--26599-- REDIR: 0x5a59420 (libc.so.6:strlen) redirected to 0x4c2cd90 (strlen)
--26599-- REDIR: 0x5a59870 (libc.so.6:__GI_strncmp) redirected to 0x4c2d540 
(__GI_strncmp)
--26599-- REDIR: 0x5afe6d0 (libc.so.6:__strcasecmp_avx) redirected to 0x4c2d690 
(strcasecmp)
--26599-- REDIR: 0x5afe480 (libc.so.6:__strpbrk_sse42) redirected to 0x4c31620 
(strpbrk)
--26599-- REDIR: 0x5a53cf0 (libc.so.6:malloc) redirected to 0x4c29b50 (malloc)
--26599-- REDIR: 0x5a546e0 (libc.so.6:calloc) redirected to 0x4c2b9c4 (calloc)
--26599-- REDIR: 0x5a57a10 (libc.so.6:__GI_strcmp) redirected to 0x4c2de60 
(__GI_strcmp)
--26599-- REDIR: 0x5a5c3c0 (libc.so.6:memchr) redirected to 0x4c2dff0 (memchr)
--26599-- REDIR: 0x5a577b0 (libc.so.6:__GI_strchr) redirected to 0x4c2c840 
(__GI_strchr)
--26599-- REDIR: 0x5a634d0 (libc.so.6:strchrnul) redirected to 0x4c30e10 
(strchrnul)
--26599-- REDIR: 0x5a5cc40 (libc.so.6:__GI_mempcpy) redirected to 0x4c31010 
(__GI_mempcpy)
--26599-- REDIR: 0x5a5cc60 (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 
0x4c2e0b0 (memcpy@GLIBC_2.2.5)
--26599-- REDIR: 0x5a542f0 (libc.so.6:free) redirected to 0x4c2ad22 (free)
--26599-- REDIR: 0x5a5d360 (libc.so.6:__GI_stpcpy) redirected to 0x4c2ff70 
(__GI_stpcpy)
--26599-- REDIR: 0x5a5c190 (libc.so.6:strstr) redirected to 0x4a256ae 
(_vgnU_ifunc_wrapper)
--26599-- REDIR: 0x5a71570 (libc.so.6:__strstr_sse2_unaligned) redirected to 
0x4c314d0 (strstr)
--26599-- REDIR: 0x5a58e60 (libc.so.6:strcpy) redirected to 0x4a256ae 
(_vgnU_ifunc_wrapper)
--26599-- REDIR: 0x5a6ced0 (libc.so.6:__strcpy_sse2_unaligned) redirected to 
0x4c2ce70 (strcpy)
--26599-- REDIR: 0x5a61ec0 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 
0x4a256ae (_vgnU_ifunc_wrapper)
--26599-- REDIR: 0x5b01780 (libc.so.6:__memcpy_avx_unaligned_erms) redirected 
to 0x4c30570 (memmove)
--26599-- REDIR: 0x5a57780 (libc.so.6:index) redirected to 0x4a256ae 
(_vgnU_ifunc_wrapper)
--26599-- REDIR: 0x5a5c710 (libc.so.6:bcmp) redirected to 0x4a256ae 
(_vgnU_ifunc_wrapper)
--26599-- REDIR: 0x5b1c6d0 (libc.so.6:__memcmp_sse4_1) redirected to 0x4c2fc90 
(__memcmp_sse4_1)
--26599-- REDIR: 0x5a5b0c0 (libc.so.6:strncpy) redirected to 0x4a256ae 
(_vgnU_ifunc_wrapper)
--26599-- REDIR: 0x5a6d500 (libc.so.6:__strncpy_sse2_unaligned) redirected to 
0x4c2d3a0 (__strncpy_sse2_unaligned)
--26599-- REDIR: 0x5a5bd20 (libc.so.6:__GI_strstr) redirected to 0x4c31540 
(__strstr_sse2)
--26599-- REDIR: 0x5a579d0 (libc.so.6:strcmp) redirected to 0x4a256ae 
(_vgnU_ifunc_wrapper)
--26599-- REDIR: 0x5a68280 (libc.so.6:__strcmp_sse2_unaligned) redirected to 
0x4c2de10 (strcmp)
--26599-- REDIR: 0x5a543a0 (libc.so.6:realloc) redirected to 0x4c2bb90 (realloc)
--26599-- REDIR: 0x5acf380 (libc.so.6:__strcpy_chk) redirected to 0x4c30e80 
(__strcpy_chk)
--26599-- REDIR: 0x5af97e0 (libc.so.6:__strncmp_sse42) redirected to 0x4c2d620 
(__strncmp_sse42)
--26599-- REDIR: 0x5a5d000 (libc.so.6:memset) redirected to 0x4a256ae 
(_vgnU_ifunc_wrapper)
--26599-- REDIR: 0x5b01bc0 (libc.so.6:__memset_avx2_unaligned_erms) redirected 
to 0x4c304b0 (memset)
--26599-- REDIR: 0x5a632c0 (libc.so.6:rawmemchr) redirected to 0x4c30e40 
(rawmemchr)
--26599-- REDIR: 0x5a5d320 (libc.so.6:stpcpy) redirected to 0x4a256ae 
(_vgnU_ifunc_wrapper)
--26599-- REDIR: 0x5a6e4e0 (libc.so.6:__stpcpy_sse2_unaligned) redirected to 
0x4c30110 (__stpcpy_sse2_unaligned)
--26599-- REDIR: 0x5a57580 (libc.so.6:strcat) redirected to 0x4a256ae 
(_vgnU_ifunc_wrapper)
--26599-- REDIR: 0x5a6fcf0 (libc.so.6:__strcat_sse2_unaligned) redirected to 
0x4c2ca40 (strcat)
--26599-- REDIR: 0x5aceff0 (libc.so.6:__memcpy_chk) redirected to 0x4a256ae 
(_vgnU_ifunc_wrapper)
--26599-- REDIR: 0x5b01770 (libc.so.6:__memcpy_chk_avx_unaligned_erms) 
redirected to 0x4c313d0 (__memcpy_chk)
--26599-- Reading syms from /usr/lib/libXcursor.so.1.0.2
--26599--    object doesn't have a symbol table
--26599-- Reading syms from /usr/lib/libXfixes.so.3.1.0
--26599--    object doesn't have a symbol table
==26599== Syscall param writev(vector[...]) points to uninitialised byte(s)
==26599==    at 0x5AB9B60: __writev_nocancel (in /usr/lib/libc-2.24.so)
==26599==    by 0x61A4BAC: ??? (in /usr/lib/libxcb.so.1.1.0)
==26599==    by 0x61A4FAC: ??? (in /usr/lib/libxcb.so.1.1.0)
==26599==    by 0x61A502C: xcb_writev (in /usr/lib/libxcb.so.1.1.0)
==26599==    by 0x507C18D: _XSend (in /usr/lib/libX11.so.6.3.0)
==26599==    by 0x507C681: _XReply (in /usr/lib/libX11.so.6.3.0)
==26599==    by 0x507811C: XSync (in /usr/lib/libX11.so.6.3.0)
==26599==    by 0x403A94: drw_map (drw.c:395)
==26599==    by 0x405C84: drawbar (dwm.c:741)
==26599==    by 0x405CA8: drawbars (dwm.c:749)
==26599==    by 0x405FBD: focus (dwm.c:803)
==26599==    by 0x40702D: manage (dwm.c:1065)
==26599==    by 0x4083F3: scan (dwm.c:1372)
==26599==    by 0x40AD2F: main (dwm.c:2068)
==26599==  Address 0x8487da0 is 32 bytes inside a block of size 16,384 alloc'd
==26599==    at 0x4C2BA4A: calloc (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==26599==    by 0x506C4E1: XOpenDisplay (in /usr/lib/libX11.so.6.3.0)
==26599==    by 0x40ACFE: main (dwm.c:2064)
==26599== 
--26599-- memcheck GC: 1000 nodes, 79 survivors (7.9%)
==26599== 
==26599== HEAP SUMMARY:
==26599==     in use at exit: 997,847 bytes in 5,774 blocks
==26599==   total heap usage: 15,052 allocs, 9,278 frees, 3,142,098 bytes 
allocated
==26599== 
==26599== Searching for pointers to 5,774 not-freed blocks
==26599== Checked 1,204,008 bytes
==26599== 
==26599== 384 (256 direct, 128 indirect) bytes in 1 blocks are definitely lost 
in loss record 296 of 405
==26599==    at 0x4C29BBE: malloc (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==26599==    by 0x559CEF9: ??? (in /usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x559D651: ??? (in /usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x559DA0B: FcPatternAddDouble (in 
/usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x57CA6FD: ??? (in /usr/lib/libXft.so.2.3.2)
==26599==    by 0x57CAFB4: ??? (in /usr/lib/libXft.so.2.3.2)
==26599==    by 0x57CA95E: ??? (in /usr/lib/libXft.so.2.3.2)
==26599==    by 0x57CAAC5: ??? (in /usr/lib/libXft.so.2.3.2)
==26599==    by 0x57CAEDD: XftDefaultHasRender (in /usr/lib/libXft.so.2.3.2)
==26599==    by 0x57CB40F: XftDefaultSubstitute (in /usr/lib/libXft.so.2.3.2)
==26599==    by 0x57CDD44: XftFontMatch (in /usr/lib/libXft.so.2.3.2)
==26599==    by 0x57CE026: XftFontOpenName (in /usr/lib/libXft.so.2.3.2)
==26599==    by 0x402C96: drw_font_xcreate (drw.c:118)
==26599==    by 0x402E8D: drw_load_fonts (drw.c:158)
==26599==    by 0x408C83: setup (dwm.c:1512)
==26599==    by 0x40AD2A: main (dwm.c:2067)
==26599== 
==26599== 585 (512 direct, 73 indirect) bytes in 2 blocks are definitely lost 
in loss record 318 of 405
==26599==    at 0x4C29BBE: malloc (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==26599==    by 0x559CEF9: ??? (in /usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x559D651: ??? (in /usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x559EB0A: ??? (in /usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x55A518F: ??? (in /usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x6897E2A: ??? (in /usr/lib/libexpat.so.1.6.2)
==26599==    by 0x68987DB: ??? (in /usr/lib/libexpat.so.1.6.2)
==26599==    by 0x689A0DD: ??? (in /usr/lib/libexpat.so.1.6.2)
==26599==    by 0x689A814: ??? (in /usr/lib/libexpat.so.1.6.2)
==26599==    by 0x689CB0E: XML_ParseBuffer (in /usr/lib/libexpat.so.1.6.2)
==26599==    by 0x55A339A: FcConfigParseAndLoad (in 
/usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x55A36A6: FcConfigParseAndLoad (in 
/usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x55A4002: ??? (in /usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x6897E2A: ??? (in /usr/lib/libexpat.so.1.6.2)
==26599==    by 0x68987DB: ??? (in /usr/lib/libexpat.so.1.6.2)
==26599==    by 0x689A0DD: ??? (in /usr/lib/libexpat.so.1.6.2)
==26599==    by 0x689A814: ??? (in /usr/lib/libexpat.so.1.6.2)
==26599==    by 0x689CB0E: XML_ParseBuffer (in /usr/lib/libexpat.so.1.6.2)
==26599==    by 0x55A339A: FcConfigParseAndLoad (in 
/usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x55963E7: ??? (in /usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x5596645: ??? (in /usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x5589D5C: ??? (in /usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x5589D98: ??? (in /usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x57D1352: XftInit (in /usr/lib/libXft.so.2.3.2)
==26599==    by 0x57CDCFC: XftFontMatch (in /usr/lib/libXft.so.2.3.2)
==26599==    by 0x57CE026: XftFontOpenName (in /usr/lib/libXft.so.2.3.2)
==26599==    by 0x402C96: drw_font_xcreate (drw.c:118)
==26599==    by 0x402E8D: drw_load_fonts (drw.c:158)
==26599==    by 0x408C83: setup (dwm.c:1512)
==26599==    by 0x40AD2A: main (dwm.c:2067)
==26599== 
==26599== 1,654 (1,280 direct, 374 indirect) bytes in 5 blocks are definitely 
lost in loss record 355 of 405
==26599==    at 0x4C29BBE: malloc (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==26599==    by 0x559CEF9: ??? (in /usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x559D651: ??? (in /usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x559DA41: ??? (in /usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x559B904: FcNameParse (in /usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x402CBA: drw_font_xcreate (drw.c:119)
==26599==    by 0x402E8D: drw_load_fonts (drw.c:158)
==26599==    by 0x408C83: setup (dwm.c:1512)
==26599==    by 0x40AD2A: main (dwm.c:2067)
==26599== 
==26599== 2,462 (768 direct, 1,694 indirect) bytes in 1 blocks are definitely 
lost in loss record 369 of 405
==26599==    at 0x4C2BC14: realloc (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==26599==    by 0x559CE4A: ??? (in /usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x559D531: ??? (in /usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x559A55A: FcFontRenderPrepare (in 
/usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x559A82F: FcFontMatch (in /usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x57CDD5A: XftFontMatch (in /usr/lib/libXft.so.2.3.2)
==26599==    by 0x40392E: drw_text (drw.c:364)
==26599==    by 0x405BAE: drawbar (dwm.c:733)
==26599==    by 0x40797D: propertynotify (dwm.c:1225)
==26599==    by 0x4082CC: run (dwm.c:1357)
==26599==    by 0x40AD34: main (dwm.c:2069)
==26599== 
==26599== 12,076 (3,840 direct, 8,236 indirect) bytes in 5 blocks are 
definitely lost in loss record 396 of 405
==26599==    at 0x4C2BC14: realloc (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==26599==    by 0x559CE4A: ??? (in /usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x559D531: ??? (in /usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x559A55A: FcFontRenderPrepare (in 
/usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x559A82F: FcFontMatch (in /usr/lib/libfontconfig.so.1.9.2)
==26599==    by 0x57CDD5A: XftFontMatch (in /usr/lib/libXft.so.2.3.2)
==26599==    by 0x57CE026: XftFontOpenName (in /usr/lib/libXft.so.2.3.2)
==26599==    by 0x402C96: drw_font_xcreate (drw.c:118)
==26599==    by 0x402E8D: drw_load_fonts (drw.c:158)
==26599==    by 0x408C83: setup (dwm.c:1512)
==26599==    by 0x40AD2A: main (dwm.c:2067)
==26599== 
==26599== LEAK SUMMARY:
==26599==    definitely lost: 6,656 bytes in 14 blocks
==26599==    indirectly lost: 10,505 bytes in 363 blocks
==26599==      possibly lost: 0 bytes in 0 blocks
==26599==    still reachable: 980,686 bytes in 5,397 blocks
==26599==         suppressed: 0 bytes in 0 blocks
==26599== Reachable blocks (those to which a pointer was found) are not shown.
==26599== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==26599== 
==26599== Use --track-origins=yes to see where uninitialised values come from
==26599== ERROR SUMMARY: 18 errors from 6 contexts (suppressed: 0 from 0)
==26599== 
==26599== 13 errors in context 1 of 6:
==26599== Syscall param writev(vector[...]) points to uninitialised byte(s)
==26599==    at 0x5AB9B60: __writev_nocancel (in /usr/lib/libc-2.24.so)
==26599==    by 0x61A4BAC: ??? (in /usr/lib/libxcb.so.1.1.0)
==26599==    by 0x61A4FAC: ??? (in /usr/lib/libxcb.so.1.1.0)
==26599==    by 0x61A502C: xcb_writev (in /usr/lib/libxcb.so.1.1.0)
==26599==    by 0x507C18D: _XSend (in /usr/lib/libX11.so.6.3.0)
==26599==    by 0x507C681: _XReply (in /usr/lib/libX11.so.6.3.0)
==26599==    by 0x507811C: XSync (in /usr/lib/libX11.so.6.3.0)
==26599==    by 0x403A94: drw_map (drw.c:395)
==26599==    by 0x405C84: drawbar (dwm.c:741)
==26599==    by 0x405CA8: drawbars (dwm.c:749)
==26599==    by 0x405FBD: focus (dwm.c:803)
==26599==    by 0x40702D: manage (dwm.c:1065)
==26599==    by 0x4083F3: scan (dwm.c:1372)
==26599==    by 0x40AD2F: main (dwm.c:2068)
==26599==  Address 0x8487da0 is 32 bytes inside a block of size 16,384 alloc'd
==26599==    at 0x4C2BA4A: calloc (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==26599==    by 0x506C4E1: XOpenDisplay (in /usr/lib/libX11.so.6.3.0)
==26599==    by 0x40ACFE: main (dwm.c:2064)
==26599== 
==26599== ERROR SUMMARY: 18 errors from 6 contexts (suppressed: 0 from 0)

Reply via email to