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: Mon, 29 Mar 2021 11:26:22 -0400 Message-ID: References: <87im5ofp3z.fsf@md5i.com> <83a6qzfxmc.fsf@gnu.org> <87sg4rclim.fsf@md5i.com> <83k0q3dzj7.fsf@gnu.org> <83czvvdw7o.fsf@gnu.org> <14e14f28-7ece-cd98-5e49-d4583a0153a0@gmx.at> <16b279ef-a1c2-cd41-b18c-69383174c72a@gmx.at> <87a6qs7z60.fsf@md5i.com> <83eeg3kawg.fsf@gnu.org> <83y2e6kp9t.fsf@gnu.org> <83tuouknpb.fsf@gnu.org> <83sg4eknh5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29634"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: "mwd@md5i.com" , "schwab@linux-m68k.org" , "47244@debbugs.gnu.org" <47244@debbugs.gnu.org> To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 29 17:27:25 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 1lQtnZ-0007Yy-F3 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Mar 2021 17:27:25 +0200 Original-Received: from localhost ([::1]:51236 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQtnY-0002sK-Gz for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Mar 2021 11:27:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQtnC-0002s9-8K for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 11:27:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37740) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQtnB-0008Mn-OD for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 11:27:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQtnB-0001fo-Kf for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 11:27: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: Mon, 29 Mar 2021 15:27: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.16170316016396 (code B ref 47244); Mon, 29 Mar 2021 15:27:01 +0000 Original-Received: (at 47244) by debbugs.gnu.org; 29 Mar 2021 15:26:41 +0000 Original-Received: from localhost ([127.0.0.1]:49286 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQtmo-0001f3-DN for submit@debbugs.gnu.org; Mon, 29 Mar 2021 11:26:41 -0400 Original-Received: from veto.sei.cmu.edu ([147.72.252.17]:41812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQtml-0001eh-TR for 47244@debbugs.gnu.org; Mon, 29 Mar 2021 11:26:36 -0400 Original-Received: from delp.sei.cmu.edu (delp.sei.cmu.edu [10.64.21.31]) by veto.sei.cmu.edu (8.14.7/8.14.7) with ESMTP id 12TFQRue002835; Mon, 29 Mar 2021 11:26:27 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 veto.sei.cmu.edu 12TFQRue002835 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cert.org; s=yc2bmwvrj62m; t=1617031587; bh=oI0x8Bp1otmMKG3q948/p2qBMSFTkTy1bLB6xNa61J4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=ptJmcUReuNY9VicrLZHiqWH78j5U8h+oaUS+2N6R+t4f4R5iXnR/6Aiviq9dqPWOE 4p1GYjWPVnbC4BOmhNTi5/es6AFOtz9SL+ogbXeCGKEJv0IZplRX6FaoDHRS4PUQyO f/k0g4uiwDqrATTSSbt1GltA7kkED8iOA+rR83l0= 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 12TFQNgJ019243; Mon, 29 Mar 2021 11:26:23 -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 12TFQMta017615; Mon, 29 Mar 2021 11:26:22 -0400 Original-Received: (from mwd@localhost) by lx-birch.ad.sei.cmu.edu (8.14.7/8.14.7) id 12TFQMoU017612; Mon, 29 Mar 2021 11:26:22 -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 "Mon, 29 Mar 2021 11:21:05 -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:203246 Archived-At: Michael Welsh Duggan writes: > Eli Zaretskii writes: > >>> Date: Mon, 29 Mar 2021 18:02:24 +0300 >>> From: Eli Zaretskii >>> Cc: mwd@md5i.com, schwab@linux-m68k.org, 47244@debbugs.gnu.org >>> >>> Any idea where could be the Lisp code that switches from " *nntpd*" to >>> the buffer in the currently selected window? Perhaps some >>> with-current-buffer thing somewhere? >> >> Actually, no, I don't think it can be with-current-buffer, it must be >> something else. I wonder how we ended up being at top-level with >> current buffer being " *nntpd*" and the selected window's buffer being >> something else, which was killed? Hmm... > > I'm far from certain myself. I have no options specifically set > regarding threads and I run Gnus from Emacs sources. What I can say is > that every time I can remember this happening, the following is the > sequence of events: > > 1) Emacs has locked up. This is presumably because: > a) I have switched my work VPN on, and > b) Gnus uses my existing IMAP connection to attempt to check for new > articles due to this clause in my .gnus file: > > (gnus-demon-add-handler 'gnus-demon-scan-news 5 nil) > 2) From the *Group* buffer I hit `C-g` to cancel its attempt, and `^` to > switch to the Gnus *Sever* buffer. > 3) In that buffer I go to the imap connection and type `C O`, which runs > `gnus-server-close-server` and `gnus-server-open-server`, > respectively. > 4) I type `q` to exit the server buffer. This is when the breakpoint > triggers. `g` calls the following function: > > (defun gnus-server-exit () > "Return to the group buffer." > (interactive nil gnus-server-mode) > (gnus-run-hooks 'gnus-server-exit-hook) > (gnus-kill-buffer (current-buffer)) > (gnus-configure-windows 'group t)) > > `gnus-sever-exit-hook` is nil. The definition of `gnus-kill-buffer` is > as follows: > > (defmacro gnus-kill-buffer (buffer) > "Kill BUFFER and remove from the list of Gnus buffers." > `(let ((buf ,buffer)) > (when (gnus-buffer-live-p buf) > (kill-buffer buf) > (gnus-prune-buffers)))) > > (defun gnus-buffers () > "Return a list of live Gnus buffers." > (setq gnus-buffers (seq-filter #'buffer-live-p gnus-buffers))) > > (defalias 'gnus-prune-buffers #'gnus-buffers) > > `gnus-configure-windows` is a quite complex function that I'm not going > to attach to this email, as it is easier to look at it in-situ from the > sources (gnus-win.el). A further point of information. I do have an nntp connection as well as the imap connection. It's an ntp connection to "news.gmane.io". In the sequence of events above, I do not specifically attempt to reset the nntp connection, but it may to be affected by the VPN switch. I do not know what mechanism might have killed that buffer. -- Michael Welsh Duggan (mwd@cert.org)