GNU bug report logs -
#72692
Emacs 31.05 (40eecd594ac) get SIGSEGV on Linux (Linux 6.6.45 Kde Wayland)
Previous Next
Reported by: Eval EXEC <execvy <at> gmail.com>
Date: Sun, 18 Aug 2024 08:31:01 UTC
Severity: normal
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Date: Mon, 19 Aug 2024 06:07:35 +0000
> From: Pip Cet <pipcet <at> protonmail.com>
> Cc: execvy <at> gmail.com, 72692 <at> debbugs.gnu.org
>
> "Eli Zaretskii" <eliz <at> gnu.org> writes:
>
> > Where do you see this copying in realize_non_ascii_face?
>
> static struct face *
> realize_non_ascii_face (struct frame *f, Lisp_Object font_object,
> struct face *base_face)
> {
> struct face_cache *cache = FRAME_FACE_CACHE (f);
> struct face *face;
>
> face = xmalloc (sizeof *face);
> *face = *base_face;
> ^____ here
>
> (The entire structure is copied, and fontset isn't explicitly changed
> afterwards).
I need new glasses.
In any case, if you are right, and we free an ASCII face but leave its
non-ASCII variants unchanged, we have a much deeper problem: a
non-ASCII face is meaningless if its ASCII face was freed and
re-realized, because the non-ASCII face needs to be re-realized as
well. So if this happens, we need to understand how and plug that
much worse problem.
In the cases I was able to reproduce on my system, the call to
realize_basic_faces was followed by setting the frame's 'face_change'
flag, which causes the next redisplay free all the frame's faces and
re-realize all of them. (But the alpha-background parameter is not
supported here, so I needed to change other attributes.) As long as
this happens before we try to display anything, the fact that we
uncached the fontset will not cause any harm. IOW, the fact that the
fontset was freed and uncached in itself is not a catastrophe, as long
as the freed fontset is not accessed before it is regenerated.
So can you show a backtrace from the call to free_realized_faces
(supposedly called by realize_basic_faces?) which causes these
printfs:
> fontset 103 used for face 0x117cca0
> fontset 103 used for face 0x2a7a3c0
> fontset 103 used for face 0x117cca0
> fontset 103 used for face 0x2a62860
Also, could you add to the print-outs the pointer to the face's
ascii_face, so that we see whether there's only one ASCII face
involved here or more than one?
This bug report was last modified 257 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.