Bug#459041: xterm: version 230-1 segfaults somewhere when involving cut and paste
If I downgrade xterm to 229-1 the problem doesn't happen.
Here the bug under gdb (AMD64)
[vrz002:~]$ gdb /tmp/deb/xterm-230/debian/xterm/usr/bin/xterm
GNU gdb 6.7.1-debian
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) r
Starting program: /tmp/deb/xterm-230/debian/xterm/usr/bin/xterm
[Thread debugging using libthread_db enabled]
[New Thread 0x2ba542e20860 (LWP 15406)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2ba542e20860 (LWP 15406)]
0x000000000044f09e in getXtermCell (screen=0x6b20d8, row=0, col=29) at ../util.c:3500
3500 return PACK_PAIR(SCRN_BUF_CHARS(screen, row),
(gdb) bt full
#0 0x000000000044f09e in getXtermCell (screen=0x6b20d8, row=0, col=29) at ../util.c:3500
No locals.
#1 0x000000000040a5fa in PointToCELL (screen=0x6b20d8, y=6, x=184, cell=0x7fff6a48fd00) at ../button.c:2206
No locals.
#2 0x0000000000407e26 in HandleSelectExtend (w=0x6b1f60, event=0x7fff6a490450, params=0x0, num_params=0x2ba54115ba10) at ../button.c:946
xw = (XtermWidget) 0x6b1f60
screen = (TScreen *) 0x6b20d8
cell = {row = 0, col = 30}
#3 0x00002ba540f44abe in ?? () from /usr/lib/libXt.so.6
No symbol table info available.
#4 0x00002ba540f44ed9 in ?? () from /usr/lib/libXt.so.6
No symbol table info available.
#5 0x00002ba540f455df in _XtTranslateEvent () from /usr/lib/libXt.so.6
No symbol table info available.
#6 0x00002ba540f1d32a in XtDispatchEventToWidget () from /usr/lib/libXt.so.6
No symbol table info available.
#7 0x00002ba540f1d92b in ?? () from /usr/lib/libXt.so.6
No symbol table info available.
#8 0x00002ba540f1cb3b in XtDispatchEvent () from /usr/lib/libXt.so.6
No symbol table info available.
#9 0x00000000004364ec in xevents () at ../misc.c:405
xw = (XtermWidget) 0x6b1f60
screen = (TScreen *) 0x6b20d8
event = {type = 6, xany = {type = 6, serial = 421, send_event = 0, display = 0x68d420, window = 115343401}, xkey = {type = 6,
serial = 421, send_event = 0, display = 0x68d420, window = 115343401, root = 1097, subwindow = 0, time = 1908839, x = 184, y = 6,
x_root = 1566, y_root = 1219, state = 256, keycode = 0, same_screen = 1}, xbutton = {type = 6, serial = 421, send_event = 0,
display = 0x68d420, window = 115343401, root = 1097, subwindow = 0, time = 1908839, x = 184, y = 6, x_root = 1566, y_root = 1219,
state = 256, button = 0, same_screen = 1}, xmotion = {type = 6, serial = 421, send_event = 0, display = 0x68d420, window = 115343401,
root = 1097, subwindow = 0, time = 1908839, x = 184, y = 6, x_root = 1566, y_root = 1219, state = 256, is_hint = 0 '\0', same_screen = 1},
xcrossing = {type = 6, serial = 421, send_event = 0, display = 0x68d420, window = 115343401, root = 1097, subwindow = 0, time = 1908839,
x = 184, y = 6, x_root = 1566, y_root = 1219, mode = 256, detail = 0, same_screen = 1, focus = 0, state = 0}, xfocus = {type = 6,
serial = 421, send_event = 0, display = 0x68d420, window = 115343401, mode = 1097, detail = 0}, xexpose = {type = 6, serial = 421,
send_event = 0, display = 0x68d420, window = 115343401, x = 1097, y = 0, width = 0, height = 0, count = 1908839}, xgraphicsexpose = {
type = 6, serial = 421, send_event = 0, display = 0x68d420, drawable = 115343401, x = 1097, y = 0, width = 0, height = 0, count = 1908839,
major_code = 0, minor_code = 184}, xnoexpose = {type = 6, serial = 421, send_event = 0, display = 0x68d420, drawable = 115343401,
major_code = 1097, minor_code = 0}, xvisibility = {type = 6, serial = 421, send_event = 0, display = 0x68d420, window = 115343401,
state = 1097}, xcreatewindow = {type = 6, serial = 421, send_event = 0, display = 0x68d420, parent = 115343401, window = 1097, x = 0,
y = 0, width = 1908839, height = 0, border_width = 184, override_redirect = 6}, xdestroywindow = {type = 6, serial = 421, send_event = 0,
display = 0x68d420, event = 115343401, window = 1097}, xunmap = {type = 6, serial = 421, send_event = 0, display = 0x68d420,
event = 115343401, window = 1097, from_configure = 0}, xmap = {type = 6, serial = 421, send_event = 0, display = 0x68d420,
event = 115343401, window = 1097, override_redirect = 0}, xmaprequest = {type = 6, serial = 421, send_event = 0, display = 0x68d420,
parent = 115343401, window = 1097}, xreparent = {type = 6, serial = 421, send_event = 0, display = 0x68d420, event = 115343401,
window = 1097, parent = 0, x = 1908839, y = 0, override_redirect = 184}, xconfigure = {type = 6, serial = 421, send_event = 0,
display = 0x68d420, event = 115343401, window = 1097, x = 0, y = 0, width = 1908839, height = 0, border_width = 184,
above = 5235565135390, override_redirect = 256}, xgravity = {type = 6, serial = 421, send_event = 0, display = 0x68d420,
event = 115343401, window = 1097, x = 0, y = 0}, xresizerequest = {type = 6, serial = 421, send_event = 0, display = 0x68d420,
window = 115343401, width = 1097, height = 0}, xconfigurerequest = {type = 6, serial = 421, send_event = 0, display = 0x68d420,
parent = 115343401, window = 1097, x = 0, y = 0, width = 1908839, height = 0, border_width = 184, above = 5235565135390, detail = 256,
value_mask = 1}, xcirculate = {type = 6, serial = 421, send_event = 0, display = 0x68d420, event = 115343401, window = 1097, place = 0},
xcirculaterequest = {type = 6, serial = 421, send_event = 0, display = 0x68d420, parent = 115343401, window = 1097, place = 0}, xproperty = {
type = 6, serial = 421, send_event = 0, display = 0x68d420, window = 115343401, atom = 1097, time = 0, state = 1908839},
xselectionclear = {type = 6, serial = 421, send_event = 0, display = 0x68d420, window = 115343401, selection = 1097, time = 0},
xselectionrequest = {type = 6, serial = 421, send_event = 0, display = 0x68d420, owner = 115343401, requestor = 1097, selection = 0,
target = 1908839, property = 25769803960, time = 5235565135390}, xselection = {type = 6, serial = 421, send_event = 0, display = 0x68d420,
requestor = 115343401, selection = 1097, target = 0, property = 1908839, time = 25769803960}, xcolormap = {type = 6, serial = 421,
---Type <return> to continue, or q <return> to quit---
send_event = 0, display = 0x68d420, window = 115343401, colormap = 1097, new = 0, state = 0}, xclient = {type = 6, serial = 421,
send_event = 0, display = 0x68d420, window = 115343401, message_type = 1097, format = 0, data = {
b = "g \035\000\000\000\000\000¸\000\000\000\006\000\000\000\036\006\000", s = {8295, 29, 0, 0, 184, 0, 6, 0, 1566, 0}, l = {1908839,
25769803960, 5235565135390, 256, 1}}}, xmapping = {type = 6, serial = 421, send_event = 0, display = 0x68d420, window = 115343401,
request = 1097, first_keycode = 0, count = 0}, xerror = {type = 6, display = 0x1a5, resourceid = 0, serial = 6870048, error_code = 41 ')',
request_code = 0 '\0', minor_code = 224 'à'}, xkeymap = {type = 6, serial = 421, send_event = 0, display = 0x68d420, window = 115343401,
key_vector = "I\004", '\0' <repeats 14 times>, "g \035\000\000\000\000\000¸\000\000\000\006\000\000"}, pad = {47987669598214, 421, 0,
6870048, 115343401, 1097, 0, 1908839, 25769803960, 5235565135390, 256, 1, 0, 1168231104512, 223338824706, 704374636580, 704374636707, 163,
68719476736, 227633792002, 35923106463781, 35923106463744, 0, 1168231104512}}
input_mask = 1
#10 0x00000000004144c1 in in_put (xw=0x6b1f60) at ../charproc.c:3294
screen = (TScreen *) 0x6b20d8
i = 1
time_select = 0
size = 0
update = 0
tick = 37500
select_mask = {fds_bits = {64, 0 <repeats 15 times>}}
write_mask = {fds_bits = {0 <repeats 16 times>}}
select_timeout = {tv_sec = 0, tv_usec = 0}
#11 0x00000000004144fe in doinput () at ../charproc.c:3309
screen = (TScreen *) 0x6b20d8
#12 0x0000000000413aee in VTparse (xw=0x6b1f60) at ../charproc.c:2878
screen = (TScreen *) 0x6b20d8
#13 0x00000000004175cc in VTRun () at ../charproc.c:4801
screen = (TScreen *) 0x6b20d8
#14 0x000000000042eeae in main (argc=0, argv=0x7fff6a4908c0) at ../main.c:2413
form_top = (Widget) 0x6a4e00
menu_top = (Widget) 0x6a4e00
menu_high = 0
screen = (TScreen *) 0x6b20d8
mode = 34818
my_class = 0x463492 "XTerm"
winToEmbedInto = 0
reversed = 0
luit = {0x0, 0x0, 0x0, 0x0}
(gdb)
Thanks
Reply to: