From: Eli Zaretskii <eliz@gnu.org>
To: Frank Terbeck <ft@bewatermyfriend.org>
Cc: 37671@debbugs.gnu.org
Subject: bug#37671: 27.0.50; Segmentation fault with --fg-daemon on Linux
Date: Sat, 01 Feb 2020 14:04:48 +0200 [thread overview]
Message-ID: <83wo96ikdb.fsf@gnu.org> (raw)
In-Reply-To: <8736buy2bb.fsf@ft.bewatermyfriend.org> (message from Frank Terbeck on Sat, 01 Feb 2020 12:28:08 +0100)
> From: Frank Terbeck <ft@bewatermyfriend.org>
> Cc: 37671@debbugs.gnu.org
> Date: Sat, 01 Feb 2020 12:28:08 +0100
>
> > What exactly did you do immediately prior to the crash?
>
> I was reading mail using Gnus. When I do, with an article visible, gnus
> is configured to show three windows (Group left of Summary and Article,
> with Article below Summary). Then I switched the visible workspace in my
> X11 window manager to somewhere emacs wasn't visible, switched back to
> the workspace with emacs and that's when I had then unresponsive emacs
> window sitting there, with gdb letting me know about the segfault.
>
> I can't tell for sure, if the crash occurred before switching workspaces
> or if that's what triggered it — but I *think* switching workspaces was
> involved in past crashes as well. But maybe that's another coincidence.
It sounds like switching workspaces is relevant to the issue at hand.
Can you try moving the mouse pointer off the Emacs frame before
switching to the workspace where Emacs isn't visible, and moving the
mouse pointer to a place where it won't be on any Emacs frame before
switching back? If you do that, do the crashes still happen?
Also, which window manager is the one you use?
> Anyway. I'm running my emacs inside gdb again, in case it happens again.
> Let me know if I can be of further assistance.
Thanks. Next thing I'd like you to try is this simple band-aid:
diff --git a/src/xdisp.c b/src/xdisp.c
index 3a8b5e3..65d3ce8 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -31454,6 +31454,9 @@ show_mouse_face (Mouse_HLInfo *hlinfo, enum draw_glyphs_face draw)
struct window *w = XWINDOW (hlinfo->mouse_face_window);
struct frame *f = XFRAME (WINDOW_FRAME (w));
+ if (f != hlinfo->mouse_face_mouse_frame)
+ return;
+
if (/* If window is in the process of being destroyed, don't bother
to do anything. */
w->current_matrix != NULL
next prev parent reply other threads:[~2020-02-01 12:04 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-09 1:55 bug#37671: 27.0.50; Segmentation fault with --fg-daemon on Linux Frank Terbeck
2019-10-10 11:03 ` Eli Zaretskii
2019-10-10 18:27 ` Frank Terbeck
2020-01-08 3:23 ` Frank Terbeck
2020-01-08 16:28 ` Eli Zaretskii
2020-01-08 16:39 ` Frank Terbeck
2020-02-01 2:28 ` Frank Terbeck
2020-02-01 8:33 ` Eli Zaretskii
2020-02-01 2:43 ` Frank Terbeck
2020-02-01 8:46 ` Eli Zaretskii
2020-02-01 11:28 ` Frank Terbeck
2020-02-01 12:04 ` Eli Zaretskii [this message]
2020-02-01 12:49 ` Frank Terbeck
2020-02-01 13:08 ` Eli Zaretskii
2020-02-01 14:32 ` Frank Terbeck
2020-02-15 8:28 ` Eli Zaretskii
2020-02-15 11:32 ` Frank Terbeck
2020-03-05 7:19 ` Eli Zaretskii
2020-03-06 0:09 ` Frank Terbeck
2020-03-06 7:51 ` Eli Zaretskii
2019-10-10 20:56 ` Paul Eggert
2019-10-11 7:02 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83wo96ikdb.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=37671@debbugs.gnu.org \
--cc=ft@bewatermyfriend.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).