GNU bug report logs - #65198
29.1; Emacs29.1 crash in function face_for_font

Previous Next

Package: emacs;

Reported by: 张云峰 <zhangyunfeng0101 <at> gmail.com>

Date: Thu, 10 Aug 2023 09:58:02 UTC

Severity: normal

Found in version 29.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: 张云峰 <zhangyunfeng0101 <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 65198 <at> debbugs.gnu.org
Subject: bug#65198: 29.1; Emacs29.1 crash in function face_for_font
Date: Fri, 11 Aug 2023 22:21:11 +0800
Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
0x0000555555616206 in produce_glyphless_glyph (it=0x7fffffff6cc0,
for_no_font=for_no_font <at> entry=false, acronym=acronym <at> entry=0x0) at
xdisp.c:31791
31791 font = face->font ? face->font : FRAME_FONT (it->f);
(gdb) p it->face_id
$1 = 0
(gdb) p it->c
$2 = 9888
(gdb) p FRAME_FONT(it->f)
No symbol "FRAME_FONT" in current context.
(gdb) p (it->f)->output_data.x->font
There is no member named font.
(gdb) p face
Cannot access memory at address 0x120
(gdb) p FACE_FROM_ID (it->f, it->face_id)->ascii_face
No symbol "FACE_FROM_ID" in current context.
(gdb) p it->what
$3 = IT_GLYPHLESS

Eli Zaretskii <eliz <at> gnu.org> 于2023年8月11日周五 14:12写道:
>
> > From: 张云峰 <zhangyunfeng0101 <at> gmail.com>
> > Date: Fri, 11 Aug 2023 08:50:04 +0800
> > Cc: 65198 <at> debbugs.gnu.org
> >
> > more clear GDB info:
> >
> > Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
> > 0x0000555555618c06 in produce_glyphless_glyph (it=0x7fffffff67d0,
> > for_no_font=for_no_font <at> entry=false, acronym=acronym <at> entry=0x0) at
> > xdisp.c:31791
> > 31791 font = face->font ? face->font : FRAME_FONT (it->f);
>
> Actually, this is progress: we are now crashing a bit later, while
> trying to display an empty box instead of a character that has no font
> and no suitable face.  To resolve this, please help me by providing
> the results of the following GDB commands after Emacs crashes and GDB
> kicks in:
>
>  (gdb) p it->face_id
>  (gdb) p it->c
>  (gdb) p FRAME_FONT(it->f)
>  (gdb) p (it->f)->output_data.x->font
>
> Thanks.




This bug report was last modified 1 year and 342 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.