From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.bugs Subject: bug#47244: 28.0.50; SIGSEGV in long-runnning Emacs Date: Tue, 06 Apr 2021 12:48:04 -0400 Message-ID: References: <87im5ofp3z.fsf@md5i.com> <834kgrifrt.fsf@gnu.org> <106ce987-1a45-bbdf-3897-445baa99a476@gmx.at> <745cb501-d742-8797-d07c-00125f60f8ec@gmx.at> <7a37c708-0ac1-3b06-9042-b4b2b6d6c5d6@gmx.at> <87v990r41n.fsf@md5i.com> <4ad20b14-f4a5-07c0-3f86-698d0934d5af@gmx.at> <58c0bfca-02e6-760f-dcff-05fdc4cca135@gmx.at> <870479cc-efd3-3a19-98a3-1d7a8b9346e8@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12852"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Michael Welsh Duggan , "schwab@linux-m68k.org" , "47244@debbugs.gnu.org" <47244@debbugs.gnu.org> To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 06 18:51:40 2021 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 1lTovO-00035F-Vc for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Apr 2021 18:51:39 +0200 Original-Received: from localhost ([::1]:51944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTovN-0002uX-Tb for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Apr 2021 12:51:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51318) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTosw-000181-JM for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2021 12:49:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58215) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTosw-00052i-BI for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2021 12:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lTosw-0004Vy-8j for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2021 12:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Welsh Duggan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Apr 2021 16:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47244 X-GNU-PR-Package: emacs Original-Received: via spool by 47244-submit@debbugs.gnu.org id=B47244.161772769817290 (code B ref 47244); Tue, 06 Apr 2021 16:49:02 +0000 Original-Received: (at 47244) by debbugs.gnu.org; 6 Apr 2021 16:48:18 +0000 Original-Received: from localhost ([127.0.0.1]:41528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTosE-0004Uo-27 for submit@debbugs.gnu.org; Tue, 06 Apr 2021 12:48:18 -0400 Original-Received: from veto.sei.cmu.edu ([147.72.252.17]:55410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTosA-0004UZ-T2 for 47244@debbugs.gnu.org; Tue, 06 Apr 2021 12:48:16 -0400 Original-Received: from korb.sei.cmu.edu (korb.sei.cmu.edu [10.64.21.30]) by veto.sei.cmu.edu (8.14.7/8.14.7) with ESMTP id 136Gm8HJ041874; Tue, 6 Apr 2021 12:48:09 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 veto.sei.cmu.edu 136Gm8HJ041874 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cert.org; s=yc2bmwvrj62m; t=1617727689; bh=A+xXTqo/owQ9Lcf2aIszorkxPIWD7Pc9+HpVPT8Tc1M=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=D8yK8MxniQ1ia15slq61NVp3Ju4Y3t/Oa5B53IBQUkJHv2zvt2UPu/vjC1b8qPf9D 6YQTTTPF/iuAA1Byy/vfCQElPKA25GbHs07CmW7Tq37b6r2usmp/z5qTsAGMOcrmkJ +xCnw67O4spBh4kEWRF+OoBz/LdKtVGxgZtXI5EI= Original-Received: from lx-birch.ad.sei.cmu.edu (lx-birch.ad.sei.cmu.edu [10.64.53.120]) by korb.sei.cmu.edu (8.14.7/8.14.7) with ESMTP id 136Gm5g0025732; Tue, 6 Apr 2021 12:48:05 -0400 Original-Received: from lx-birch.ad.sei.cmu.edu (localhost [127.0.0.1]) by lx-birch.ad.sei.cmu.edu (8.14.7/8.14.7) with ESMTP id 136Gm5mR021990; Tue, 6 Apr 2021 12:48:05 -0400 Original-Received: (from mwd@localhost) by lx-birch.ad.sei.cmu.edu (8.14.7/8.14.7) id 136Gm4JL021976; Tue, 6 Apr 2021 12:48:04 -0400 X-Authentication-Warning: lx-birch.ad.sei.cmu.edu: mwd set sender to mwd@cert.org using -f In-Reply-To: <870479cc-efd3-3a19-98a3-1d7a8b9346e8@gmx.at> (martin rudalics's message of "Tue, 6 Apr 2021 12:12:38 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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:203641 Archived-At: martin rudalics writes: > > Here is the state as I've been able to determine from the debugger: > > > > Vframe_list contains three entries: "build.ninja", "*Server*", and > > "F1". This matches reality. "F1" is the invisible frame created by > > --daemon. > > > > Frame "build.ninja" has a selected_window whose contents are the buffer > > "build.ninja". > > > > Frame "*Server*" has a selected_window whose contents are the buffer > > "*Server*". > > > > Frame "F1" has a selected_window whose contents are the buffer > > "*scratch*". > > > > Vwindow_list contains two entries: A window whose contents are > > "build.ninja", and a window whose contents are " *Minibuf-0*". > > > > Importantly, Vwindow_list does not contain the window whose contents are > > "*Server*". Since the window_list_1() call uses the value of > > Vwindow_list to create its result, the loop in window_loop() will never > > compare EQ in the REPLACE_BUFFER_IN_WINDOWS_SAFELY case clause. > > Impressive, thanks. This means that if earlier everything worked as > intended someone did > > (1) set Vwindow_list to nil (because otherwise the *Server* window would > still figure in it), and > > (2) window_list () recreated Vwindow_list but did _not_ include the > *Server* window. > > The mysterious aspect is (2): Why did window_list skip the *Server* > window? Good question. I plan to set Vwindow_list to nil and call it to see what happens. > What is the value of FRAME_ROOT_WINDOW (f) where f is the > *Server* frame? What is the name of that window's buffer? It's a window containing the buffer "*Server*". > IIUC the *Server* frame does not have a minibuffer window - correct? It didn't appear in Vwindow_list, but it does have a minibuffer. (gdb) p $116->minibuffer_window $139 = XIL(0x555556fc8185) (gdb) xwindow $140 = (struct window *) 0x555556fc8180 84x1+0+59 (gdb) p $140->contents $141 = XIL(0x7ffff2a3cb15) (gdb) xbuffer $142 = (struct buffer *) 0x7ffff2a3cb10 0x7ffff2d244ea " *Minibuf-0*" I will note that the window itself is different than the one on the Vwindow_list with the same contents. -- Michael Welsh Duggan (mwd@cert.org)