Solaris 2.5.1 problems

Mike Boilen mgb at cs.brown.edu
Sun Nov 29 15:08:28 PST 1998


On Mon, Nov 23, 1998 at 06:46:05AM +0100, peter at transvirtual.com wrote:
> On Mon, 23 Nov 1998, Mike Boilen wrote:
> >(Kaffe uses some value that is initialized to something along the lines
> >of MAX_INT rather than a sane value like size of screen).  BTW the
> >dimensions of the window created are something like 15000x20 (where 20
> >is the size of the window title bar)
> 
> Really strange.. What are the values passed into wnd.c, createWindow() ?

I'm not too familiar with gdb, so I'll give you what I can
(unfortunately Solaris DBX and egcc debugger info don't get along too
well).  Here's the stop in createWindow: (I am using your FrameTest
program from below)

Breakpoint 1, createWindow (env=0xef79b2d4, clazz=0x4be678, parent=54, 
    owner=0x0, jTitle=0x3dbdd0, x=0, y=0, width=200, height=200,
jCursor=0, 
    clrBack=0, isResizable=1) at X/wnd.c:102

That all looks ok to me.

However, when I get down to the XCreateWindow(around wnd.c:126), there
are lots of problems:

(gdb) print X->borderWidth
$20 = -268446352
(gdb) print X->titleBarHeight
$21 = 20
(gdb) print X->bottomBarHeight
$22 = 1024


And because of that:
(gdb) print x
$23 = -268446352
(gdb) print y
$24 = 20
(gdb) print height
$25 = -844
(gdb) print width
$26 = 536892904


I'm guessing that isn't the desired behavior :)  Unfortunately, I don't
know what causes the problem.  Does this help?  Is there any more
information I can get for you?  I've attached a dump of "X" from that
function call, if that provides more information.  

Mike


> public class FrameTest {
>   public static void main ( String[] args ) {
>     Frame f = new Frame( "test");
>     f.setSize( 200, 200);
>     f.setVisible( true);
>     System.out.println( f.getBounds());
>   }
> }

