Re: restest hangs the server (was: Some hard numbers on XFree86 memory usage ...)
Owen Taylor <[email protected]>
| Newsgroups | gmane.comp.xfree86.forum,gmane.comp.xfree86.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 2003-04-21 at 09:25, Michel Dänzer wrote:
> [ please follow up to the devel list only if you agree that this is more
> appropriate there ]
>
> On Mon, 2003-04-21 at 08:13, Aidan Kehoe wrote:
> > Ar an 19ú lá de mí 4, scríobh Mark Vojkovich :
> >
> > > http://www.xfree86.org/~mvojkovi/restest.c
> >
> > That locks up my X server (except for the mouse cursor) on NetBSD 1.6P,
> > btw.
>
> I experienced the same on Linux/PPC, thought it was architecture
> specific, but maybe not?
>
> > No problem when it's run from a virtual console with DISPLAY set
> > appropriately. Where would one go to fix this?
>
> The first thing to do would be to find out where it hangs I guess.
> Funnily, the server would still respond to the keyboard, at least I
> could switch VTs, but it wouldn't draw (everything) anymore.
It doesn't actually hang the server, rather what
happens is that it outputs to terminal with a server
grab.
So, if you run it in a xterm (etc.), you get a:
X server blocks on restest
restest blocks on terminal
terminal blocks on X server
loop. If you ssh into your box and kill restest things will
be fine.
The workaround is to redirect the output to a file:
See:
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=86422
Regards,
Owen