[comp.sys.apollo] Bus error in Xlib

putnam@peanuts.nosc.mil (Mike Putnam) (03/30/90)

I have run across an Apollo X Window problem that has me stumped.
We are running Aegis 10.2, C compiler version 68K Rev 6.7(316).
In creating a graph widget (using the `graph widget' source from 
MIT's contrib directory) I get the ubiquitous `bus error'.                                       

A trace back results in:
      In routine     "CompositeInsertChild" line 157
      Called from    "XtCreateWidget" line 231
      Called from    "graph_initialize" line 166


The assembly language for line 157 looks like this:

   MOVE.l        d3,-(a7)
   MOVEA.l       (7A.w,a2),a0
   JSR           (a0)

Unfortunately register a0 ends up with address 101 which causes the
bus error.  Does any one know what routine is being called by
CompositeInsertChild on line 157?  Why would the compiler think
that this routine is at address 101?  Could I use MIT's Xlib source
to debug Apollo's Xlib binary?  Incidentally this program compiled and
ran under Aegis 9.7.  Other programs that use the graph widget produce
no errors.


                      Mike Putnam
                      Naval Ocean Systems Center
                      Code 634
                      San Diego, CA 92152
                      (619) 553-2926

                      Internet: putnam@nosc.mil
                      UUCP: sdcsvax!noscvax!putnam