(gdb) print *X
$27 = {dsp = 0x425e88, root = 54, 
  buf = 0x6e4ef8 "-b&h-lucida-%s-%s-*-*-%d-*-*-*-*-*-*-*", nBuf = 128, 
  visualClass = 4, tclr = 0x75dd90, pclr = 0x0, cursors = {88080394, 
    0 <repeats 13 times>}, titleBarHeight = 20, menuBarHeight = 20, 
  bottomBarHeight = 1024, borderWidth = -268446352, event = {type = 0, xany = {
      type = 0, serial = 0, send_event = 0, display = 0x0, window = 0}, 
    xkey = {type = 0, serial = 0, send_event = 0, display = 0x0, window = 0, 
      root = 0, subwindow = 0, time = 0, x = 0, y = 0, x_root = 0, y_root = 0, 
      state = 0, keycode = 0, same_screen = 0}, xbutton = {type = 0, 
      serial = 0, send_event = 0, display = 0x0, window = 0, root = 0, 
      subwindow = 0, time = 0, x = 0, y = 0, x_root = 0, y_root = 0, 
      state = 0, button = 0, same_screen = 0}, xmotion = {type = 0, 
      serial = 0, send_event = 0, display = 0x0, window = 0, root = 0, 
      subwindow = 0, time = 0, x = 0, y = 0, x_root = 0, y_root = 0, 
      state = 0, is_hint = 0 '\000', same_screen = 0}, xcrossing = {type = 0, 
      serial = 0, send_event = 0, display = 0x0, window = 0, root = 0, 
      subwindow = 0, time = 0, x = 0, y = 0, x_root = 0, y_root = 0, mode = 0, 
      detail = 0, same_screen = 0, focus = 0, state = 0}, xfocus = {type = 0, 
      serial = 0, send_event = 0, display = 0x0, window = 0, mode = 0, 
      detail = 0}, xexpose = {type = 0, serial = 0, send_event = 0, 
      display = 0x0, window = 0, x = 0, y = 0, width = 0, height = 0, 
      count = 0}, xgraphicsexpose = {type = 0, serial = 0, send_event = 0, 
      display = 0x0, drawable = 0, x = 0, y = 0, width = 0, height = 0, 
      count = 0, major_code = 0, minor_code = 0}, xnoexpose = {type = 0, 
      serial = 0, send_event = 0, display = 0x0, drawable = 0, major_code = 0, 
      minor_code = 0}, xvisibility = {type = 0, serial = 0, send_event = 0, 
      display = 0x0, window = 0, state = 0}, xcreatewindow = {type = 0, 
      serial = 0, send_event = 0, display = 0x0, parent = 0, window = 0, 
      x = 0, y = 0, width = 0, height = 0, border_width = 0, 
      override_redirect = 0}, xdestroywindow = {type = 0, serial = 0, 
      send_event = 0, display = 0x0, event = 0, window = 0}, xunmap = {
      type = 0, serial = 0, send_event = 0, display = 0x0, event = 0, 
      window = 0, from_configure = 0}, xmap = {type = 0, serial = 0, 
 send_event = 0, display = 0x0, event = 0, window = 0, 
      override_redirect = 0}, xmaprequest = {type = 0, serial = 0, 
      send_event = 0, display = 0x0, parent = 0, window = 0}, xreparent = {
      type = 0, serial = 0, send_event = 0, display = 0x0, event = 0, 
      window = 0, parent = 0, x = 0, y = 0, override_redirect = 0}, 
    xconfigure = {type = 0, serial = 0, send_event = 0, display = 0x0, 
      event = 0, window = 0, x = 0, y = 0, width = 0, height = 0, 
      border_width = 0, above = 0, override_redirect = 0}, xgravity = {
      type = 0, serial = 0, send_event = 0, display = 0x0, event = 0, 
      window = 0, x = 0, y = 0}, xresizerequest = {type = 0, serial = 0, 
      send_event = 0, display = 0x0, window = 0, width = 0, height = 0}, 
    xconfigurerequest = {type = 0, serial = 0, send_event = 0, display = 0x0, 
      parent = 0, window = 0, x = 0, y = 0, width = 0, height = 0, 
      border_width = 0, above = 0, detail = 0, value_mask = 0}, xcirculate = {
      type = 0, serial = 0, send_event = 0, display = 0x0, event = 0, 
      window = 0, place = 0}, xcirculaterequest = {type = 0, serial = 0, 
      send_event = 0, display = 0x0, parent = 0, window = 0, place = 0}, 
    xproperty = {type = 0, serial = 0, send_event = 0, display = 0x0, 
      window = 0, atom = 0, time = 0, state = 0}, xselectionclear = {type = 0, 
      serial = 0, send_event = 0, display = 0x0, window = 0, selection = 0, 
      time = 0}, xselectionrequest = {type = 0, serial = 0, send_event = 0, 
      display = 0x0, owner = 0, requestor = 0, selection = 0, target = 0, 
      property = 0, time = 0}, xselection = {type = 0, serial = 0, 
      send_event = 0, display = 0x0, requestor = 0, selection = 0, target = 0, 
      property = 0, time = 0}, xcolormap = {type = 0, serial = 0, 
      send_event = 0, display = 0x0, window = 0, colormap = 0, new = 0, 
      state = 0}, xclient = {type = 0, serial = 0, send_event = 0, 
      display = 0x0, window = 0, message_type = 0, format = 0, data = {
        b = '\000' <repeats 19 times>, s = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
        l = {0, 0, 0, 0, 0}}}, xmapping = {type = 0, serial = 0, 
      send_event = 0, display = 0x0, window = 0, request = 0, 
      first_keycode = 0, count = 0}, xerror = {type = 0, display = 0x0, 
      resourceid = 0, serial = 0, error_code = 0 '\000', 
request_code = 0 '\000', minor_code = 0 '\000'}, xkeymap = {type = 0, 
      serial = 0, send_event = 0, display = 0x0, window = 0, 
      key_vector = '\000' <repeats 31 times>}, pad = {0 <repeats 24 times>}}, 
  preFetched = 0 '\000', peek = 0 '\000', pending = 0, evtId = 0, 
  lastWindow = 0, srcIdx = 0, windows = 0x0, nWindows = 0, cbdOwner = 0, 
  newWindow = 0}





More information about the kaffe mailing list