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: Wed, 07 Apr 2021 15:25:16 -0400 Message-ID: References: <87im5ofp3z.fsf@md5i.com> <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> <79cfe67d-3a2c-952d-7c51-20e8a4859380@gmx.at> <87czv6q1f8.fsf@md5i.com> <233daa4b-ca64-955f-2612-49a0503b1938@gmx.at> <8735w2p8oc.fsf@md5i.com> <5181da75-e80d-22e0-bdcb-a0ffdc1bac6a@gmx.at> <5c4e5857-6a76-b8e8-204b-b4a855e95a16@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="33652"; 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 Wed Apr 07 21:26:45 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 1lUDp7-0008ZJ-Mf for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Apr 2021 21:26:45 +0200 Original-Received: from localhost ([::1]:38320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUDp6-0000yQ-OD for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Apr 2021 15:26:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44438) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUDoR-0000Qn-47 for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2021 15:26:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33695) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lUDoQ-0003XA-Lr for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2021 15:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lUDoQ-0003cc-Hy for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2021 15:26: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: Wed, 07 Apr 2021 19:26: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.161782352913881 (code B ref 47244); Wed, 07 Apr 2021 19:26:02 +0000 Original-Received: (at 47244) by debbugs.gnu.org; 7 Apr 2021 19:25:29 +0000 Original-Received: from localhost ([127.0.0.1]:45241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUDnt-0003bp-CP for submit@debbugs.gnu.org; Wed, 07 Apr 2021 15:25:29 -0400 Original-Received: from taper.sei.cmu.edu ([147.72.252.16]:40822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUDnp-0003ba-MW for 47244@debbugs.gnu.org; Wed, 07 Apr 2021 15:25:28 -0400 Original-Received: from korb.sei.cmu.edu (korb.sei.cmu.edu [10.64.21.30]) by taper.sei.cmu.edu (8.14.7/8.14.7) with ESMTP id 137JPJcH019962; Wed, 7 Apr 2021 15:25:20 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 taper.sei.cmu.edu 137JPJcH019962 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cert.org; s=yc2bmwvrj62m; t=1617823520; bh=EaNCczpouap2Cdxo9lmm6DzTHbFL4mqWxuSdi/dIHPE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=kZ59gh/Kew8zWKl6ej5JXUFbh8hyU2TRekbRrn62R2XheWmTN+El+eIp9/JqlG2UE XFcZjxRvICnLCLRFD08iV9WLHNNqa+SxwDC8OulixIa70aWo6OetanS60FjARI+F+8 kPFJE50A+x6s031beWcjJMmPeZ/VLNhgY/WNUL2Y= 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 137JPHrP008018; Wed, 7 Apr 2021 15:25:17 -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 137JPHu3010251; Wed, 7 Apr 2021 15:25:17 -0400 Original-Received: (from mwd@localhost) by lx-birch.ad.sei.cmu.edu (8.14.7/8.14.7) id 137JPGV2010248; Wed, 7 Apr 2021 15:25:16 -0400 X-Authentication-Warning: lx-birch.ad.sei.cmu.edu: mwd set sender to mwd@cert.org using -f In-Reply-To: (Michael Welsh Duggan's message of "Wed, 7 Apr 2021 14:31:51 -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:203707 Archived-At: Michael Welsh Duggan writes: > Michael Welsh Duggan writes: > >> martin rudalics writes: >> >>> > Don't know where to go from here, but I have a breakpoint set on >>> > >>> > replace_buffer_in_windows_safely_count = 0; >>> > >>> > conditioned on count != 0. >>> >>> Good. IIUC this >>> >>> > (gdb) p list_length(Vwindow_list) >>> > $2 = 2 >>> >>> and this >>> >>> > (gdb) xlist >>> > $13 = 0x1a >>> > Lisp_Int0 >>> > $14 = 6 >>> >>> together indicate that Vwindow_list spontaneously shrinks from 6 to 2 >>> elements (which is "impossible" as we know already). Attaching the next >>> patch which should catch this situation automatically. It will still be >>> of no help because we won't catch the one that apparently clobbers that >>> list but hopefully more useful than the previous diff. Using watchpoints on Vwindow_list that are turned off when in window_list() and ignored when it is set to nil, I was at least able to determine that whatever is modifying the list is doing so destructively, not by setting a new value. -- Michael Welsh Duggan (mwd@cert.org)