On Fri, 2002-06-07 at 16:28, xOr wrote: > Found a way to make blackbox block in its select() call. > > Theres a comment above it say this is possible but near impossible.. > seems not to be the case :| It does it perfecetly consistantly on my > machine if I follow the right steps. > > This is, of course, with the latest cvs version. But should work for the > last few (all?) alphas too. > Also, I am using the cvs version of bbkeys. With bbkeys 0.8.4, this > doesn't happen for me. However, it seems that blackbox blocking is still > a problem regardless. I will attempt to track down what change in bbkeys > caused it. > > heres the .xinitrc: > > bbkeys -i& > gkrellm -w & > exec blackbox > > Then, once blackbox has loaded: > launch a terminal. > In the terminal run: > % bbkeys > The X server should be entirely frozen at this point. > > gdb reports this backtrace. > > 0x402547ce in select () from /lib/libc.so.6 > (gdb) bt > #0 0x402547ce in select () from /lib/libc.so.6 > #1 0xbffff4a4 in ?? () > #2 0x0809f5af in main (argc=1, argv=0xbffff864) at main.cc:160 > > That's with debug symbols enabled.. :\ not sure why it gets a ??. > > Can anyone else reproduce this?
Yes! I'm getting: #0 0x420e187e in select () from /lib/i686/libc.so.6 #1 0xbffff728 in ?? () #2 0x080a15c9 in main (argc=1, argv=0xbffffb34) at main.cc:160 #3 0x42017499 in __libc_start_main () from /lib/i686/libc.so.6 And about that time, yes, X freezes. Apps still work (gtk etc) but bb, bbkeys, and so on are frozen. I killed X, and when I tried to restart it it actually segfaulted - had to reboot before it would go again. I've been getting the backtrace above for a while now, without doing anything special - I was wondering if it had anything to do with the cpu thing, but didn't know what it meant, if anything. Matt.
