Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcvax!ukc!stl!stc!datlog!torch!richard From: richard@torch.UUCP (Richard Nuttall) Newsgroups: comp.windows.x Subject: bug in xedit (only shows up on sparc) Keywords: xedit sparc Message-ID: <340@torch.UUCP> Date: 10 May 89 10:19:05 GMT Reply-To: richard@torch.UUCP (Richard Nuttall) Organization: TORCH Technology Ltd., Cambridge, United Kingdom Lines: 21 Followup-To:comp.windows.x There is a bug in the distributed version of xedit which causes a core dump on the sparc (SUN4). Below is a simple fix. 183c183,184 < XtGetValues(toplevel, args, XtNumber(args)); --- > /*XtGetValues(toplevel, args, XtNumber(args));*/ > XtGetValues(toplevel, args, 2); The problem occurs because XtNumber returns 3 (since that is the size of the array) but only 2 values are initialised. On all? machines except the sparc, the stack at that point happens to be 0. On the sparc, the values are not 0, and so invalid values result, causing a segmentation violation. -- Richard Nuttall | ukc!stc!datlog!torch!richard Torch Technology Ltd. | 0223 841000 X 309 Cambridge England |