[9119] in Athena Bugs

home help back first fref pref prev next nref lref last post

vax 7.3P: xdsc

daemon@ATHENA.MIT.EDU (Calvin Clark)
Tue Mar 24 15:01:08 1992

Date: Tue, 24 Mar 92 15:00:25 -0500
From: Calvin Clark <ckclark@mit.edu>
To: bugs@Athena.MIT.EDU
Cc: bug-discuss@Athena.MIT.EDU
Reply-To: ckclark@mit.edu

System name:		valhalla
Type and version:	CVAXSTAR 7.3P
Display type:		SM

What were you trying to do?

	Run xdsc, just to see what it does.

What's wrong:

	It segfaulted because it couldn't write to my homedir.  It's
pretty easy to repeat.  Just unmap or unlog and try to run it.
Ultimately, it's dying because XtGetValues() is being called with a null
first argument.  This means there is also a bug in the Xt library.
Anyway, note that when you can't write to your homedir, edsc exits
almost immediately with the diagnostic ";Permission denied". I looked at
the xdsc code a bit, and found that a couple of calls to fflush()
weren't being checked (and a SIGPIPE was received at the time.)  It's
also trying to bring up a warning window even though the top level
widget has not been created, which is the source of the bad argument to
XtGetValues.  I rapidly lost interest.  Here's a stack trace:

(gdb) where
#0  0x1fcd4 in XtGetValues (0, 2147475600, 3)
#1  0x4645 in PutUpWarning (...) (...)
#2  0x18e8 in RunCommand (...) (...)
#3  0x1c05 in CheckEdscVersion (...) (...)
#4  0x4f7 in main (...) (...)

The problem reported in [8537] in bugs is probably related, if not
exactly the same thing.

What should have happened:

	It should print the error message returned by edsc ("Permission
denied") rather than dying.  As far as I can tell from a quick look,
xdsc ignores any startup error messages edsc produces.

Please describe any relevant documentation references:

	xdsc(1) edsc(1) XtGetValues(3Xt)

home help back first fref pref prev next nref lref last post