GNU gdb (GDB) 7.11.1 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./dwm...done. (gdb) break xerror Breakpoint 1 at 0xc4a1: file dwm.c, line 2014. (gdb) r Starting program: /home/untitaker/.homesick/repos/dotfiles/dwm/dwm [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Breakpoint 1, xerror (dpy=0x555555779dd0, ee=0x7fffffffe1b0) at dwm.c:2014 2014 if(ee->error_code == BadWindow (gdb) where #0 xerror (dpy=0x555555779dd0, ee=0x7fffffffe1b0) at dwm.c:2014 #1 0x00007ffff7adb87d in _XError () from /usr/lib/libX11.so.6 #2 0x00007ffff7ad87c7 in ?? () from /usr/lib/libX11.so.6 #3 0x00007ffff7ad8885 in ?? () from /usr/lib/libX11.so.6 #4 0x00007ffff7ad9830 in _XReply () from /usr/lib/libX11.so.6 #5 0x00007ffff7ad511d in XSync () from /usr/lib/libX11.so.6 #6 0x0000555555558a45 in drw_map (drw=0x555555785640, win=12582925, x=0, y=0, w=1366, h=18) at drw.c:370 #7 0x000055555555ad3d in drawbar (m=0x55555578dd80) at dwm.c:740 #8 0x00005555555600ea in updatestatus () at dwm.c:1937 #9 0x000055555555e749 in setup () at dwm.c:1542 #10 0x00005555555607c2 in main (argc=1, argv=0x7fffffffe5c8) at dwm.c:2066 (gdb) frame 6 #6 0x0000555555558a45 in drw_map (drw=0x555555785640, win=12582925, x=0, y=0, w=1366, h=18) at drw.c:370 370 XSync(drw->dpy, False); (gdb) p *drw $1 = {w = 1366, h = 768, dpy = 0x555555779dd0, screen = 0, root = 211, drawable = 12582913, gc = 0x555555785790, scheme = 0x5555557640a0 , fontcount = 4, fonts = {0x555555785330, 0x5555557896f0, 0x55555579a000, 0x555555791d80, 0x0 }} (gdb) quit A debugging session is active. Inferior 1 [process 14378] will be killed. Quit anyway? (y or n) y