Running in shell valgrind ./wayst &> segfault_withvalgrind2.txt yields
```txt
==353346== Memcheck, a memory error detector
==353346== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==353346== Using Valgrind-3.17.0 and LibVEX; rerun with -h for copyright info
==353346== Command: ./wayst
==353346==
[[33mwarning[m] '/home/misterspoon/.config/wayst/config' - No such file or directory
==353346== Invalid read of size 4
==353346== at 0x49E99E6: FcPatternDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49DA4F8: FcFontSetDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115DE9: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119E16: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Address 0x5ae0580 is 16 bytes inside a block of size 24 free'd
==353346== at 0x484118B: free (vg_replace_malloc.c:755)
==353346== by 0x115DDC: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119E16: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Block was alloc'd at
==353346== at 0x48435FF: calloc (vg_replace_malloc.c:1117)
==353346== by 0x49EDFD2: FcFontRenderPrepare (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49EEB9D: FcFontMatch (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115CDD: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119E16: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346==
==353346== Invalid read of size 4
==353346== at 0x49E99EC: FcPatternDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49DA4F8: FcFontSetDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115DE9: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119E16: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Address 0x5ae0580 is 16 bytes inside a block of size 24 free'd
==353346== at 0x484118B: free (vg_replace_malloc.c:755)
==353346== by 0x115DDC: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119E16: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Block was alloc'd at
==353346== at 0x48435FF: calloc (vg_replace_malloc.c:1117)
==353346== by 0x49EDFD2: FcFontRenderPrepare (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49EEB9D: FcFontMatch (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115CDD: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119E16: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346==
==353346== Invalid read of size 4
==353346== at 0x49E99E6: FcPatternDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49DA4F8: FcFontSetDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115DE9: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119E42: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Address 0x5b01e70 is 16 bytes inside a block of size 24 free'd
==353346== at 0x484118B: free (vg_replace_malloc.c:755)
==353346== by 0x115DDC: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119E42: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Block was alloc'd at
==353346== at 0x48435FF: calloc (vg_replace_malloc.c:1117)
==353346== by 0x49EDFD2: FcFontRenderPrepare (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49EEB9D: FcFontMatch (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115CDD: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119E42: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346==
==353346== Invalid read of size 4
==353346== at 0x49E99EC: FcPatternDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49DA4F8: FcFontSetDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115DE9: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119E42: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Address 0x5b01e70 is 16 bytes inside a block of size 24 free'd
==353346== at 0x484118B: free (vg_replace_malloc.c:755)
==353346== by 0x115DDC: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119E42: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Block was alloc'd at
==353346== at 0x48435FF: calloc (vg_replace_malloc.c:1117)
==353346== by 0x49EDFD2: FcFontRenderPrepare (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49EEB9D: FcFontMatch (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115CDD: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119E42: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346==
==353346== Invalid read of size 4
==353346== at 0x49E99E6: FcPatternDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49DA4F8: FcFontSetDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115DE9: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119E70: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Address 0x5b23780 is 16 bytes inside a block of size 24 free'd
==353346== at 0x484118B: free (vg_replace_malloc.c:755)
==353346== by 0x115DDC: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119E70: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Block was alloc'd at
==353346== at 0x48435FF: calloc (vg_replace_malloc.c:1117)
==353346== by 0x49EDFD2: FcFontRenderPrepare (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49EEB9D: FcFontMatch (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115CDD: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119E70: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346==
==353346== Invalid read of size 4
==353346== at 0x49E99EC: FcPatternDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49DA4F8: FcFontSetDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115DE9: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119E70: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Address 0x5b23780 is 16 bytes inside a block of size 24 free'd
==353346== at 0x484118B: free (vg_replace_malloc.c:755)
==353346== by 0x115DDC: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119E70: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Block was alloc'd at
==353346== at 0x48435FF: calloc (vg_replace_malloc.c:1117)
==353346== by 0x49EDFD2: FcFontRenderPrepare (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49EEB9D: FcFontMatch (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115CDD: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119E70: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346==
==353346== Invalid read of size 4
==353346== at 0x49E99E6: FcPatternDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49DA4F8: FcFontSetDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115DE9: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119E9E: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Address 0x5b450b0 is 16 bytes inside a block of size 24 free'd
==353346== at 0x484118B: free (vg_replace_malloc.c:755)
==353346== by 0x115DDC: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119E9E: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Block was alloc'd at
==353346== at 0x48435FF: calloc (vg_replace_malloc.c:1117)
==353346== by 0x49EDFD2: FcFontRenderPrepare (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49EEB9D: FcFontMatch (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115CDD: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119E9E: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346==
==353346== Invalid read of size 4
==353346== at 0x49E99EC: FcPatternDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49DA4F8: FcFontSetDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115DE9: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119E9E: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Address 0x5b450b0 is 16 bytes inside a block of size 24 free'd
==353346== at 0x484118B: free (vg_replace_malloc.c:755)
==353346== by 0x115DDC: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119E9E: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Block was alloc'd at
==353346== at 0x48435FF: calloc (vg_replace_malloc.c:1117)
==353346== by 0x49EDFD2: FcFontRenderPrepare (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49EEB9D: FcFontMatch (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115CDD: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119E9E: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346==
==353346== Invalid read of size 4
==353346== at 0x49E99E6: FcPatternDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49DA4F8: FcFontSetDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115DE9: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119F87: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Address 0x5b648d0 is 16 bytes inside a block of size 24 free'd
==353346== at 0x484118B: free (vg_replace_malloc.c:755)
==353346== by 0x115DDC: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119F87: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Block was alloc'd at
==353346== at 0x48435FF: calloc (vg_replace_malloc.c:1117)
==353346== by 0x49EDFD2: FcFontRenderPrepare (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49EEB9D: FcFontMatch (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115CDD: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119F87: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346==
==353346== Invalid read of size 4
==353346== at 0x49E99EC: FcPatternDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49DA4F8: FcFontSetDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115DE9: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119F87: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Address 0x5b648d0 is 16 bytes inside a block of size 24 free'd
==353346== at 0x484118B: free (vg_replace_malloc.c:755)
==353346== by 0x115DDC: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119F87: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Block was alloc'd at
==353346== at 0x48435FF: calloc (vg_replace_malloc.c:1117)
==353346== by 0x49EDFD2: FcFontRenderPrepare (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49EEB9D: FcFontMatch (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115CDD: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119F87: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346==
==353346== Invalid read of size 4
==353346== at 0x49E99E6: FcPatternDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49DA4F8: FcFontSetDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115DE9: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119FBD: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Address 0x5b84010 is 16 bytes inside a block of size 24 free'd
==353346== at 0x484118B: free (vg_replace_malloc.c:755)
==353346== by 0x115DDC: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119FBD: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Block was alloc'd at
==353346== at 0x48435FF: calloc (vg_replace_malloc.c:1117)
==353346== by 0x49EDFD2: FcFontRenderPrepare (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49EEB9D: FcFontMatch (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115CDD: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119FBD: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346==
==353346== Invalid read of size 4
==353346== at 0x49E99EC: FcPatternDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49DA4F8: FcFontSetDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115DE9: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119FBD: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Address 0x5b84010 is 16 bytes inside a block of size 24 free'd
==353346== at 0x484118B: free (vg_replace_malloc.c:755)
==353346== by 0x115DDC: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119FBD: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Block was alloc'd at
==353346== at 0x48435FF: calloc (vg_replace_malloc.c:1117)
==353346== by 0x49EDFD2: FcFontRenderPrepare (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49EEB9D: FcFontMatch (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115CDD: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x119FBD: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346==
==353346== Invalid read of size 4
==353346== at 0x49E99E6: FcPatternDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49DA4F8: FcFontSetDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115DE9: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x11A080: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Address 0x5ba3770 is 16 bytes inside a block of size 24 free'd
==353346== at 0x484118B: free (vg_replace_malloc.c:755)
==353346== by 0x115DDC: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x11A080: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Block was alloc'd at
==353346== at 0x48435FF: calloc (vg_replace_malloc.c:1117)
==353346== by 0x49EDFD2: FcFontRenderPrepare (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49EEB9D: FcFontMatch (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115CDD: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x11A080: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346==
==353346== Invalid read of size 4
==353346== at 0x49E99EC: FcPatternDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49DA4F8: FcFontSetDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115DE9: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x11A080: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Address 0x5ba3770 is 16 bytes inside a block of size 24 free'd
==353346== at 0x484118B: free (vg_replace_malloc.c:755)
==353346== by 0x115DDC: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x11A080: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Block was alloc'd at
==353346== at 0x48435FF: calloc (vg_replace_malloc.c:1117)
==353346== by 0x49EDFD2: FcFontRenderPrepare (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49EEB9D: FcFontMatch (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115CDD: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x11A080: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346==
==353346== Invalid read of size 4
==353346== at 0x49E99E6: FcPatternDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49DA4F8: FcFontSetDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115DE9: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x11A120: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Address 0x5bc2ef0 is 16 bytes inside a block of size 24 free'd
==353346== at 0x484118B: free (vg_replace_malloc.c:755)
==353346== by 0x115DDC: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x11A120: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Block was alloc'd at
==353346== at 0x48435FF: calloc (vg_replace_malloc.c:1117)
==353346== by 0x49EDFD2: FcFontRenderPrepare (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49EEB9D: FcFontMatch (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115CDD: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x11A120: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346==
==353346== Invalid read of size 4
==353346== at 0x49E99EC: FcPatternDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49DA4F8: FcFontSetDestroy (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115DE9: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x11A120: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Address 0x5bc2ef0 is 16 bytes inside a block of size 24 free'd
==353346== at 0x484118B: free (vg_replace_malloc.c:755)
==353346== by 0x115DDC: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x11A120: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Block was alloc'd at
==353346== at 0x48435FF: calloc (vg_replace_malloc.c:1117)
==353346== by 0x49EDFD2: FcFontRenderPrepare (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x49EEB9D: FcFontMatch (in /usr/lib/libfontconfig.so.1.12.0)
==353346== by 0x115CDD: FontconfigContext_get_file (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x11A120: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346==
==353346== Warning: noted but unhandled ioctl 0x5441 with no size/direction hints.
==353346== This could cause spurious value errors to appear.
==353346== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==353346== Invalid read of size 1
==353346== at 0x48447B2: strlen (vg_replace_strmem.c:469)
==353346== by 0x4E1B342: strdup (in /usr/lib/libc-2.33.so)
==353346== by 0x16DAB2: wl_surface_handle_leave.lto_priv.0 (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x522FD49: ??? (in /usr/lib/libffi.so.8.1.0)
==353346== by 0x522F266: ??? (in /usr/lib/libffi.so.8.1.0)
==353346== by 0x4D17FF2: ??? (in /usr/lib/libwayland-client.so.0.3.0)
==353346== by 0x4D14562: ??? (in /usr/lib/libwayland-client.so.0.3.0)
==353346== by 0x4D15C8B: wl_display_dispatch_queue_pending (in /usr/lib/libwayland-client.so.0.3.0)
==353346== by 0x16EFC9: WindowWl_events.lto_priv.0 (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x14EF28: App_run.lto_priv.0 (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x1190E2: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==353346==
==353346==
==353346== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==353346== Access not within mapped region at address 0x0
==353346== at 0x48447B2: strlen (vg_replace_strmem.c:469)
==353346== by 0x4E1B342: strdup (in /usr/lib/libc-2.33.so)
==353346== by 0x16DAB2: wl_surface_handle_leave.lto_priv.0 (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x522FD49: ??? (in /usr/lib/libffi.so.8.1.0)
==353346== by 0x522F266: ??? (in /usr/lib/libffi.so.8.1.0)
==353346== by 0x4D17FF2: ??? (in /usr/lib/libwayland-client.so.0.3.0)
==353346== by 0x4D14562: ??? (in /usr/lib/libwayland-client.so.0.3.0)
==353346== by 0x4D15C8B: wl_display_dispatch_queue_pending (in /usr/lib/libwayland-client.so.0.3.0)
==353346== by 0x16EFC9: WindowWl_events.lto_priv.0 (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x14EF28: App_run.lto_priv.0 (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== by 0x1190E2: main (in /home/misterspoon/dev/git/c/wayst/wayst)
==353346== If you believe this happened as a result of a stack
==353346== overflow in your program's main thread (unlikely but
==353346== possible), you can try to increase the size of the
==353346== main thread stack using the --main-stacksize= flag.
==353346== The main thread stack size used in this run was 8388608.
==353346==
==353346== HEAP SUMMARY:
==353346== in use at exit: 7,566,804 bytes in 47,747 blocks
==353346== total heap usage: 105,830 allocs, 58,083 frees, 25,461,490 bytes allocated
==353346==
==353346== LEAK SUMMARY:
==353346== definitely lost: 0 bytes in 0 blocks
==353346== indirectly lost: 0 bytes in 0 blocks
==353346== possibly lost: 5,550,886 bytes in 38,296 blocks
==353346== still reachable: 2,014,218 bytes in 9,450 blocks
==353346== suppressed: 1,700 bytes in 1 blocks
==353346== Rerun with --leak-check=full to see details of leaked memory
==353346==
==353346== For lists of detected and suppressed errors, rerun with: -s
==353346== ERROR SUMMARY: 33 errors from 17 contexts (suppressed: 0 from 0)
```
Running in shell
valgrind ./wayst &> segfault_withvalgrind2.txt
yields