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: Thu, 8 Apr 2021 17:48:23 +0200 Message-ID: References: <87im5ofp3z.fsf@md5i.com> <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> <871rbkn6op.fsf@md5i.com> 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="24399"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "schwab@linux-m68k.org" , "47244@debbugs.gnu.org" <47244@debbugs.gnu.org> To: Michael Welsh Duggan , Michael Welsh Duggan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 08 17:49:29 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 1lUWuO-0006GM-Us for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Apr 2021 17:49:29 +0200 Original-Received: from localhost ([::1]:50878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUWuN-00046m-4j for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Apr 2021 11:49:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38036) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUWtz-00044F-CB for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2021 11:49:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36474) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lUWtz-0000Yf-46 for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2021 11:49:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lUWtz-0000TL-0q for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2021 11:49:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Apr 2021 15: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.16178969241772 (code B ref 47244); Thu, 08 Apr 2021 15:49:02 +0000 Original-Received: (at 47244) by debbugs.gnu.org; 8 Apr 2021 15:48:44 +0000 Original-Received: from localhost ([127.0.0.1]:48018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUWtf-0000SV-4H for submit@debbugs.gnu.org; Thu, 08 Apr 2021 11:48:44 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:40391) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUWta-0000Rz-5t for 47244@debbugs.gnu.org; Thu, 08 Apr 2021 11:48:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1617896905; bh=OeS6d6ZZzG+4wpNxIYToA1WKGCWMtzPA2jn56G6yCAY=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=KfLYBooPT/j/+YFrPu8V8UvcOl5nkNHyiFfYPW5dc4jVA29WSiFivAn0uVBJAJ87+ JYMl3DrisOxJF9cysfvh7TfF7+JVbkfzKc+Ee3MdSaH9+uEeYrgL5mQbrOSTGFH9zk xSHnTw7Ssrp65cJ8ObrcHKrYShAtAyi5E7qMDQsU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([212.95.5.147]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N3bSt-1lcfzW18Jn-010c4N; Thu, 08 Apr 2021 17:48:25 +0200 In-Reply-To: <871rbkn6op.fsf@md5i.com> Content-Language: en-US X-Provags-ID: V03:K1:ncVyw50iI17ed4AWYFwGv8Ow4AltDfX228Bf9W0apNclTZdApcN UVTjmwzgoxq+Wz7hJ1eJs2TIj5ZJGRuEtr1ARtvHkq8G0VhpQUhQWuGmAB78ltu75HAvNg+ 8Lold8FkBKFuS2KAoZ27QGrK3PcFJ+BLMrLtQF83nK1J9U99n89fIeoXmQU8eCeDQ906aCC ZnwOKEmH9MaRxuIPFoq7A== X-UI-Out-Filterresults: notjunk:1;V03:K0:XDeIPA3cDnY=:Wg3cIvCjD+hkVnZ9+oPi61 aQqXihiWQBEXWeR9ajIaqLYgCEQw86GV6IPRTeNI3FoYUZCNi7DtvRxJkDjKJcUT40A9y6e33 5XtNX77bOQ2nj1+9Lj7umQNtPS7BTXRA0MJdtGJLeUse6anqh7+6h9e78Lf/uhj2T/Nw0ctzK ki6ZTcdr6Mg0u9jwSQp23/FdJOOrttmVwF1eNXORu8NRu+IYL0chi3LqkEeatxI8AnX6BldOB 1tN2p+xIOImZkmOv9hygauneN70/61975A+Xpft0G0XQcR7SHbUSY06CyXlVxCkb0CjORichN 8cGueYd4gwpOITbXWoY5DskH9zQ5ldSl/Wg77sMNKMPYrzgiJ0oH40Y2f81m2mN3lvk3eMrW+ Qf/IYlAYtclWaB3tFLIW5Q9oTYZFcxbOKdXYxACrJJ/xJGZ8nNecLTzPqq2jApUDiFMZwAUpH 0Bvy0lxV+DkyZ8qd0xU718RWsrX/bCnpkfmKERiftvCOdjKZGslqyqEjsOFKgCozj5ciN6UBO PaAbFlyKuIUgLHNNxJ5SkWSwv6ZeEy+Mc0veKTpx7ULLgV2wIC+pC24xsi4pR47qI5qZ80oXJ RrTol9KgrdrcA5pitFr/z/0rfm5Gq6pqq8lQaSiaNdzpTa57xVZjM3DDY0kenVwB+pegqOku2 1/teFDkskVkS6mKvPKGVWxyKblkQC9n8Grq96ZL7O/FZPtvkIh8aFO9NjuyXVjqNbhGzMsFs8 F4t4Sz5YOVjXxe0/ZhEns6+Vxt8FbZ996rsKv9+gTZn6mwexIZbpZvG5dfDm2KFIozouVCsO 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:203734 Archived-At: > Okay, close, but not quite. What seems to be happening is this: > list_windows() This is a local rewrite. You really intend window_list() here. Right? > is called while Vwindow_list is nil, and the if branch is > taken. Something causes list_windows() to exit without reaching the end > of the if block. This leaves Vwindow_list partially created. OK. If you really get out of this after the first Vwindow_list = nconc2 (Vwindow_list, arglist); then we have one recorded frame, the length of Vwindow_list is 2 but we did not record it in the earlier length-based experiment and the 2 won't show up in the list of lengths. So the explanation is valid and a bit gruesome too. This might hit us anywhere ... > The next > time list_windows() is called it returns the partially created list. > > To determine this I put a breakpoint at the beginning of the if block > that sets a gdb convenience variable called $in_list_windows to one and > continues. I put a breakpoint at the end of that block that sets it to > zero and continues. I put a third condition breakpoint at the entrance > to list_windows() that only triggers if $in_list_windows is one. This > triggered with the included backtrace. > > Once again, the state triggered when, due to the VPN state changing, a > background gnus demon hung trying to fetch mail. The trigger was me > hitting C-g twice rapidly in succession to regain interactivity. > > Can anyone recommend a means to check if this my theory is true? Does > list_windows() need to be protected against quit? Try with block_input (); ... unblock_input (); around it. martin