From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#37671: 27.0.50; Segmentation fault with --fg-daemon on Linux Date: Sat, 01 Feb 2020 14:04:48 +0200 Message-ID: <83wo96ikdb.fsf@gnu.org> References: <87mueavg1g.fsf@ft.bewatermyfriend.org> <83h84gsvz6.fsf@gnu.org> <874l0ga21l.fsf@ft.bewatermyfriend.org> <87tv568wd9.fsf@ft.bewatermyfriend.org> <83k161c3qd.fsf@gnu.org> <875zhl52cy.fsf@ft.bewatermyfriend.org> <87ftfvf2ny.fsf@ft.bewatermyfriend.org> <834kwak83u.fsf@gnu.org> <8736buy2bb.fsf@ft.bewatermyfriend.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="91759"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 37671@debbugs.gnu.org To: Frank Terbeck Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 01 13:06:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ixrXP-000Nli-VQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Feb 2020 13:06:11 +0100 Original-Received: from localhost ([::1]:45440 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixrXO-0004bg-VR for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Feb 2020 07:06:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43630) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixrXH-0004bP-22 for bug-gnu-emacs@gnu.org; Sat, 01 Feb 2020 07:06:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixrXF-0006pP-VW for bug-gnu-emacs@gnu.org; Sat, 01 Feb 2020 07:06:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60641) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ixrXF-0006oB-RS for bug-gnu-emacs@gnu.org; Sat, 01 Feb 2020 07:06:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ixrXF-0001vH-Ln for bug-gnu-emacs@gnu.org; Sat, 01 Feb 2020 07:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Feb 2020 12:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37671 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 37671-submit@debbugs.gnu.org id=B37671.15805587157337 (code B ref 37671); Sat, 01 Feb 2020 12:06:01 +0000 Original-Received: (at 37671) by debbugs.gnu.org; 1 Feb 2020 12:05:15 +0000 Original-Received: from localhost ([127.0.0.1]:38381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixrWU-0001uH-L9 for submit@debbugs.gnu.org; Sat, 01 Feb 2020 07:05:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixrWS-0001u1-KL for 37671@debbugs.gnu.org; Sat, 01 Feb 2020 07:05:13 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ixrWN-0002yS-0V; Sat, 01 Feb 2020 07:05:07 -0500 Original-Received: from [176.228.60.248] (port=2018 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ixrWM-0001CR-21; Sat, 01 Feb 2020 07:05:06 -0500 In-reply-to: <8736buy2bb.fsf@ft.bewatermyfriend.org> (message from Frank Terbeck on Sat, 01 Feb 2020 12:28:08 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:175556 Archived-At: > From: Frank Terbeck > 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