[1771] in Athena Bugs
Re: X, xdvi core dumps on RT
daemon@ATHENA.MIT.EDU (Ken Raeburn)
Mon Feb 13 06:29:40 1989
Date: Mon, 13 Feb 89 06:29:15 EST
From: Ken Raeburn <raeburn@ATHENA.MIT.EDU>
To: John Carr <jfc@ATHENA.MIT.EDU>
Cc: bugs@ATHENA.MIT.EDU
In-Reply-To: [1718] John Carr's message of Sun, 29 Jan 89 04:02:47 EST,
Date: Sun, 29 Jan 89 04:02:47 EST
From: John Carr <jfc@ATHENA.MIT.EDU>
This is another example of the lack of error checking within Xlib:
XCreateImage is not alone in ignoring lack of memory; several other
functions will cause a segmentation fault rather than return an error.
Actually, most of the memory allocation within the X library is (I
believe) done through a single routine (or set of routines) which
checks for success or failure; it could well be that the xdvi program
attempted to allocate the storage, and passed a null pointer to an
Xlib routine (which, reasonably, assumes that the pointers it receives
are valid).
If you run across more cases like this, though, especially in
"Athena-supported" X programs or in cases where you know it is
localized to the library or toolkit, please do send them in to "bugs".
-- Ken