From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Frank Terbeck Newsgroups: gmane.emacs.bugs Subject: bug#37671: 27.0.50; Segmentation fault with --fg-daemon on Linux Date: Sat, 01 Feb 2020 12:28:08 +0100 Message-ID: <8736buy2bb.fsf@ft.bewatermyfriend.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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="12814"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 37671@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 01 12:29: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 1ixqxc-0003Ei-HB for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Feb 2020 12:29:12 +0100 Original-Received: from localhost ([::1]:45192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixqxb-00074n-Jb for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Feb 2020 06:29:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33962) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixqxT-00074g-Pw for bug-gnu-emacs@gnu.org; Sat, 01 Feb 2020 06:29:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixqxS-0007jW-K3 for bug-gnu-emacs@gnu.org; Sat, 01 Feb 2020 06:29:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60627) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ixqxS-0007jP-Gv for bug-gnu-emacs@gnu.org; Sat, 01 Feb 2020 06:29:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ixqxS-00010J-Bz for bug-gnu-emacs@gnu.org; Sat, 01 Feb 2020 06:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Frank Terbeck Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Feb 2020 11:29:02 +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.15805565003807 (code B ref 37671); Sat, 01 Feb 2020 11:29:02 +0000 Original-Received: (at 37671) by debbugs.gnu.org; 1 Feb 2020 11:28:20 +0000 Original-Received: from localhost ([127.0.0.1]:38367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixqwm-0000zL-9v for submit@debbugs.gnu.org; Sat, 01 Feb 2020 06:28:20 -0500 Original-Received: from smtprelay08.ispgateway.de ([134.119.228.108]:47244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ixqwj-0000zC-Of for 37671@debbugs.gnu.org; Sat, 01 Feb 2020 06:28:18 -0500 Original-Received: from [79.194.172.243] (helo=jim.voodoo.lan) by smtprelay08.ispgateway.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1ixqwh-00085X-RB; Sat, 01 Feb 2020 12:28:15 +0100 Original-Received: by jim.voodoo.lan (Postfix, from userid 1000) id 5A373127781; Sat, 1 Feb 2020 12:28:08 +0100 (CET) In-Reply-To: <834kwak83u.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 01 Feb 2020 10:46:45 +0200") X-Df-Sender: NDMwNDQ0 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:175554 Archived-At: Hello Eli! Eli Zaretskii wrote: [...] >> (gdb) p w->current_matrix >> $12 =3D (struct glyph_matrix *) 0x7a >>=20 >> (gdb) p draw >> $13 =3D DRAW_NORMAL_TEXT >>=20 >> (gdb) p hlinfo->mouse_face_hidden >> $14 =3D false >>=20 >> (gdb) p hlinfo->mouse_face_end_row >> $15 =3D 16 >>=20 >> (gdb) p w->current_matrix->nrows >> Cannot access memory at address 0x92 >>=20 >> (gdb) p w->current_matrix >> $17 =3D (struct glyph_matrix *) 0x7a > > This window is dead, AFAICT, and its memory has been recycled. So > somehow we attempt to show mouse highlight on a deleted window or > something. I have no idea how this could have happened. > > Moreover, the frame itself seems to have bogus values: > >> (gdb) p *f >> $10 =3D {header =3D {size =3D 285941742698496}, >> name =3D 0x55573dc812400000, >> icon_name =3D 0xfffffffffe000055, >> title =3D 0xfffffffffeffffff, >> parent_frame =3D 0xfffffffffeffffff, >> focus_frame =3D 0xfffffffffeffffff, >> root_window =3D 0xfffffffffeffffff, >> selected_window =3D 0xfffffffffeffffff, >> old_selected_window =3D 0xfffffffffeffffff, >> minibuffer_window =3D 0xfffffffffeffffff, >> param_alist =3D 0xfffffffffeffffff, >> scroll_bars =3D 0xfffffffffeffffff, >> condemned_scroll_bars =3D 0xfffffffffeffffff, >> menu_bar_items =3D 0xfffffffffeffffff, >> face_alist =3D 0xfffffffffeffffff, >> menu_bar_vector =3D 0xfffffffffeffffff, >> buffer_predicate =3D 0xfffffffffeffffff, >> buffer_list =3D 0xfffffffffeffffff, >> buried_buffer_list =3D 0xfffffffffeffffff, >> tab_bar_window =3D 0xfffffffffeffffff, >> desired_tab_bar_string =3D 0xfffffffffeffffff, >> current_tab_bar_string =3D 0xfffffffffeffffff, >> tool_bar_window =3D 0xfffffffffeffffff, >> desired_tool_bar_string =3D 0xfffffffffeffffff, >> current_tool_bar_string =3D 0xfffffffffeffffff, >> font_data =3D 0xfffffffffeffffff, >> tab_bar_items =3D 0xfffffffffeffffff, >> tool_bar_items =3D 0xfffffffffeffffff, >> face_cache =3D 0xfffffffffeffffff, >> last_tab_bar_item =3D -16777217, >> last_tool_bar_item =3D -1, >> menu_bar_items_used =3D -16777217, >> namebuf =3D 0xfffffffffeffffff , >> shell_position =3D 0xfffffffffeffffff , > > 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 =E2=80=94 but I *think* switching workspace= s was involved in past crashes as well. But maybe that's another coincidence. I did not close an emacs frame, though. I am not sure what I did in Gnus last. Could be, that I was in this article-viewing layout I described above and selected another article from the summary buffer. That causes Gnus to reuse the current article window to display the newly selected one. I don't know if internally that involves closing windows etc. Sadly, my brand-new Thinkpad thought a hard lock-up over night would be great fun. Of course this happens when I just triggered something hard to trigger. Sigh. The gdb session is gone with it. :-( Anyway. I'm running my emacs inside gdb again, in case it happens again. Let me know if I can be of further assistance. Regards, Frank