GNU bug report logs - #72692
Emacs 31.05 (40eecd594ac) get SIGSEGV on Linux (Linux 6.6.45 Kde Wayland)

Previous Next

Package: emacs;

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: pipcet <at> protonmail.com, execvy <at> gmail.com, 72692 <at> debbugs.gnu.org
Subject: bug#72692: Emacs 31.05 (40eecd594ac) get SIGSEGV on Linux (Linux 6.6.45 Kde Wayland)
Date: Wed, 28 Aug 2024 14:50:24 +0300
> From: Juri Linkov <juri <at> linkov.net>
> Cc: Eli Zaretskii <eliz <at> gnu.org>,  execvy <at> gmail.com,  72692 <at> debbugs.gnu.org
> Date: Tue, 27 Aug 2024 19:31:37 +0300
> 
> >> Reverting this line fixes the problem:
> >>
> >> -      f->face_change = true;
> >
> > Which OS is this on?  I'm having weird trouble when running the Windows
> > binary in wine, which I attribute to this change: when menu-bar-mode is
> > on, the Emacs frame raises itself whenever it loses focus.
> 
> This was on GNU/Linux (x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0),
> Windowing system distributor 'The X.Org Foundation', version 11.0.12013000
> 
> > I see Eli reverted the change, which makes sense for now.  We'll have to
> > find another way to fix this, I think.
> 
> I'm ready to test any changes when you'll find another way to fix this.

Thanks, please test the patch below.  If it doesn't adversely affect
performance, I will install it.

diff --git a/src/xfaces.c b/src/xfaces.c
index 684b6cc..94fc59d 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -733,9 +733,13 @@ recompute_basic_faces (struct frame *f)
 {
   if (FRAME_FACE_CACHE (f))
     {
+      bool non_basic_faces_cached =
+	FRAME_FACE_CACHE (f)->used > BASIC_FACE_ID_SENTINEL;
       clear_face_cache (false);
       if (!realize_basic_faces (f))
 	emacs_abort ();
+      if (non_basic_faces_cached)
+	f->face_change = true;
     }
 }
 




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.