From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#47244: 28.0.50; SIGSEGV in long-runnning Emacs Date: Tue, 6 Apr 2021 18:12:38 +0200 Message-ID: <870479cc-efd3-3a19-98a3-1d7a8b9346e8@gmx.at> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32717"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Michael Welsh Duggan , "schwab@linux-m68k.org" , "47244@debbugs.gnu.org" <47244@debbugs.gnu.org> To: Michael Welsh Duggan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 06 18:13:23 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 1lToKO-0008Mi-JH for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Apr 2021 18:13:20 +0200 Original-Received: from localhost ([::1]:49092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lToKN-00046j-F2 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Apr 2021 12:13:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42434) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lToK6-00044k-5O for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2021 12:13:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58188) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lToK5-0004GI-TA for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2021 12:13:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lToK5-0003av-NP for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2021 12:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Apr 2021 16:13:01 +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.161772557713806 (code B ref 47244); Tue, 06 Apr 2021 16:13:01 +0000 Original-Received: (at 47244) by debbugs.gnu.org; 6 Apr 2021 16:12:57 +0000 Original-Received: from localhost ([127.0.0.1]:41501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lToK1-0003ac-Ac for submit@debbugs.gnu.org; Tue, 06 Apr 2021 12:12:57 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:41495) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lToJy-0003aN-Hw for 47244@debbugs.gnu.org; Tue, 06 Apr 2021 12:12:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1617725561; bh=gF0LL15Lj1ttWA/uImgdNXs6V+TLfTcENY+Us4Gj6Vk=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=Bh5rYbqvcWs5P5/SY8wGnc2g3PDufvjDhlILitZSi6+edgUN6IiNJ7VGcEP70Zgtq WkSEa9RgjkbGdBE0dC/KF+TYqGFHtVdAGGObHcN7HAIWJqXPALW7l05cYEx0FOPfIM +l5/fw0wBcD+CD9LRa9pXj8MhzylDQarQVIiB+jI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([46.125.249.81]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MTABT-1l12U22EPv-00UaMT; Tue, 06 Apr 2021 18:12:41 +0200 In-Reply-To: Content-Language: en-US X-Provags-ID: V03:K1:EgKLj4tzYD4wWNuSIosHfwTukZNAFrWSM/aBTvYvVVDVDfIv+6n KDo8flvUWZJXHR0T6qbnEP807L1xdMI1JFr8JLI31xAaR70gQk4xP42Twp1xrRI+dzfGjf3 x7jazSRPbayGDiinHqzx742QzXbPmGwGCCFJSFj/fEjbL8odtkh+XLdC32EvG0jwTPdhckz HbJJkMAwX1y65kb8t+cSA== X-UI-Out-Filterresults: notjunk:1;V03:K0:8XOU81svB5g=:lzzuMzaTiw5xcshtrnRoy5 o8+pMR9wkNp3jinjnU9qlUlZUy2/TThz5GYlvFcTqfYYoisKcsU2jCevvlz/XXcRfpB6fXhE5 mZcssnEj87LmjA1yzYzYN00VW+bPozznl3kOTRTLcHp6bSMc3RObv9yfUS0p9QxL4Ss1hI7S5 00eiWkl7FD7ci/FCMb3/T904Sl1ETtJ921gQ1Cgdaaa+KN0Y7Sz5IrvcY2FgWZSe4n4LYQGPx lgPTd05nHnWstvxj4TfqGW0fJAHihToRoiw0XI1Ee19qLyv825aahpp7OX2x7BpXU6kdW+rV1 lMsS3W4mKIlnscCI2s0j4O5Ge/ScHbrVzY/e76E0MyyQ/Eu/+vqYr3JyiApMJzqTWm4LIrS2e wX3+YPqMvt18zQ4obkCeoMBa7IvMNanHPGuBGYOi2dtSVCeG3pHRcUcw/8uDol2ofCHnNdBWO v7Ti46oEpp26PmvVPyUv4uVqn1P63oskyqDOnAoGejITR5smqcgUYjNAixjK3N6Yuy2/pNnTr LWfx3FhcucwzUi6rwF0kn8Wv8RVzNlBBlxsHmHyRcvcyXAFlkystHylhbWc6f8fOGiPFjj2jS JJXAA9sMb5csN+yFA4inHiXUoxmaY547ozcqFyUqvxW4r5YYadhQOr01isaEBMC0WwWiIjF5i WB8HofKDUGKiL1OnjhfFZKVk1dNeDHRhV5cvJhMqORuDHwGZUnhfZf3vaLzeWFoUK0irEYchc 4AVmm/V/U0kCRmiL9UKIDhfwQkfjxirpGkIyA3g1CevsJbgHqGoXqYIUGchA6Bjn0Dm3XiQS 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:203640 Archived-At: > 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? What is the value of FRAME_ROOT_WINDOW (f) where f is the *Server* frame? What is the name of that window's buffer? IIUC the *Server* frame does not have a minibuffer window - correct? martin