From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#47244: 28.0.50; SIGSEGV in long-runnning Emacs Date: Thu, 08 Apr 2021 18:58:15 +0300 Message-ID: <83pmz493ag.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3880"; mail-complaints-to="usenet@ciao.gmane.io" Cc: schwab@linux-m68k.org, 47244@debbugs.gnu.org, mwd@cert.org To: Michael Welsh Duggan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 08 18:02:03 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 1lUX6X-0000oh-39 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Apr 2021 18:02:01 +0200 Original-Received: from localhost ([::1]:41788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUX6V-0004zo-Uf for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Apr 2021 12:01:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUX3h-0002Se-L9 for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2021 11:59:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36493) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lUX3e-0006eV-HM for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2021 11:59:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lUX3e-0000ih-Fe for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2021 11:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Apr 2021 15:59: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.16178975292746 (code B ref 47244); Thu, 08 Apr 2021 15:59:02 +0000 Original-Received: (at 47244) by debbugs.gnu.org; 8 Apr 2021 15:58:49 +0000 Original-Received: from localhost ([127.0.0.1]:48039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUX3Q-0000iE-TZ for submit@debbugs.gnu.org; Thu, 08 Apr 2021 11:58:49 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUX3P-0000i1-0g for 47244@debbugs.gnu.org; Thu, 08 Apr 2021 11:58:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44435) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUX3F-0006Pp-Bo; Thu, 08 Apr 2021 11:58:37 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3651 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lUX3E-0006Kd-1R; Thu, 08 Apr 2021 11:58:36 -0400 In-Reply-To: <871rbkn6op.fsf@md5i.com> (message from Michael Welsh Duggan on Thu, 08 Apr 2021 11:21:10 -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:203736 Archived-At: > From: Michael Welsh Duggan > Date: Thu, 08 Apr 2021 11:21:10 -0400 > Cc: Michael Welsh Duggan , > "schwab@linux-m68k.org" , > "47244@debbugs.gnu.org" <47244@debbugs.gnu.org> > > Okay, close, but not quite. What seems to be happening is this: > list_windows() 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. 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. I guess you mean window_list instead of list_windows? > 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? Set a breakpoint in 'quit' and disable it. Set another breakpoint at entry to 'window_list' that enables the breakpoint in 'quit', then another breakpoint at exit which disables the breakpoint in 'quit'. Then wait for the breakpoint in 'quit' to break during your recipe. Perhaps also do the same with a breakpoint in Fthrow. > #26 0x000055555583108e in print_error_message (data=XIL(0x55555732d343), stream=XIL(0x30), context=0x7ffff2c64148 "", caller=XIL(0)) at ../../master/src/print.c:944 > error_conditions = XIL(0x7ffff2c2da13) > errname = XIL(0xb820) > errmsg = make_fixnum(23456248526235) > file_error = XIL(0x7fffffffd4c0) > tail = XIL(0x30) What error message does this attempt to print?