On Thu, Aug 02, 2007 at 05:08:53PM -0400, Thomas Dickey wrote:
> If you have the time, compiling the xterm source (with the appropriate
> options to match Debian's configuration) could perhaps get a usable
> walkback from the debugger.  I can offer advice on that...

I've got "apt-get source xterm" and re-compiled it (with debug
information).  See below for the output.  Tell me if you need more info.

bash$ gdb xterm
GNU gdb 6.4.90-debian
Copyright (C) 2006 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 "x86_64-linux-gnu"...Using host libthread_db library 
"/lib/libthread_db.so.1".

(gdb) set args -e 'vim xxx'
(gdb) b xerror
Breakpoint 1 at 0x4237b0: file ./misc.c, line 3279.
(gdb) r
Starting program: /usr/bin/xterm -e 'vim xxx'
[Thread debugging using libthread_db enabled]
[New Thread 47859210569600 (LWP 14529)]
[Switching to Thread 47859210569600 (LWP 14529)]

Breakpoint 1, xerror (d=0x55f450, ev=0x7fff950c4fb0) at ./misc.c:3279
3279    {
(gdb) bt
#0  xerror (d=0x55f450, ev=0x7fff950c4fb0) at ./misc.c:3279
#1  0x00002b87164a806e in _XError (dpy=0x55f450, rep=<value optimized out>)
    at ../../src/XlibInt.c:2888
#2  0x00002b87164a9dbb in _XReply (dpy=0x55f450, rep=0x7fff950c5120, extra=0, 
    discard=1) at ../../src/XlibInt.c:1817
#3  0x00002b8716496c7b in XParseColor (dpy=0x55f450, cmap=32, spec=0x56d0e0 
"blue", 
    def=0x7fff950c5180) at ../../src/ParseCol.c:126
#4  0x0000000000424007 in AllocateAnsiColor (xw=0x578970, res=0x57a800, 
    spec=0x18b <Address 0x18b out of bounds>) at ./misc.c:1668
#5  0x00000000004240d0 in xtermGetColorRes (res=0x57a800) at ./misc.c:1710
#6  0x000000000040efef in SGR_Foreground (xw=0x578970, color=256) at 
./charproc.c:837
#7  0x0000000000412d0a in doparsing (xw=0x578970, c=109, sp=0x5599e0)
    at ./charproc.c:2017
#8  0x0000000000414d2d in VTparse (xw=0x578970) at ./charproc.c:2876
#9  0x0000000000414e3c in VTRun () at ./charproc.c:4786
#10 0x0000000000420365 in main (argc=2, argv=<value optimized out>) at 
./main.c:2416
(gdb) n
3280        fprintf(stderr, "%s:  warning, error event received:\n", 
xterm_name);
(gdb) 
3279    {
(gdb) 
3280        fprintf(stderr, "%s:  warning, error event received:\n", 
xterm_name);
(gdb) 
xterm:  warning, error event received:
3281        (void) XmuPrintDefaultErrorMessage(d, ev, stderr);
(gdb) 
X Error of failed request:  BadValue (integer parameter out of range for 
operation)
  Major opcode of failed request:  77 (X_ImageText16)
  Value in failed request:  0x0
  Serial number of failed request:  395
  Current serial number in output stream:  398
3282        Exit(ERROR_XERROR);
(gdb) 

Program exited with code 0123.
(gdb) 

-- 
Alexandra N. Kossovsky
OKTET Labs (http://www.oktetlabs.ru/)
Phones: +7(921)956-42-86(mobile) +7(812)783-21-91(office)
e-mail: [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to