Article View: comp.windows.x
Article #36886XtRemoveInput in X11R4 is broken
From: Oliver Laumann
Date: Wed, 14 Feb 1990 17:00
Date: Wed, 14 Feb 1990 17:00
27 lines
1278 bytes
1278 bytes
The following program (when compiled under X11R4) dumps core in
XtRemoveInput():
main () {
XtAppContext c;
XtInputId i;
XtToolkitInitialize ();
c = XtCreateApplicationContext ();
i = XtAppAddInput (c, 1, XtInputWriteMask, main, 0);
XtRemoveInput (i);
}
It works fine when XtInputReadMask is used instead of XtInputWriteMask.
In general, XtRemoveInput seems to dump core when a data sink is
registered, but no data source has been registered yet in the same
application context.
In this case, the queue holding the data sources (selectRqueue) is not
allocated, but it is searched in XtRemoveInput.
I assume no-one has ever tried to register an "input" source with
XtInputWriteMask, otherwise this bug wouldn't have survived until X11R4...
Regards,
--
Oliver Laumann net@TUB.BITNET net@tub.cs.tu-berlin.de net@tub.UUCP
Technical Details
Message-ID:
<1175@tub.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!unido!tub!netShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!unido!tub!net From: net@tub.UUCP (Oliver Laumann) Newsgroups: comp.windows.x Subject: XtRemoveInput in X11R4 is broken Message-ID: <1175@tub.UUCP> Date: 14 Feb 90 17:00:17 GMT Reply-To: net@tub.UUCP (Oliver Laumann) Organization: Technical University of Berlin, Germany Lines: 27