Hello,
I have been having an intermittent but mostly present problem with the X server on the Raspberry Pi hanging on exit. If all I do is type xinit, with no .xinitrc in place hence I get the single xterm with no window manager running, then move the pointer to focus on that window, then type exit, either I will get back to the console screen and everything is fine, or most of the time, the X Server will not fully exit, and the screen will be black, with no amount of keypresses, ^C, ^\, attempted sys-req, attempted ctrl-alt-backspace, or anything causing any effect.
If I have ssh’ed in from another place, I can see the X Server is chewing up 100 percent (well, 98 or more) of the CPU, and it is unresponsive to kill -9 (!), and if I attempt to attach to it with gdb –p, gdb hangs too before doing anything useful. Strace shows no activity, so presumably when it hangs it is in a very tight loop with no system calls. The only useful log message has an error about FBIOBLANK: Operation not permitted. I tried putting the hotplug and drive lines in my config.txt but no change. Sometimes but not always, the first time I exit from the X Server, it works, but the second time almost always hangs on exit. Fbdev is 0.4.2-6, and the xorg-server is 1.12.2-1. The system is up to date from pacman.
Q: Anyone else seeing this X Server hang?
Q: Any good ideas on easy ways to debug the hang or things to try?
I am happy to try to build the X Server and binary search with time-honored printf debugging to find the problem, but regarding that:
Q: I downloaded the xorg-server-devel, and all that is are header files. Where is the source that corresponds to xorg-server? It might be xorg-server-xdmx, or xorg-server-xfvb, or neither of those.