I'm not really sure what to tell you about WHY it's happening; but the same thing happened to me using strace to debug my window manager recently.
I'm not a big strace user, so I don't know much about it; however, using the -p argument caused strace (and my WM) to hang. I had to log out to kill the process.
Instead of using `strace -p` I changed the commandline like so, with the app I am stracing
as the last arg on the line (before the >>log):
Code:
strace -o ~/.i3/strace-logfile -fF -s2048 /usr/bin/i3 >>~/.i3/i3-logfile
and that worked fine I got the strace output to the logfile, and the WM ran as normal. I cannot explain why though
but maybe you can do your strace this way too?
Sasha