[comp.windows.x] X on a Sparc question

uucigj@swbatl.UUCP (3531) (10/24/89)

I have just gotten X11R3 running on my new Sparcstation and seem to be
having some problems with applications that use buttons.  Every time I move
the mouse over the location of a button that application dies with either
a memory fault or a segmentation violation.  Now, I am assuming that the
problem lies in the buttons but I could be wrong.  Of all the clients that
are provided with the base release of  X (that I received) every thing
works ok except those with buttons.  For example the xclipboard, the button
at the top that says "quit" , when I move the arrow all around the window 
it is fine.  But, when I move it over the button to quit I get: Memory
fault(coredump).  Background: Sparcstation 1, 8 meg memory, 19'' mono
monitor, 357 meg hard drive, running X with twm and 3 xterms, xclock and
xphoon.  I have taken it down to just running X and I get the same thing
(for what it matters).  I am a greenhorn on X and the Sun so it could be
something I have done in compiling (something I left out) but I can't seem
to find the answer.  If anyone might have an idea I would appreciate some
guidance.



      Gregg Jensen
   ---------------------------------------------------------------------- 
    These opinions are my own and do not necessarily reflect my companies.
      Southwestern Bell Telephone
      Send E-MAIL to the following address...
               ...!uunet!swbatl!uucigj
   ---------------------------------------------------------------------- 

macphed@dvinci.usask.ca (Ian MacPhedran) (10/26/89)

From article <894@swbatl.UUCP>, by uucigj@swbatl.UUCP (3531):
> 
> 
> I have just gotten X11R3 running on my new Sparcstation and seem to be
> having some problems with applications that use buttons.  Every time I move
> the mouse over the location of a button that application dies with either
> a memory fault or a segmentation violation.  Now, I am assuming that the
> problem lies in the buttons but I could be wrong.  Of all the clients that
> are provided with the base release of  X (that I received) every thing
> works ok except those with buttons.  For example the xclipboard, the button
> at the top that says "quit" , when I move the arrow all around the window 
> it is fine.  But, when I move it over the button to quit I get: Memory
> fault(coredump).

There appears to be problems when compiling the X11R3 distribution under
SunOS 4.0.3. (I assume that's what you're running.) Recompile without the
-O (optimizer) switch, and these problems will go away. I ran into the same
problems and went through a typical application with dbx to find the
culprit routines and recompiled them, but I forget which they were exactly.
(And I couldn't use xdbx, because it was one of the afflicted programs.)

It takes extra time, but it is worth it in the end.

Ian.

+------------------------------------+--------------------------------+
| Ian MacPhedran                     | USEnet ..!dvinci!macphed       |
| Engineering Applications           | BITNET MacPhedran@Sask         |
| Department of Computing Services   |        macphed@dvinci.usask.ca |
| 2B13 Engineering Bldg.             | Phone  (306) 966-4832          |
| University of Saskatchewan, Saskatoon, Saskatchewan, Canada S7N 0W0 |
+---------------------------------------------------------------------+