ratpoison-devel
[Top][All Lists]
Advanced

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

Re: [RP] Ratpoison makes xterm segfault


From: Jonathan Walther
Subject: Re: [RP] Ratpoison makes xterm segfault
Date: Fri, 16 Feb 2001 11:06:11 -0800 (PST)

-----BEGIN PGP SIGNED MESSAGE-----

the LANG=C thing didn't help; sorry.

Here is the backtrace from gdb on the corefile with -ggdb3 enabled:
The version of xterm is 150.

address@hidden djw]$ bin/xterm
Segmentation fault (core dumped)
address@hidden djw]$ gdb bin/xterm core
GNU gdb 19991004
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
Core was generated by `bin/xterm'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/X11R6/lib/libXaw.so.6...done.
Reading symbols from /usr/X11R6/lib/libXmu.so.6...done.
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Reading symbols from /usr/X11R6/lib/libXt.so.6...done.
Reading symbols from /usr/X11R6/lib/libSM.so.6...done.
Reading symbols from /usr/X11R6/lib/libICE.so.6...done.
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Reading symbols from /lib/libnsl.so.1...done.
Reading symbols from /lib/libtermcap.so.2...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /lib/libnss_files.so.2...done.
#0  0x80709b0 in handle_translated_exposure (screen=0x809a3bc, rect_x=0, 
rect_y=0, rect_width=1280, rect_height=1024) at ./util.c:1113
1113            leftcol = (rect_x - OriginX(screen))
(gdb) bt
#0  0x80709b0 in handle_translated_exposure (screen=0x809a3bc, rect_x=0, 
rect_y=0, rect_width=1280, rect_height=1024) at ./util.c:1113
#1  0x807072d in HandleExposure (screen=0x809a3bc, event=0xbfffe5e0) at 
./util.c:1060
#2  0x805632b in VTExpose (w=0x809a340, event=0xbfffe5e0, region=0x0) at 
./charproc.c:3973
#3  0x8066eab in Redraw () at ./misc.c:763
#4  0x806d269 in ScrollBarOn (xw=0x809a340, init=0, doalloc=1) at 
./scrollbar.c:430
#5  0x805843f in VTRealize (w=0x809a340, valuemask=0xbfffe744, 
values=0xbfffe758) at ./charproc.c:4759
#6  0x400933db in RealizeWidget () from /usr/X11R6/lib/libXt.so.6
#7  0x400935dd in RealizeWidget () from /usr/X11R6/lib/libXt.so.6
#8  0x400936b4 in XtRealizeWidget () from /usr/X11R6/lib/libXt.so.6
#9  0x8056758 in VTInit () at ./charproc.c:4128
#10 0x806288b in spawn () at ./main.c:2620
#11 0x8061f7a in main (argc=0, argv=0xbffffce8) at ./main.c:1895
(gdb)

On Fri, 16 Feb 2001, Gergely Nagy wrote:
> Thus spoke Jonathan Walther <address@hidden> on 2001-02-13 16:07:12:
> [snip]
> > QTDIR=/usr/lib/qt-2.1.0
> 
> This is Evil. :>
> 
> [snip]
> > LANG=en_US
> [snip]
> 
> Hmm... I heard about some Xlib - GLibc locale conflict...
> Could you try it with LANG=C ? Very unlikely that that would
> cause this, but let's hope...
> 
> [snip]
> 
> I couldn't figure out anything from the strace/gdb output :(.
> Could you please send me your xterm binary ? Or better, if we
> could meet on IRC somewhere, that would be the best...
> 
> In the mean time, if you have plenty of time & you have the
> resources, you could try compiling an xterm with debugging
> symbols (CFLAGS=-ggdb3 or something like that should do the
> trick), and retry with gdb...
> 
> Furthermore, something like this (in gdb) could help a little:
> > break main
> > run
> [if it segfaults, before main, I have no idea...]
> [if it does not, then there's still hope :]
> > next
> [repeat until it segfaults...]
> 
> Now try a show [whatever variable was given to the function that
> segfaulted] & things like that.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBOo16JcK9HT/YfGeBAQH3fgP/VdlnOpMpyEy4gh6Yp+y2bOtTJELbTrvY
i8IVpQrLm79aCEdvgStcxciOdcZfTEexpFjwKEM6qWjOEzQCa85WtY1brGjSEtTr
KHEQkF3hPnjzSGm+tJQiRHpem1xD2LvA4azY014LWFXGhBuLKGcWk2X87+8Ffq+U
WwEyR+6BG44=
=UqNy
-----END PGP SIGNATURE-----

reply via email to

[Prev in Thread] Current Thread [Next in Thread]