[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: xterm-unicode-0.6.diff crashes
Christian Weisgerber wrote on 2000-02-11 16:09 UTC:
> xterm #125 and #126 with Robert Brady's xterm-unicode-0.6 patch,
> FreeBSD 4.0-CURRENT i386.
>
> Select a piece of text on the bottommost line of the xterm window.
> As you release the left mouse button, xterm segfaults.
>
> xterm #126 without Robert's patch doesn't show this behavior.
I can confirm the exact same problem for Linux. Here the usual debugging
information, which I hope covers all the relevant state:
% ./xterm
Segmentation fault (core dumped)
% gdb xterm core
GNU gdb 4.18
This GDB was configured as "i686-pc-linux-gnu"...
Core was generated by `./xterm'.
Program terminated with signal 11, Segmentation fault.
#0 0x8077eef in getXtermCellComb1 (screen=0x80dfe4c, row=23, col=23)
at ./util.c:1867
1867 unsigned ch = SCRN_BUF_COM1L(screen, row)[col];
(gdb) l
1862 return ch;
1863 }
1864
1865 unsigned getXtermCellComb1 (TScreen *screen, int row, int col)
1866 {
1867 unsigned ch = SCRN_BUF_COM1L(screen, row)[col];
1868 ch |= (SCRN_BUF_COM1H(screen, row)[col] << 8);
1869 return ch;
1870
1871 }
(gdb) p col
$1 = 23
(gdb) p row
$2 = 23
(gdb) p screen
$3 = (TScreen *) 0x80dfe4c
(gdb) p *screen
$4 = {display = 0x80d36f0, respond = 5, pid = 1712, uid = 1597, gid = 20,
cursorGC = 0x0, fillCursorGC = 0x0, reversecursorGC = 0x0,
cursoroutlineGC = 0x0, foreground = 0, cursorcolor = 0, mousecolor = 0,
mousecolorback = 16777215, Acolors = {0, 13434880, 52480, 13487360, 205,
13435085, 52685, 15066597, 5066061, 16711680, 65280, 16776960, 255,
16711935, 65535, 16777215, 16777215, 16776960, 0}, boldColors = 1 '\001',
colorMode = 1 '\001', colorULMode = 0 '\000', colorBDMode = 0 '\000',
colorBLMode = 0 '\000', colorAttrMode = 0 '\000', highlightcolor = 0,
font_doublesize = 1 '\001', cache_doublesize = 8, cur_chrset = 0 '\000',
fonts_used = 0, double_fonts = {{chrset = 0, flags = 0, fs = 0x0, gc = 0x0,
fn = 0x0}, {chrset = 0, flags = 0, fs = 0x0, gc = 0x0, fn = 0x0}, {
chrset = 0, flags = 0, fs = 0x0, gc = 0x0, fn = 0x0}, {chrset = 0,
flags = 0, fs = 0x0, gc = 0x0, fn = 0x0}, {chrset = 0, flags = 0,
fs = 0x0, gc = 0x0, fn = 0x0}, {chrset = 0, flags = 0, fs = 0x0,
gc = 0x0, fn = 0x0}, {chrset = 0, flags = 0, fs = 0x0, gc = 0x0,
fn = 0x0}, {chrset = 0, flags = 0, fs = 0x0, gc = 0x0, fn = 0x0}},
wide_chars = 0 '\000', utf8_mode = 0, utf_count = 0, utf_char = 0,
border = 2, arrow = 41943053, event_mask = 4359437, send_mouse_pos = 0,
mouse_button = -1, mouse_row = -1, mouse_col = -1, select = 2,
visualbell = 1 '\001', allowSendEvents = 0 '\000', awaitInput = 0 '\000',
grabbedKbd = 0 '\000', inhibit = 0, Vshow = 1 '\001', fullVwin = {
window = 41943061, width = 560, height = 312, fullwidth = 579,
fullheight = 316, f_width = 7, f_height = 13, scrollbar = 15,
normalGC = 0x80e2d48, reverseGC = 0x80e2e78, normalboldGC = 0x80e2de0,
reverseboldGC = 0x80e3208}, iconVwin = {window = 0, width = 0, height = 0,
fullwidth = 0, fullheight = 0, f_width = 0, f_height = 0, scrollbar = 0,
normalGC = 0x0, reverseGC = 0x0, normalboldGC = 0x0, reverseboldGC = 0x0},
whichVwin = 0x80dffc4, pointer_cursor = 41943042,
answer_back = 0x807c0c7 "", printer_command = 0x807c03d "lpr",
printer_autoclose = 0 '\000', printer_extent = 0 '\000',
printer_formfeed = 0 '\000', printer_controlmode = 0, print_attributes = 1,
fnt_prop = 0 '\000', fnt_boxes = 0 '\000', fnt_wide = 7, fnt_high = 13,
fnt_norm = 0x80e2a38, fnt_bold = 0x80e2b50, fnt_dwd = 0x0,
fnt_icon = 0x80e0f90, enbolden = 0, box = 0x80ca4a8, cursor_state = 0,
cursor_blink = 0 '\000', cursor_on = 600, cursor_off = 300,
cursor_timer = 0, cursor_set = 1, cursor_col = 30, cursor_row = 23,
cur_col = 30, cur_row = 23, max_col = 79, max_row = 23, top_marg = 0,
bot_marg = 23, scrollWidget = 0x80e3030, topline = 0, savedlines = 99,
savelines = 1000, scrolllines = 1, scrollttyoutput = 1 '\001',
scrollkey = 0 '\000', visbuf = 0x80f51d0, allbuf = 0x80f03b0,
sbuf_address = 0x4040f008 "-r--r--r-- 1 mgk25 sec-ross 1379 May 6 1991 Tests", altbuf = 0x0, abuf_address = 0x0, save_ptr = 0x80f0378,
save_len = 20, alternate = 0 '\000', do_wrap = 0, incopy = 0,
copy_src_x = 17, copy_src_y = 15, copy_width = 560, copy_height = 299,
copy_dest_x = 17, copy_dest_y = 2, c132 = 0 '\000', curses = 0 '\000',
hp_ll_bc = 0 '\000', marginbell = 0 '\000', nmarginbell = 10, bellarmed = 0,
multiscroll = 0 '\000', scrolls = 0, sc = {{saved = 1 '\001', row = 0,
col = 0, flags = 1024, curgl = 0 '\000', curgr = 2 '\002',
gsets = "B0BB", cur_foreground = 0, cur_background = 0,
sgr_foreground = -1, sgr_extended = 0 '\000'}, {saved = 0 '\000',
row = 0, col = 0, flags = 0, curgl = 0 '\000', curgr = 0 '\000',
gsets = "\000\000\000", cur_foreground = 0, cur_background = 0,
sgr_foreground = 0, sgr_extended = 0 '\000'}}, save_modes = {
0 <repeats 24 times>}, keyboard_dialect = 0x807c2b4 "B", gsets = "B0BB",
curgl = 0 '\000', curgr = 2 '\002', curss = 0 '\000',
term_id = 0x807bb86 "100", terminal_id = 100, ansi_level = 1,
scroll_amt = 0, refresh_amt = 0, protected_mode = 0, old_fkeys = 0 '\000',
jumpscroll = 1 '\001', always_highlight = 0 '\000', underline = 1 '\001',
bold_mode = 1 '\001', restore_data = 0 '\000', restore_x = 0, restore_y = 0,
restore_width = 0, restore_height = 0, TnormalGC = 0x0, TcursorGC = 0x0,
Tforeground = 0, Tbackground = 0, Tcursorcolor = 0, Tcolor = 0,
Tshow = 0 '\000', waitrefresh = 0 '\000', fullTwin = {window = 0, width = 0,
height = 0, fullwidth = 0, fullheight = 0, tekscale = 0}, iconTwin = {
window = 0, width = 0, height = 0, fullwidth = 0, fullheight = 0,
tekscale = 0}, whichTwin = 0x80e0208, xorplane = 0, linepat = {0x0, 0x0,
0x0, 0x0}, TekEmu = 0 '\000', cur_X = 0, cur_Y = 0, cur = {x = 0, y = 0,
fontsize = 0, linetype = 0}, page = {x = 0, y = 0, fontsize = 0,
linetype = 0}, margin = 0, pen = 0, TekGIN = 0x0, gin_terminator = 0,
multiClickTime = 250, bellSuppressTime = 200, bellInProgress = 0 '\000',
charClass = 0x0, cutNewline = 1 '\001', cutToBeginningOfLine = 1 '\001',
highlight_selection = 0 '\000', trim_selection = 0 '\000',
selection_data = 0x80f5b88 "\200", selection_size = 2, selection_length = 0,
selection_time = 1103654427, startHRow = 23, startHCol = 23, endHRow = 23,
endHCol = 24, startHCoord = 1863, endHCoord = 1864, selection_atoms = 0x0,
sel_atoms_size = 0, selection_count = 0, input_eight_bits = 1 '\001',
output_eight_bits = 1 '\001', control_eight_bits = 0 '\000',
backarrow_key = 1 '\001', meta_sends_esc = 0 '\000', menu_item_bitmap = 0,
menu_font_names = {
0x80dcaac "-b&h-lucidatypewriter-medium-r-normal-sans-12-120-75-75-m-70-iso10646-1", 0x80e2494 "nil2", 0x80e250c "5x7", 0x80dcb04 "fixed",
0x80dcb1c "-b&h-lucidatypewriter-medium-r-normal-sans-14-*-*-*-m-*-iso8859-1", 0x80e2604 "9x15", 0x80e265c "10x20", 0x0, 0x0}, menu_font_sizes = {0, 0, 0,
0, 0, 0, 0, 0, 0}, menu_font_number = 0, xic = 0x80ee698}
(gdb) bt
#0 0x8077eef in getXtermCellComb1 (screen=0x80dfe4c, row=23, col=23)
at ./util.c:1867
#1 0x804fe5c in SaveText (screen=0x80dfe4c, row=23, scol=23, ecol=24,
lp=0x80f5b88 "\200", eol=0xbffff6a0) at ./button.c:2332
#2 0x804f0b7 in SaltTextAway (crow=23, ccol=23, row=23, col=23,
params=0x80ddb28, num_params=2) at ./button.c:1970
#3 0x804daba in SelectSet (w=0x80dfdd0, event=0xbffff948, params=0x80ddb28,
num_params=2) at ./button.c:1326
#4 0x804da3a in EndExtend (w=0x80dfdd0, event=0xbffff948, params=0x80ddb28,
num_params=2, use_cursor_loc=0) at ./button.c:1301
#5 0x804caa4 in do_select_end (w=0x80dfdd0, event=0xbffff948,
params=0x80ddb28, num_params=0x80ddaf8, use_cursor_loc=0) at ./button.c:741
#6 0x804cad4 in HandleSelectEnd (w=0x80dfdd0, event=0xbffff948,
params=0x80ddb28, num_params=0x80ddaf8) at ./button.c:753
#7 0x400ad504 in HandleActions () from /usr/X11R6/lib/libXt.so.6
#8 0x400ad9e6 in HandleSimpleState () from /usr/X11R6/lib/libXt.so.6
#9 0x400adf21 in _XtTranslateEvent () from /usr/X11R6/lib/libXt.so.6
#10 0x400892f7 in XtDispatchEventToWidget () from /usr/X11R6/lib/libXt.so.6
#11 0x40089ead in _XtDefaultDispatcher () from /usr/X11R6/lib/libXt.so.6
#12 0x4008a173 in XtDispatchEvent () from /usr/X11R6/lib/libXt.so.6
#13 0x806b71c in xevents () at ./misc.c:193
#14 0x8059b76 in in_put () at ./charproc.c:2856
#15 0x805137c in VTparse () at ./charproc.c:1040
#16 0x805c717 in VTRun () at ./charproc.c:4084
#17 0x80673a5 in main (argc=0, argv=0xbffffbc8) at ./main.c:1938
(gdb)
Markus
--
Markus G. Kuhn, Computer Laboratory, University of Cambridge, UK
Email: mkuhn at acm.org, WWW: <http://www.cl.cam.ac.uk/~mgk25/>
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/lists/