[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug in xcommon/TextField.c:293 (Siag 3.1.16)
A workaround is to comment out the line
#define HAVE_XCREATEIC 1
in config.h and recompile. You will then probably (depending on other
features in your X-server) get problems with entering dead keys, but at
least it shouldn't crash.
I'll add a check so the input method code can fall back onto something
safe if necessary. In 3.1.17, hopefully.
Original message below. Thanks for the debug trace, it was very useful.
Ulric
---------- Forwarded message ----------
Hello!
For whatever reason, XOpenIM call in the previous line returns NULL,
which is NOT CHECKED for. The programs (siag, egon) then die in the
xcommon/TextField.c because the xim argument passed to XGetIMValues is
NULL.
I'm having this problem on two machines -- a P90 with Xinside-3.1
xserver and a PII300 with Xinside-5.0.0.1 xserver. Operating system in
both cases if FreeBSD-3.2-STABLE. I have very limited knowledge of
X-programming, but here is the gdb's output you may find usefull
(debugging siag). xdpyinfo from both displays is below. I'd apreciate
work-around suggestions while this bug is being fixed... Thanks! Yours,
-mi
Program received signal SIGSEGV, Segmentation fault.
0x282c3d46 in XGetIMValues () from /usr/X11R6/lib/libX11.so.6
(gdb) where
#0 0x282c3d46 in XGetIMValues () from /usr/X11R6/lib/libX11.so.6
#1 0x807af00 in Realize (w=0x81adc00, valueMask=0xbfbfd2fc,
attributes=0xbfbfd300) at TextField.c:293
#2 0x2825e947 in RealizeWidget () from /usr/X11R6/lib/libXt.so.6
#3 0x2825ead4 in RealizeWidget () from /usr/X11R6/lib/libXt.so.6
#4 0x2825ead4 in RealizeWidget () from /usr/X11R6/lib/libXt.so.6
#5 0x2825ead4 in RealizeWidget () from /usr/X11R6/lib/libXt.so.6
#6 0x2825ead4 in RealizeWidget () from /usr/X11R6/lib/libXt.so.6
#7 0x2825eb6c in XtRealizeWidget () from /usr/X11R6/lib/libXt.so.6
#8 0x8053e24 in init_windows (b=0x816c000, argc=0xbfbfdae8, argv=0xbfbfdbd0)
at window.c:2422
#9 0x806d9d3 in realmain (argc=1, argv=0xbfbfdbd0) at main.c:147
#10 0x28106e4b in gh_launch_pad () from /usr/local/lib/libguile.so.4
#11 0x804deb5 in _start ()
(gdb) up
#1 0x807af00 in Realize (w=0x81adc00, valueMask=0xbfbfd2fc,
attributes=0xbfbfd300) at TextField.c:293
[...]
(gdb) p rtw->text.xim
$1 = (struct _XIM *) 0x0
(gdb) p name
$2 = 0x816d400 "siag"
(gdb) p class
$3 = 0x816d405 "Siag"
(gdb) p XtDatabase(dpy)
$4 = 135742608
name of display: :0.0
version number: 11.0
vendor string: Xi Graphics, Inc.
vendor release number: 5001
maximum request size: 4194300 bytes
motion buffer size: 256
bitmap unit, bit order, padding: 32, LSBFirst, 32
image byte order: LSBFirst
number of supported pixmap formats: 8
supported pixmap formats:
depth 1, bits_per_pixel 1, scanline_pad 32
depth 4, bits_per_pixel 8, scanline_pad 32
depth 8, bits_per_pixel 8, scanline_pad 32
depth 12, bits_per_pixel 16, scanline_pad 32
depth 15, bits_per_pixel 16, scanline_pad 32
depth 16, bits_per_pixel 16, scanline_pad 32
depth 24, bits_per_pixel 32, scanline_pad 32
depth 32, bits_per_pixel 32, scanline_pad 32
keycode range: minimum 8, maximum 167
focus: window 0x440000f, revert to PointerRoot
number of extensions: 17
BIG-REQUESTS
DOUBLE-BUFFER
DPMS
MIT-SCREEN-SAVER
MIT-SHM
MIT-SUNDRY-NONSTANDARD
RECORD
SECURITY
SHAPE
SYNC
X3D-PEX
XC-MISC
XIE
XInputExtension
XTEST
XiG-SMT
XiG-SUNDRY-NONSTANDARD
default screen number: 0
number of screens: 1
screen #0:
dimensions: 1600x1200 pixels (542x406 millimeters)
resolution: 75x75 dots per inch
depths (2): 1, 16
root window id: 0x54
depth of root window: 16 planes
number of colormaps: minimum 1, maximum 1
default colormap: 0x52
default number of colormap cells: 64
preallocated pixels: black 0, white 65535
options: backing-store NO, save-unders NO
largest cursor: 64x64
current input event mask: 0xf8603f
KeyPressMask KeyReleaseMask ButtonPressMask
ButtonReleaseMask EnterWindowMask LeaveWindowMask
ButtonMotionMask KeymapStateMask SubstructureNotifyMask
SubstructureRedirectMask FocusChangeMask PropertyChangeMask
ColormapChangeMask
number of visuals: 5
default visual id: 0x20
visual:
visual id: 0x20
class: TrueColor
depth: 16 planes
available colormap entries: 64 per subfield
red, green, blue masks: 0xf800, 0x7e0, 0x1f
significant bits in color specification: 8 bits
visual:
visual id: 0x21
class: DirectColor
depth: 16 planes
available colormap entries: 64 per subfield
red, green, blue masks: 0xf800, 0x7e0, 0x1f
significant bits in color specification: 8 bits
visual:
visual id: 0x22
class: TrueColor
depth: 16 planes
available colormap entries: 64 per subfield
red, green, blue masks: 0xf800, 0x7e0, 0x1f
significant bits in color specification: 8 bits
visual:
visual id: 0x23
class: TrueColor
depth: 16 planes
available colormap entries: 64 per subfield
red, green, blue masks: 0xf800, 0x7e0, 0x1f
significant bits in color specification: 8 bits
visual:
visual id: 0x24
class: TrueColor
depth: 16 planes
available colormap entries: 64 per subfield
red, green, blue masks: 0xf800, 0x7e0, 0x1f
significant bits in color specification: 8 bits
name of display: :0.0
version number: 11.0
vendor string: Xi Graphics
vendor release number: 3100
maximum request size: 4194300 bytes
motion buffer size: 256
bitmap unit, bit order, padding: 32, LSBFirst, 32
image byte order: LSBFirst
number of supported pixmap formats: 7
supported pixmap formats:
depth 1, bits_per_pixel 1, scanline_pad 32
depth 4, bits_per_pixel 8, scanline_pad 32
depth 8, bits_per_pixel 8, scanline_pad 32
depth 15, bits_per_pixel 16, scanline_pad 32
depth 16, bits_per_pixel 16, scanline_pad 32
depth 24, bits_per_pixel 32, scanline_pad 32
depth 32, bits_per_pixel 32, scanline_pad 32
keycode range: minimum 8, maximum 167
focus: window 0x1c00009, revert to PointerRoot
number of extensions: 15
BIG-REQUESTS
DOUBLE-BUFFER
MIT-SCREEN-SAVER
MIT-SHM
MIT-SUNDRY-NONSTANDARD
RECORD
SHAPE
SYNC
X3D-PEX
XC-MISC
XIE
XIdle
XTEST
XTestExtension1
XsightExtension
default screen number: 0
number of screens: 1
screen #0:
dimensions: 1600x1200 pixels (542x406 millimeters)
resolution: 75x75 dots per inch
depths (2): 1, 8
root window id: 0x28
depth of root window: 8 planes
number of colormaps: minimum 1, maximum 1
default colormap: 0x26
default number of colormap cells: 256
preallocated pixels: black 0, white 1
options: backing-store YES, save-unders YES
largest cursor: 64x64
current input event mask: 0xf8603f
KeyPressMask KeyReleaseMask ButtonPressMask
ButtonReleaseMask EnterWindowMask LeaveWindowMask
ButtonMotionMask KeymapStateMask SubstructureNotifyMask
SubstructureRedirectMask FocusChangeMask PropertyChangeMask
ColormapChangeMask
number of visuals: 6
default visual id: 0x20
visual:
visual id: 0x20
class: PseudoColor
depth: 8 planes
available colormap entries: 256
red, green, blue masks: 0x0, 0x0, 0x0
significant bits in color specification: 8 bits
visual:
visual id: 0x21
class: TrueColor
depth: 8 planes
available colormap entries: 8 per subfield
red, green, blue masks: 0xe0, 0x1c, 0x3
significant bits in color specification: 8 bits
visual:
visual id: 0x22
class: StaticGray
depth: 8 planes
available colormap entries: 256
red, green, blue masks: 0x0, 0x0, 0x0
significant bits in color specification: 8 bits
visual:
visual id: 0x23
class: GrayScale
depth: 8 planes
available colormap entries: 256
red, green, blue masks: 0x0, 0x0, 0x0
significant bits in color specification: 8 bits
visual:
visual id: 0x24
class: DirectColor
depth: 8 planes
available colormap entries: 8 per subfield
red, green, blue masks: 0xe0, 0x1c, 0x3
significant bits in color specification: 8 bits
visual:
visual id: 0x25
class: StaticColor
depth: 8 planes
available colormap entries: 256
red, green, blue masks: 0x0, 0x0, 0x0
significant bits in color specification: 8 bits