After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 307816 - Crash in _gdk_x11_set_input_focus_safe method on HP-UX
Crash in _gdk_x11_set_input_focus_safe method on HP-UX
Status: RESOLVED DUPLICATE of bug 162979
Product: gtk+
Classification: Platform
Component: Backend: X11
2.6.x
Other HP-UX
: High critical
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2005-06-15 17:15 UTC by kgs
Modified: 2005-06-22 13:51 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description kgs 2005-06-15 17:15:48 UTC
Steps to reproduce:
1. Built GTK2.6 on HP-UX PA_RISC2.0
2. Run gtk-demo
3. The application crashes when the focus is moved to the demo

Stack trace:
 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 _gdk_x11_set_input_focus_safe
    at gdkasync.c line 327
  • #1 gdk_wm_protocols_filter
    at gdkevents-x11.c line 2086
  • #2 _gdk_x11_set_input_focus_safe
    at gdkasync.c line 323
  • #3 g_list_append
    at glist.c line 246
  • #4 <unknown_procedure>
  • #5 _gdk_x11_set_input_focus_safe
    at gdkasync.c line 323
$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.

Other information:
 The dpy value got from GDK_DISPLAY_XDISPLAY(display) method is not proper on
HP-UX. (dpy)->lock_fns->lock_display always return bad address. I see the same
failure in allthe appliations that use   gtk+-2.6.7 & GTK+2.4.* too.
Comment 1 Matthias Clasen 2005-06-22 13:51:54 UTC

*** This bug has been marked as a duplicate of 162979 ***