* blocked in an X lib
@ 1994-03-02 15:20 Stefan Monnier
1994-03-02 19:37 ` Dave Hill WhatGE
1994-03-03 3:16 ` Oliver Jones
0 siblings, 2 replies; 4+ messages in thread
From: Stefan Monnier @ 1994-03-02 15:20 UTC (permalink / raw)
Has anybody come upon that potential bug in the X library of OSF/1 1.3
on alpha:
It shows up with ctwm3.1beta if you use its animation option:
sometimes when ctwm wants to open a window (for some random client
like xterm), it might be prevented to do so for various reasons
(typically xlock, but it's not the only option). It normally just
waits until it can go on working, but from time to time, it just hangs
there, its virtual size getting bigger and bigger.
It's actually stuck in _XWaitForReadable which is called by _XReadPad,
called by XGetWindowProperty, called by XFetchName (called by ctwm).
This is not specific to an X server, but to the the alpha OSF1 version
of ctwm and it seems like the bug isn't in ctwm but in the X library
(the same code runs fine on Suns and other machines and also runs fine
on alpha as long as you don't use the animation option).
Does anybody know what could make the X library get stuck there ?
Stefan
--
-----------------------------------------------------
-- On the average, people seem to be acting normal --
-----------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: blocked in an X lib
1994-03-02 15:20 blocked in an X lib Stefan Monnier
@ 1994-03-02 19:37 ` Dave Hill WhatGE
1994-03-03 3:16 ` Oliver Jones
1 sibling, 0 replies; 4+ messages in thread
From: Dave Hill WhatGE @ 1994-03-02 19:37 UTC (permalink / raw)
In article <2l2asc$5hq@disun41.epfl.ch>, monnier@di.epfl.ch (Stefan Monnier) writes:
|>
|> Has anybody come upon that potential bug in the X library of OSF/1 1.3
|> on alpha:
|>
|> It shows up with ctwm3.1beta if you use its animation option:
|> sometimes when ctwm wants to open a window (for some random client
|> like xterm), it might be prevented to do so for various reasons
|> (typically xlock, but it's not the only option). It normally just
|> waits until it can go on working, but from time to time, it just hangs
|> there, its virtual size getting bigger and bigger.
|
Have you tried ctwm3.1p2 ? The beat version may have had some oddity in
it. I know of a number of people who are running that version without
complaint.
/Dave
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: blocked in an X lib
1994-03-02 15:20 blocked in an X lib Stefan Monnier
1994-03-02 19:37 ` Dave Hill WhatGE
@ 1994-03-03 3:16 ` Oliver Jones
1994-03-03 6:25 ` Stefan Monnier
1 sibling, 1 reply; 4+ messages in thread
From: Oliver Jones @ 1994-03-03 3:16 UTC (permalink / raw)
In article <2l2asc$5hq@disun41.epfl.ch>,
Stefan Monnier <monnier@di.epfl.ch> wrote:
>...sometimes when ctwm wants to open a window (for some random client
>like xterm), it might be prevented to do so for various reasons
>(typically xlock, but it's not the only option). It normally just
>waits until it can go on working, but from time to time, it just hangs
>there, its virtual size getting bigger and bigger.
xlock, xdm and their ilk often do XGrabServer. This causes
XOpenDisplay calls to hang in _XWaitForReadable rather than fail.
If a client is designed to attempt to connect to a grabbed
server, it needs a timer-signal-style escape hatch from this
hang.
I don't know why this thing grows without bound on alpha.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: blocked in an X lib
1994-03-03 3:16 ` Oliver Jones
@ 1994-03-03 6:25 ` Stefan Monnier
0 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 1994-03-03 6:25 UTC (permalink / raw)
In article <CM2Js3.89H@world.std.com>, Oliver Jones <oj@world.std.com> wrote:
> xlock, xdm and their ilk often do XGrabServer. This causes
> XOpenDisplay calls to hang in _XWaitForReadable rather than fail.
> If a client is designed to attempt to connect to a grabbed
> server, it needs a timer-signal-style escape hatch from this
> hang.
> I don't know why this thing grows without bound on alpha.
The problem isn't quite that _XWaitForReadable hangs.
In general (even with ctwm, as long as you don't use the animation
feature), it just hangs until the dxpause or xlock releases the server
and that's fine (it doesn't grow without bound in this case).
The problem is that sometimes (specifically with ctwm&animation (the
patchlevel 2 doesn't help here) and only if xlock has already been
running for a while before ctwm calls XFetchName (which ends up in
_XWaitForReadable)) the _XWaitForReadable grows without bounds and
hangs FOR REAL (even if you exit xlock soon after: it will stay stuck
in _XWaitForReadable). The growing size is probably due to the fact
that it's not stuck in a 'select' call, but is actively stuck: the
control doesn't get out of _XWaitForReadable but 'select' keeps being
called.
Given the rather specific circumstance, it's not too easy to decide
whether it's ctwm's fault or Xlib's fault (at least it's not the
Xserver's fault). That's why I asked to see if other people had
already experienced that problem.
Stefan
--
-----------------------------------------------------
-- On the average, people seem to be acting normal --
-----------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1994-03-03 6:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-03-02 15:20 blocked in an X lib Stefan Monnier
1994-03-02 19:37 ` Dave Hill WhatGE
1994-03-03 3:16 ` Oliver Jones
1994-03-03 6:25 ` Stefan Monnier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox