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: Thu, 08 Apr 2021 10:35:53 -0400 Message-ID: References: <87im5ofp3z.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> <8f4516d5-1080-71bb-7da7-acf7832d5529@gmx.at> <87r1jlvnrc.fsf@md5i.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10493"; 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 Thu Apr 08 16:37:09 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 1lUVmP-0002Xa-9q for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Apr 2021 16:37:09 +0200 Original-Received: from localhost ([::1]:60208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUVmO-0001Vc-2u for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Apr 2021 10:37:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUVmI-0001VK-1c for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2021 10:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36405) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lUVmH-0007Vs-Qj for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2021 10:37:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lUVmH-0002s7-Oc for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2021 10:37:01 -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: Thu, 08 Apr 2021 14:37: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.161789256810969 (code B ref 47244); Thu, 08 Apr 2021 14:37:01 +0000 Original-Received: (at 47244) by debbugs.gnu.org; 8 Apr 2021 14:36:08 +0000 Original-Received: from localhost ([127.0.0.1]:47951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUVlQ-0002qr-9r for submit@debbugs.gnu.org; Thu, 08 Apr 2021 10:36:08 -0400 Original-Received: from taper.sei.cmu.edu ([147.72.252.16]:60880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUVlK-0002qI-Hz for 47244@debbugs.gnu.org; Thu, 08 Apr 2021 10:36:06 -0400 Original-Received: from delp.sei.cmu.edu (delp.sei.cmu.edu [10.64.21.31]) by taper.sei.cmu.edu (8.14.7/8.14.7) with ESMTP id 138EZt2u013878; Thu, 8 Apr 2021 10:35:55 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 taper.sei.cmu.edu 138EZt2u013878 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cert.org; s=yc2bmwvrj62m; t=1617892556; bh=LWF4UU8XLxd2NBkt9ELDjj7XJbM6F1F5RrThu16ozHY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=EI9sjKs7M1HXDQ9D01QKZH4hCCi3zbeJYAEqGUycv3JsV1r6aqgiypJXuQmtNu5RS Ob+4W672zISbljMMDR8RSxLDsSVdxuEif8/3x7ZcjdFoW+PHArRWj/719bTlNvxzEu Y3QxqTxVZJOgl6lK2D3J33nttzIxByDmVmGjz7nM= Original-Received: from lx-birch.ad.sei.cmu.edu (lx-birch.ad.sei.cmu.edu [10.64.53.120]) by delp.sei.cmu.edu (8.14.7/8.14.7) with ESMTP id 138EZs2u017303; Thu, 8 Apr 2021 10:35:54 -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 138EZsZJ029887; Thu, 8 Apr 2021 10:35:54 -0400 Original-Received: (from mwd@localhost) by lx-birch.ad.sei.cmu.edu (8.14.7/8.14.7) id 138EZr0f029884; Thu, 8 Apr 2021 10:35:53 -0400 X-Authentication-Warning: lx-birch.ad.sei.cmu.edu: mwd set sender to mwd@cert.org using -f In-Reply-To: (martin rudalics's message of "Thu, 8 Apr 2021 02:59:48 -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:203728 Archived-At: martin rudalics writes: > > FWIW, I've been trying to do the same and have been similarly > > unsuccessful. > > I attach a version where I make a shadow copy of Vwindow_list called > Vwindow_list_2. The two should behave the same just that Vwindow_list_2 > is never accessed by other code. So we can put an assertion like > > eassert (!NILP (Fequal (Vwindow_list, Vwindow_list_2))); > > anywhere in the code. I put one in window_list and it should trigger > the same way as the length check before. > > Now if anyone can suggest some strategic positions where to put these > assertions, I'll be all ears. I've yet to run this code yet (will do so shortly), but I'd like to mention that some other debugging I've been doing involving tricky breakpoint commands is implying that, somehow, list_windows() is getting called while list_windows() is still running. I've got a breakpoint at the beginning of the if clause in window_list() and one at the end, and it looks like I'm seeing the first one get called twice without the second getting called inbetween. -- Michael Welsh Duggan (mwd@cert.org)