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: > > Dear Markus, > > > > > > 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. > > > > > > Liebe Grüße > > > > Paul > > > > Hello Paul, > > 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.
GNU gdb (GDB) 7.11.1 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> 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: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. 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 <scheme>, fontcount = 4, fonts = {0x555555785330, 0x5555557896f0, 0x55555579a000, 0x555555791d80, 0x0 <repeats 28 times>}} (gdb) quit A debugging session is active. Inferior 1 [process 14378] will be killed. Quit anyway? (y or n) y