gtk Failure on HP-UX - Crash in _gdk_x11_set_input_focus_safe method



I am facing a failure when I run any application that uses GTK 2.6. 

Used the following to build GTK2.6 : glib-2.6.4  pango-1.8.1 atk-1.9.0 

The following is the stack trace when I run the gtk-demo.
When I run the demo &  move the focus to the  frame, I get the
following failure.

 Program received signal SIGSEGV, Segmentation fault
  si_code: 0 - SEGV_UNKNOWN - Unknown Error.
0x7a8a9348 in _gdk_x11_set_input_focus_safe (display=0x7af012d8, 
    window=79691783, revert_to=2, time=1997427163) at gdkasync.c:327
327       LockDisplay(dpy);
(gdb) bt
#0  0x7a8a9348 in _gdk_x11_set_input_focus_safe (display=0x7af012d8, 
    window=79691783, revert_to=2, time=1997427163) at gdkasync.c:327
#1  0x7a8bd32c in gdk_wm_protocols_filter (xev=0x7a829d90, event=0xc5, 
    data=0x7aefc208) at gdkevents-x11.c:2086
#2  0x7a8a9334 in _gdk_x11_set_input_focus_safe (display=0x7af012d8, window=1, 
    revert_to=1074348616, time=2055380368) at gdkasync.c:323
#3  0x7ad50810 in g_list_append (list=0x646f7700, data=0x2077696e)
    at glist.c:246
#4  0x42757474 in <unknown_procedure> ()
#5  0x7a8a9334 in _gdk_x11_set_input_focus_safe (display=0x7af012d8, 
    window=110592, revert_to=1074449528, time=1073754160) at gdkasync.c:323
Error accessing memory address 0x6f6e5ece: Bad address.
(gdb) print display
$1 = (struct _GdkDisplay *) 0x7af012d8
(gdb) print *display
$2 = {parent_instance = {g_type_instance = {g_class = 0x0}, ref_count = 0, 
    qdata = 0x0}, queued_events = 0x0, queued_tail = 0x0, button_click_time = {
    0, 0}, button_window = {0x0, 0x0}, button_number = {0, 0}, 
  double_click_time = 0, core_pointer = 0x0, pointer_hooks = 0x0, closed = 0, 
  double_click_distance = 0, button_x = {0, 0}, button_y = {0, 0}}
(gdb) print dpy
$3 = (struct _XDisplay *) 0x40011aa0
(gdb) print *dpy
$4 = {ext_data = 0x0, free_funcs = 0x40014048, fd = 8, conn_checker = 2, 
  proto_major_version = 11, proto_minor_version = 0, 
  vendor = 0x40014118 "AT&T Laboratories Cambridge", resource_base = 79691776, 
  resource_mask = 4194303, resource_id = 47, resource_shift = 0, 
  resource_alloc = 0x7aa8cd7e <_XAllocID>, byte_order = 1, bitmap_unit = 32, 
  bitmap_pad = 32, bitmap_bit_order = 1, nformats = 2, 
  pixmap_format = 0x40014140, vnumber = 11, release = 3331, head = 0x400a5528, 
  tail = 0x400a5528, qlen = 1, last_request_read = 349, request = 357, 
  last_req = 0x7aa9c6b8 "", buffer = 0x40013840 "8\002", 
  bufptr = 0x40013840 "8\002", bufmax = 0x40014040 "@", 
  max_request_size = 65535, db = 0x400608c0, synchandler = 0, 
  display_name = 0x40013828 "jwork04:4.0", default_screen = 0, nscreens = 1, 
  screens = 0x40014168, motion_buffer = 256, flags = 4, min_keycode = 8, 
  max_keycode = 255, keysyms = 0x0, modifiermap = 0x0, 
  keysyms_per_keycode = 0, 
  xdefaults = 0x40015778
"*0*ColorPalette:\tDefault.dp\n*DtEditor*textFontList:\t-dt-interface
user-medium-r-normal-s*-*-*-*-*-*-*-*-*:\n*DtTerm*shadowThickness:\t1\n*Font:\t-dt-interface
user-medium-r-normal-s*-*-*-*-*-*-*-*-*\n*Font"..., scratch_buffer =
0x400a9d48 "", scratch_length = 8, ext_number = 5,
  ext_procs = 0x40060858, event_vec = {0x7aa8cdf6 <_XUnknownWireEvent>, 
    0x7aa8cdf6 <_XUnknownWireEvent>, 
    0x7aa8ce06 <_XWireToEvent> <repeats 33 times>, 
    0x7aa8cdf6 <_XUnknownWireEvent> <repeats 30 times>, 
---Type <return> to continue, or q <return> to quit---
    0x7a8e92fa <wire_to_event>, 0x7a8e9332 <wire_to_event>, 
    0x7a8e9332 <wire_to_event>, 
    0x7aa8cdf6 <_XUnknownWireEvent> <repeats 60 times>}, wire_vec = {
    0x7aa8cdfe <_XUnknownNativeEvent>, 0x7aa8cdfe <_XUnknownNativeEvent>, 
    0 <repeats 33 times>, 
    0x7aa8cdfe <_XUnknownNativeEvent> <repeats 30 times>, 
    0x7a8e9302 <event_to_wire>, 0x7a8e933a <event_to_wire>, 
    0x7a8e933a <event_to_wire>, 
    0x7aa8cdfe <_XUnknownNativeEvent> <repeats 60 times>}, lock_meaning = 0, 
  lock = 0x0, async_handlers = 0x0, bigreq_size = 0, lock_fns = 0x4c0001f, 
  idlist_alloc = 0x400186e8, key_bindings = 0x0, cursor_font = 0, atoms = 0x0, 
  mode_switch = 0, num_lock = 0, context_db = 0x0, error_vec = 0x0, cms = {
    defaultCCCs = 0x0, clientCmaps = 0x0, perVisualIntensityMaps = 0x0}, 
  im_filters = 0x0, filler = {0, 0, 0, 1, 0, 2057883038, 0}, qfree = 0x0, 
  next_event_serial_num = 0, flushes = 0x0, im_fd_info = 0x0, 
  im_fd_length = 0, conn_watchers = 0x0, watcher_count = 0, filedes = 0x0, 
  savedsynchandler = 0, resource_max = 0, xcmisc_opcode = 0, xkb_info = 0x0, 
  trans_conn = 0xfffff}
(gdb)  print (dpy)->lock_fns
$5 = (struct _XLockPtrs *) 0x4c0001f
(gdb) print (dpy)->lock_fns->lock_display
Error accessing memory address 0x4c0001f: Bad address.


   Looks like the the dpy value got from GDK_DISPLAY_XDISPLAY
(display) method is not proper on HP-UX. I see the same failure in all
the appliations that use   gtk+-2.6.7 .
I see the same failure in previous gtk2.4 also. Is this a know issue ?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]