[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
xassert in get_glyph_face_and_encoding
From: |
Juri Linkov |
Subject: |
xassert in get_glyph_face_and_encoding |
Date: |
Mon, 07 Mar 2005 21:50:21 +0200 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/22.0.50 (gnu/linux) |
The following xassert caused abort() in get_glyph_face_and_encoding:
xassert (face != NULL);
where face was NULL due to
face = FACE_FROM_ID (f, glyph->face_id);
which returns NULL because glyph->face_id is greater
than f->face_cache->used.
In GNU Emacs 22.0.50 (i686-pc-linux-gnu) of 2005-03-01
Breakpoint 1, abort () at emacs.c:456
456 {
(gdb) bt
#0 abort () at emacs.c:456
#1 0x0807a71e in get_glyph_face_and_encoding (f=0x84f7690, glyph=0xb5e6c08,
char2b=0xbfffdfdc, two_byte_p=0xbfffdfa8) at xdisp.c:17706
#2 0x0807a90d in fill_glyph_string (s=0xbfffdffc, face_id=23, start=0, end=11,
overlaps_p=0) at xdisp.c:17824
#3 0x0807c83e in draw_glyphs (w=0x85818f8, x=9, row=0xb5cf408, area=TEXT_AREA,
start=0, end=11, hl=DRAW_NORMAL_TEXT, overlaps_p=0) at xdisp.c:18476
#4 0x0807f6c3 in x_write_glyphs (start=0x17, len=11) at xdisp.c:19856
#5 0x08053b03 in update_text_area (w=0x85818f8, vpos=0) at dispnew.c:4288
#6 0x0805406f in update_window_line (w=0x85818f8, vpos=0,
mouse_face_overwritten_p=0x49) at dispnew.c:4512
#7 0x0805376f in update_window (w=0x85818f8, force_p=1) at dispnew.c:4154
#8 0x080532b9 in update_window_tree (w=0x85818f8, force_p=0) at dispnew.c:3897
#9 0x08053191 in update_frame (f=0x84f7690, force_p=0, inhibit_hairy_id_p=73)
at dispnew.c:3829
#10 0x0806dbb5 in redisplay_internal (preserve_echo_area=1) at xdisp.c:10465
#11 0x0806e499 in redisplay_preserve_echo_area (from_where=2) at xdisp.c:10661
#12 0x0805712a in sit_for (sec=0, usec=0, reading=0, display=1,
initial_display=1) at dispnew.c:6358
#13 0x080571d3 in Fsit_for (seconds=73, milliseconds=73, nodisp=137350425) at
dispnew.c:6421
#14 0x08146ffc in Feval (form=135940408) at eval.c:2138
#15 0x081447c4 in Fand (args=23) at eval.c:329
#16 0x081471e8 in Feval (form=137070868) at eval.c:2079
#17 0x081447fc in Fif (args=177990149) at eval.c:352
#18 0x081471e8 in Feval (form=137070892) at eval.c:2079
#19 0x08146ea3 in Feval (form=137370941) at eval.c:2188
#20 0x081448f1 in Fprogn (args=23) at eval.c:408
#21 0x08147f96 in funcall_lambda (fun=186564968, nargs=2,
arg_vector=0xbfffee34) at eval.c:2967
#22 0x08147a4d in Ffuncall (nargs=3, args=0xbfffee30) at eval.c:2843
#23 0x08170aee in Fbyte_code (bytestr=139447705, vector=2,
maxdepth=-1073746384) at bytecode.c:686
#24 0x08147f63 in funcall_lambda (fun=136770276, nargs=0,
arg_vector=0xbfffef74) at eval.c:2974
#25 0x08147a4d in Ffuncall (nargs=1, args=0xbfffef70) at eval.c:2843
#26 0x08170aee in Fbyte_code (bytestr=0, vector=0, maxdepth=-1073746064) at
bytecode.c:686
#27 0x08147f63 in funcall_lambda (fun=136769332, nargs=4,
arg_vector=0xbffff0a4) at eval.c:2974
#28 0x08147a4d in Ffuncall (nargs=5, args=0xbffff0a0) at eval.c:2843
#29 0x08170aee in Fbyte_code (bytestr=139465753, vector=4,
maxdepth=-1073745760) at bytecode.c:686
#30 0x08147f63 in funcall_lambda (fun=136768468, nargs=2,
arg_vector=0xbffff224) at eval.c:2974
#31 0x08147a4d in Ffuncall (nargs=3, args=0xbffff220) at eval.c:2843
#32 0x0814349c in Fcall_interactively (function=138046937,
record_flag=137350425, keys=137407300) at callint.c:880
#33 0x080efdcc in Fcommand_execute (cmd=138046937, record_flag=137350425,
keys=73, special=137350425) at keyboard.c:9697
#34 0x080e4ef6 in command_loop_1 () at keyboard.c:1792
#35 0x08145e2e in internal_condition_case (bfun=0x80e4bb0 <command_loop_1>,
handlers=137411417, hfun=0x80e46a0 <cmd_error>) at eval.c:1385
#36 0x080e49fe in command_loop_2 () at keyboard.c:1319
#37 0x0814596b in internal_catch (tag=73, func=0x80e49d0 <command_loop_2>,
arg=137350425) at eval.c:1144
#38 0x080e49a3 in command_loop () at keyboard.c:1298
#39 0x080e4404 in recursive_edit_1 () at keyboard.c:991
#40 0x080e4541 in Frecursive_edit () at keyboard.c:1052
#41 0x080e2aad in main (argc=1, argv=0xbffffaa4) at emacs.c:1766
(gdb) xbt
"sit-for"
"and"
"if"
"when"
"isearch-lazy-highlight-new-loop"
"isearch-update"
"isearch-mode"
"isearch-forward"
"call-interactively"
(gdb) fr 1
#1 0x0807a71e in get_glyph_face_and_encoding (f=0x84f7690, glyph=0xb5e6c08,
char2b=0xbfffdfdc, two_byte_p=0xbfffdfa8) at xdisp.c:17706
(gdb) p face
$1 = (struct face *) 0x0
(gdb) p glyph->face_id
$2 = 23
(gdb) p f->face_cache->used
$3 = 20
--
Juri Linkov
http://www.jurta.org/emacs/
- xassert in get_glyph_face_and_encoding,
Juri Linkov <=