From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#52735: 29.0.50; Gnus hangs while getting new news Date: Wed, 22 Dec 2021 18:42:05 +0100 Message-ID: <87o858edua.fsf@gmx.net> References: <87sfukekpo.fsf@gmx.net> <87a6gsa9rs.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13709"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 52735@debbugs.gnu.org To: Eric Abrahamsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 22 19:05:34 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 1n05zZ-0003MP-I8 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Dec 2021 19:05:33 +0100 Original-Received: from localhost ([::1]:57612 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n05zY-0000hU-Bq for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Dec 2021 13:05:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n05dm-0004Mf-C6 for bug-gnu-emacs@gnu.org; Wed, 22 Dec 2021 12:43:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48132) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n05dm-0002t6-1a for bug-gnu-emacs@gnu.org; Wed, 22 Dec 2021 12:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n05dl-0003NM-VP for bug-gnu-emacs@gnu.org; Wed, 22 Dec 2021 12:43:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Dec 2021 17:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52735 X-GNU-PR-Package: emacs Original-Received: via spool by 52735-submit@debbugs.gnu.org id=B52735.164019494512929 (code B ref 52735); Wed, 22 Dec 2021 17:43:01 +0000 Original-Received: (at 52735) by debbugs.gnu.org; 22 Dec 2021 17:42:25 +0000 Original-Received: from localhost ([127.0.0.1]:59678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n05dB-0003MT-1u for submit@debbugs.gnu.org; Wed, 22 Dec 2021 12:42:25 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:42173) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n05d7-0003MD-PB for 52735@debbugs.gnu.org; Wed, 22 Dec 2021 12:42:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1640194926; bh=lt0ETsgGExOEIptL8LmIToiWb1q9Zh2YcPDUEb5vy0Y=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=cgN/1cK9mx76i7cDAItRTDrTXB4E2LkJYTv8oyFK+W1QnQT5aiDtGqQ0WuM5L4nx0 vyuxcUGTd7/I5/Qyr/yHvgD5mapvo4+Lz/7QoBmDnnOiQw6pMEmUdD3Iw3UClUpOvq 1gf6z2XPc77JSip6JiEVsFy09Dxh0TrWgBgzLp0g= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobelfs ([89.246.36.33]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MWRVb-1mwz4Q45ZD-00XrN5; Wed, 22 Dec 2021 18:42:06 +0100 In-Reply-To: <87a6gsa9rs.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 22 Dec 2021 08:23:35 -0800") X-Provags-ID: V03:K1:OhTSdagyhQcqpxq0AbwysV61Cig7r3g2WafLhdyZF3mYU2oxU50 37na6zWYZa2gpoCJQ2E5y6fEymOnLZSulr4ues8Hoqmy60K29KmSKtF3t4qD+k0xjGDLEQP 2z6PrNockygle9ycQSEJ+/vjwksy161spyFHmdWp5ZxFnmjoUYu5MA8YrXPl6O0bYz88Mdq 1Q11zn5qFXmJIlHfd7P1A== X-UI-Out-Filterresults: notjunk:1;V03:K0:+TDs5mLUN24=:6OhnFa8cSQo9RZaH2ziPAV 3jLJxaaHDJf9umLoLNrjofEWp5/QRo95XkCajpjnem+lhlVHU1kB1lDWxrzXY2OT8MQgj+Xbd q82jFNuEx1v2iJ9WizMIVM82LW+qtgNvP1eBmON8xqsCfXU34rbovDTXHCUJKmzc3QIXrm/K2 0QHJ+duHr2FPtP+qcZMJbsxmwStv3ZuvxPlT0xuxPAcMaUIA2HgMjdL3+0LmjEMIBbP+91N7Q RWseYbZgRKZtAGt5B3fCDS3R8tpwIGQ/HIKF95nxPeqd1CFP0eo3S0w+f2C5hFa2RAH6B3paR 3oF9BD+k8pfzraGNqgiAnf7CgVae9GA8bVJcDBjb8ECYK12KvQY+mQ/j6Amn/kYxp6JFKZiIR nx7XZwcYOiDqHsfhqhdsWTBKa09fiDsirJpRqgZudB321UpJaatUfJN0rPChbXxHh/AR3qz9w EYeiuGhR8pkHrodbhJ57mbrJV++67lmScj5r9P38j8WLnzgZVMBTZ3xPAA0id2JVPVNYVMKE6 mDqKMO6gY4mPy7OMkPQonJEx7erqiWYYYIzjcmPH1PfJnrFhJOJyvyng4kyvKGKZXplualzLT T+cSyGecv9l7jek+4Lc3bW6PUO4kzyOdseavElAKFP2cdyrOGGPMjrCS/2PD4WPPgXlnHZ45w eNfoIjZC+Y+Dv2pjL6d3qAQ0SJaO35ddyxZGAYH4IUDc0WAf+K8VWtY2mqoQKxM/qqYvOHYxY bx34ckllibiHpnAjNUDAYvof2ov0ZMb5vfH34Q3iR4E6SiJRywkjBifP6bH9HA1uKzMtObIe 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:222954 Archived-At: On Wed, 22 Dec 2021 08:23:35 -0800 Eric Abrahamsen wrote: > Stephen Berman writes: > >> The hang appears to happen in nntp-finish-retrieve-group-infos: stepping >> through the code with Edebug, I see an infinite loop here: >> >> (while (and (gnus-buffer-live-p buf) >> (progn >> (goto-char last-point) >> ;; Count replies. >> (while (re-search-forward >> (if nntp-server-list-active-group >> "^[.]" >> "^[0-9]") >> nil t) >> (cl-incf received)) >> (setq last-point (point)) >> (< received count))) >> (nntp-accept-response)) >> >> when the server buffer (e.g. " *server news.gmane.io nntp *nntpd**") is >> empty. Since this code clearly does not expect an empty buffer, the bug >> is presumably making this buffer empty when this code is executed. But >> I haven't managed to figure out how this happens. (I have seen that >> this buffer can become empty in other situations, e.g. on opening an >> article in Gnus, and that doesn't cause any problems.) I've also >> observed that when I wait long enough for the server process to close >> (the buffer then shows "Process nntpd connection broken by remote >> peer"), then there is no hang on typing `g' in the *Group* buffer. > > The only thing I can suggest now is more debugging on > `nntp-finish-retrieve-group-infos', and try to get a backtrace for both > the buggy empty-buffer situation, and the normal, non-empty-buffer > situation. Perhaps comparing the two backtraces will provide a clue as > to how we ended up with an empty buffer? So far, I determined that problem isn't the empty buffer per se, but that it remains empty after (nntp-accept-response) returns, that's why the while-loop keeps looping. I'll try to dig into nntp-accept-response. Steve Berman