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:21:05 -0400 Message-ID: References: <87im5ofp3z.fsf@md5i.com> <8735wrrjx7.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="6056"; 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:22:31 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 1lQtij-0001JH-RC for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Mar 2021 17:22:30 +0200 Original-Received: from localhost ([::1]:46740 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQtii-0000iv-Qs for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Mar 2021 11:22:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQtiP-0000hY-CE for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 11:22:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37724) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQtiM-0005lo-9j for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 11:22:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQtiM-0001W6-4W for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 11:22: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: Mon, 29 Mar 2021 15:22: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.16170312815746 (code B ref 47244); Mon, 29 Mar 2021 15:22:02 +0000 Original-Received: (at 47244) by debbugs.gnu.org; 29 Mar 2021 15:21:21 +0000 Original-Received: from localhost ([127.0.0.1]:49267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQthg-0001Ub-LT for submit@debbugs.gnu.org; Mon, 29 Mar 2021 11:21:20 -0400 Original-Received: from taper.sei.cmu.edu ([147.72.252.16]:34740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQthc-0001UK-6H for 47244@debbugs.gnu.org; Mon, 29 Mar 2021 11:21:19 -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 12TFL9xP005924; Mon, 29 Mar 2021 11:21:09 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 taper.sei.cmu.edu 12TFL9xP005924 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cert.org; s=yc2bmwvrj62m; t=1617031269; bh=O1rurltB3dC/f/R/xU02muUv6lCChESv9Q1jF04fFEk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=DixqK9pri4SyjW3N5voERC6+11cTPgfJG7/klnltWxeBy8DzPG9TurzRlh1Xsxmne Fp+pqhAKrHRAssErmpWxosEXO2vspMqy+9DaOym2erjvyJz+tSQiMKZo5hI88+W2mY /3gkfQcqjH/O7EIKWdLOb+ZRYLBtMxU7X+uWZ6mU= 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 12TFL5P7013528; Mon, 29 Mar 2021 11:21:05 -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 12TFL50t016608; Mon, 29 Mar 2021 11:21:05 -0400 Original-Received: (from mwd@localhost) by lx-birch.ad.sei.cmu.edu (8.14.7/8.14.7) id 12TFL5uP016605; Mon, 29 Mar 2021 11:21:05 -0400 X-Authentication-Warning: lx-birch.ad.sei.cmu.edu: mwd set sender to mwd@cert.org using -f In-Reply-To: <83sg4eknh5.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 29 Mar 2021 11:07:18 -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:203244 Archived-At: 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). -- Michael Welsh Duggan (mwd@cert.org)