From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#52735: 29.0.50; Gnus hangs while getting new news Date: Wed, 22 Dec 2021 09:54:32 -0800 Message-ID: <87wnjw8qzr.fsf@ericabrahamsen.net> References: <87sfukekpo.fsf@gmx.net> <87a6gsa9rs.fsf@ericabrahamsen.net> <87o858edua.fsf@gmx.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="5732"; 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: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 22 19:11:59 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 1n065m-0001Iv-N7 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Dec 2021 19:11:58 +0100 Original-Received: from localhost ([::1]:43076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n065l-0001nb-H3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Dec 2021 13:11:57 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n05pP-0007cA-KW for bug-gnu-emacs@gnu.org; Wed, 22 Dec 2021 12:55:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48142) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n05pO-0001g1-Ew for bug-gnu-emacs@gnu.org; Wed, 22 Dec 2021 12:55:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n05pO-0003hD-EZ for bug-gnu-emacs@gnu.org; Wed, 22 Dec 2021 12:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Dec 2021 17:55:02 +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.164019568214175 (code B ref 52735); Wed, 22 Dec 2021 17:55:02 +0000 Original-Received: (at 52735) by debbugs.gnu.org; 22 Dec 2021 17:54:42 +0000 Original-Received: from localhost ([127.0.0.1]:59688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n05p4-0003gZ-HB for submit@debbugs.gnu.org; Wed, 22 Dec 2021 12:54:42 -0500 Original-Received: from mail.ericabrahamsen.net ([52.70.2.18]:38702) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n05p3-0003gK-2F for 52735@debbugs.gnu.org; Wed, 22 Dec 2021 12:54:41 -0500 Original-Received: from localhost (c-71-197-232-41.hsd1.wa.comcast.net [71.197.232.41]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id B190AFA095; Wed, 22 Dec 2021 17:54:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1640195674; bh=LpSXrdVAvgyi1YGPelG7FcWVz7kdj0XXwL6zXf2OEEc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=WzYm8pNRWMHuQEmIQ9y/OjatwBIInaD/LYJz3TcICpQNJs/PjWT6wWddTzIj+Jp8T fFcvXL8vZiNAyfTcD81TzDEkedMNrruA2BoRfqsCG14QfdfV87/1RU20nLOrJU9DEu xOj5syzfPrshp4+4xbIXD1e7Q+QAXPDRsU/lZlWI= In-Reply-To: <87o858edua.fsf@gmx.net> (Stephen Berman's message of "Wed, 22 Dec 2021 18:42:05 +0100") 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:222955 Archived-At: On 12/22/21 18:42 PM, Stephen Berman wrote: > 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. This is probably a total red herring, but... look for `copy-to-buffer' calls that are pointing at the wrong buffer (ie, the process output is supposed to go to nntp-server-buffer, but it goes elsewhere).