Bug#293796: libgtk2.0-0: tries to use shared memory on remote display
Rich McAllister
Rich McAllister <rfm@pensfa.org>, 293796@bugs.debian.org
Sat, 05 Feb 2005 12:00:12 -0800
Package: libgtk2.0-0
Version: 2.6.1-2
Severity: important
To reproduce, set DISPLAY to a remote X display (naturally make sure
that display is listening on TCP, and make sure xauth permissions
are ok.) The remote display I was using was XFree86 4.2.1
(running on a woody system, using the backports debs) but
I doubt it's X release dependent. Have GNOME installed and try
to run /usr/games/sol (lots of other apps fail, but this one
is easy.) The initial display comes up and then sol crashes with
The program 'sol' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadImplementation (server does not implement operation)'.
(Details: serial 1094 error_code 17 request_code 155 minor_code 10)
using the gtk2.0-0-dbg libs, running under gdb, and using --sync gets
a stack trace starting like this:
(gdb) where
#0 gdk_x_error (display=0xbffff0d0, error=0xbffff0d0) at gdkmain-x11.c:505
#1 0x401c5614 in _XError () from /usr/X11R6/lib/libX11.so.6
#2 0x401c3b73 in _XReply () from /usr/X11R6/lib/libX11.so.6
#3 0x401beda4 in XSync () from /usr/X11R6/lib/libX11.so.6
#4 0x401bee65 in _XSyncFunction () from /usr/X11R6/lib/libX11.so.6
#5 0x40f56ac7 in XShmAttach () from /usr/X11R6/lib/libXext.so.6
#6 0x40974b42 in _gdk_image_new_for_depth (screen=0x806f0c8,
type=GDK_IMAGE_SHARED, visual=0x806d2b0, width=1536, height=64, depth=32)
at gdkimage-x11.c:337
#7 0x4094a812 in allocate_scratch_images (info=0x812f6a8, n_images=1,
shared=1) at gdkimage.c:208
#8 0x4094a8cf in scratch_image_info_for_depth (screen=0x806f0c8, depth=0)
at gdkimage.c:255
#9 0x4094aa0d in _gdk_image_get_scratch (screen=0x806f0c8, width=48,
height=48, depth=-1073745712, x=0xbffff364, y=0xbffff368) at gdkimage.c:347
#10 0x4096b595 in draw_with_pixmaps (drawable=0x812eba8, gc=0x812ebd8,
format_type=GDK_X11_FORMAT_EXACT_MASK, format=0x812ef40,
mask_format=0x812edc0, src_rgb=0x80bf208 "", src_rowstride=192, dest_x=0,
dest_y=0, width=48, height=48) at gdkdrawable-x11.c:1406
#11 0x4096b831 in gdk_x11_draw_pixbuf (drawable=0x812eba8, gc=0x812ebd8,
pixbuf=0x80b8ba0, src_x=0, src_y=0, dest_x=0, dest_y=0, width=48,
height=48, dither=GDK_RGB_DITHER_NORMAL, x_dither=-1073745712,
y_dither=-1073745712) at gdkdrawable-x11.c:1471
#12 0x40945779 in IA__gdk_draw_pixbuf (drawable=0x812eba8, gc=0x812ebd8,
pixbuf=0x80b8ba0, src_x=-1073745712, src_y=-1073745712,
dest_x=-1073745712, dest_y=-1073745712, width=48, height=48,
dither=3221221584, x_dither=-1073745712, y_dither=-1073745712)
at gdkdraw.c:785
Seems like it shouldn't be trying to use shared memory on a remote
display. I thought there was an option or environment variable to
tell gtk not to use shared memory, but I can't find it right now.
BTW, this seemed to start with the recent upload of version 2.6.1-2 to
sarge. Things were working fine last week...
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.25-arda-acpi
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages libgtk2.0-0 depends on:
ii libatk1.0-0 1.8.0-4 The ATK accessibility toolkit
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libfontconfig1 2.2.3-4 generic font configuration library
ii libfreetype6 2.1.7-2.3 FreeType 2 font engine, shared lib
ii libglib2.0-0 2.6.1-3 The GLib library of C routines
ii libgtk2.0-0 2.6.1-2 The GTK+ graphical user interface
ii libgtk2.0-bin 2.6.1-2 The programs for the GTK+ graphica
ii libgtk2.0-common 2.6.1-2 Common files for the GTK+ graphica
ii libjpeg62 6b-9 The Independent JPEG Group's JPEG
ii libpango1.0-0 1.8.0-3 Layout and rendering of internatio
ii libpng12-0 1.2.8rel-1 PNG library - runtime
ii libtiff4 3.7.1-3 Tag Image File Format (TIFF) libra
ii libx11-6 4.3.0.dfsg.1-10 X Window System protocol client li
ii libxcursor1 1.1.3-1 X cursor management library
ii libxext6 4.3.0.dfsg.1-10 X Window System miscellaneous exte
ii libxft2 2.1.2-6 FreeType-based font drawing librar
ii libxi6 4.3.0.dfsg.1-10 X Window System Input extension li
ii libxrandr2 4.3.0.dfsg.1-10 X Window System Resize, Rotate and
ii libxrender1 0.8.3-7 X Rendering Extension client libra
ii xlibs 4.3.0.dfsg.1-10 X Keyboard Extension (XKB) configu
ii zlib1g 1:1.2.2-4 compression library - runtime
-- no debconf information