Subject: Re: bug#11850: crash (null font) running emacs built from git

From: Yotam Medini יותם מדיני<[email-masked]>
Date: Wed, 4 Jul 2012 17:31:38 +0300

With the patch it still crashes immediately (on my office LinuxMint).
But in a 'later' place. See following gdb-log:

Program received signal SIGSEGV, Segmentation fault.
0x080feb2f in x_draw_glyphless_glyph_string_foreground (s=0xbfffd230)
    at xterm.c:1420
(gdb) where
#0  0x080feb2f in x_draw_glyphless_glyph_string_foreground (s=0xbfffd230)
    at xterm.c:1420
#1  0x08102077 in x_draw_glyph_string (s=0xbfffd230) at xterm.c:2817
#2  0x0809a80a in draw_glyphs (w=0x86bf5c0, x=599, row=0x88cfe68,
    area=TEXT_AREA, start=0, end=53, hl=DRAW_NORMAL_TEXT, overlaps=0)
    at xdisp.c:23404
#3  0x0809fa99 in x_write_glyphs (start=0x88d5638, len=53) at xdisp.c:25046
#4  0x080559a4 in update_text_area (vpos=12, w=0x86bf5c0) at dispnew.c:3773
#5  update_window_line (w=0x86bf5c0, vpos=12,
    mouse_face_overwritten_p=0xbfffd75c) at dispnew.c:4014
#6  0x08056574 in update_window (w=0x86bf5c0, force_p=1) at dispnew.c:3633
#7  0x08058499 in update_window_tree (w=0x86bf5c0, force_p=1)
    at dispnew.c:3340
#8  0x0805b3a6 in update_frame (f=0x871e9d0, force_p=1,
inhibit_hairy_id_p=0)
    at dispnew.c:3269
#9  0x080811ac in redisplay_internal () at xdisp.c:13403
#10 0x0807f331 in redisplay () at xdisp.c:12575
#11 0x0813b9e9 in read_char (commandflag=1, nmaps=3, maps=0xbfffecb0,
    prev_event=138768554, used_mouse_menu=0xbfffeda8, end_time=0x0)
    at keyboard.c:2452
#12 0x0813dc44 in read_key_sequence (keybuf=0xbfffee18, prompt=138768554,
    dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1,
    bufsize=30) at keyboard.c:9338
#13 0x0813f43f in command_loop_1 () at keyboard.c:1450
#14 0x081a08fd in internal_condition_case (bfun=0x813f2b0 <command_loop_1>,
    handlers=138802082, hfun=0x81356e0 <cmd_error>) at eval.c:1333
#15 0x08134185 in command_loop_2 (ignore=138768554) at keyboard.c:1155
#16 0x081a0819 in internal_catch (tag=138800058,
    func=0x8134160 <command_loop_2>, arg=138768554) at eval.c:1090
#17 0x0813522a in command_loop () at keyboard.c:1134
#18 recursive_edit_1 () at keyboard.c:754
#19 0x0813551f in Frecursive_edit () at keyboard.c:818
#20 0x08051d9b in main (argc=2, argv=0x822099d) at emacs.c:1693
(gdb) p s->font
$31 = (struct font *) 0x0
(gdb) p s->font
$31 = (struct font *) 0x0
(gdb) shell gcc --version
gcc (Debian 4.6.3-1) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

(gdb)

On Tue, Jul 3, 2012 at 7:49 PM, Eli Zaretskii <[email-masked]> wrote:

> merge 11813 11850
> thanks
>
> This looks the same crash as in 11813, so I'm merging them.
>