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 16:13:39 +0100 Message-ID: <87sfukekpo.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="34308"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: 52735@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 22 16:14: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 1n03Ju-0008bQ-8O for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Dec 2021 16:14:22 +0100 Original-Received: from localhost ([::1]:44336 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n03Jt-0001Ul-A3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Dec 2021 10:14:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n03Jd-00017t-SP for bug-gnu-emacs@gnu.org; Wed, 22 Dec 2021 10:14:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47974) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n03Ja-0004GL-Qr for bug-gnu-emacs@gnu.org; Wed, 22 Dec 2021 10:14:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n03Ja-00081u-Mx for bug-gnu-emacs@gnu.org; Wed, 22 Dec 2021 10:14:02 -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 15:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52735 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164018603030832 (code B ref -1); Wed, 22 Dec 2021 15:14:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Dec 2021 15:13:50 +0000 Original-Received: from localhost ([127.0.0.1]:59518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n03JN-00081E-Ny for submit@debbugs.gnu.org; Wed, 22 Dec 2021 10:13:50 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:44910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n03JM-000817-IX for submit@debbugs.gnu.org; Wed, 22 Dec 2021 10:13:48 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38940) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n03JK-0000l9-Co for bug-gnu-emacs@gnu.org; Wed, 22 Dec 2021 10:13:48 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:53617) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n03JI-00038D-IZ for bug-gnu-emacs@gnu.org; Wed, 22 Dec 2021 10:13:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1640186019; bh=GsnzNEv+cl3xYuV5a8qXpfpcY+gn8xwhaGT8DBc5MgA=; h=X-UI-Sender-Class:From:To:Subject:Date; b=V1MnBAe6LTfRaYVFcmuTt8kvlguunxWv+x5Gsr3ks2/9oN7TFLZ0MlrOSMorzNVyA uUj298H3UISILZf29QHwHOdNyXhllClNpbhpBKCFhKUCRQDynTCWr56NU25q3SmL3i Nx7nJfChaMMn0PqAfMbsH4JV5tdv0T/17m+y6T5w= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobelfs ([89.246.36.33]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M1Ycl-1n1RHs2W6d-0035AX for ; Wed, 22 Dec 2021 16:13:39 +0100 X-Provags-ID: V03:K1:p7oxJ1C26ZHjahQbBLF1OCgD/eIS+nWG1IWK8IzVktSLyUiuJgA cgmNCEugdF7iJlwlebUDA9Eoj+O/jXOLy8bx8/f846T5cD6iXLY6nXOyB++zhX2gCyLxdXe mztTR1sRZPnbSMKtpVaXkz42zfo2I2zK5b6eYaEhpDF7TbhhfZWkzfC0wX01yFqdkXfok5g 5hK7bmvgUvOTrB1IMBoAQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:lo3y+Hsv8zQ=:ZCv7LRX4IiOFoDyJn8ON4y s2qecGHC92Db5BYrtquL+cWD+dxM08qRueAxvhxv0PsPCrrm2/1NQGBOI1BSnUoxXwezrQ0Z5 M3ervP2oSIYQp1QLmlv20p9NWUIZ34/jaIqm3tk2R6MH2IhMp6ffzdMre6Gvv/utj18peSTbG 0Iv8/FWiJnfXtmpJPPlIcm4odJebO0c8jkTG9ohDTMDOMiq971ipN2Vib2kAdbSjWOR8dpqw7 qRGblZpzaNa+hM94qRdPihakjZS6gL86bRVKMVVJpvn9/0yVQ/I1CTkVvv57SBVll96mVpQ5i YzhZJPC7775lc2BR3w5yGg1J02RkLBmzPMDv8SCfVr1Hyp7a4QxqswXj4JsaL+sR6YN7YRL74 jVdhpaTDDMGazA5gBCbjfblhDXxjSOMngNMx1SHAQbXb8vcgMR2KqfSJ3R3mWuPd/s0wSuFG5 Nh1PCvTDzQFbr60TAArhj4GBiYN4x6vuphlJmk0B2+/LOAccacquuo7Sc/k0N0zyBy5vMXC7i +JKfxyC+uOOXw8o7qYbB5OHhZlL846NVWx/N7pI4foXBrMegz6gFGAQh/Hn/phl1/V+6C+IIg QyBqjMxnLjRB5XcMOcnyiELHX1MBHx+QAVeItpvMmiTMwM3W/XaAHC7KOU/haliM2aS+kb+g5 tOL6vHesKtqMFJGA0nhkDl3dCoiXOLDbCgLjJHaiS2po/aGg9L6XTqus132hzBrxrGrIBf59E Qsm8ENgUm1ukPbaBr28EOwg6clKsBcXXMeNgPqRF0nEz+k0wFECc45rB12HieVEgNfhBQG7V Received-SPF: pass client-ip=212.227.17.22; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:222948 Archived-At: Since more than a week (I think it started on December 11), I've been regularly experiencing a hang when I type `g' in the Gnus *Group* buffer: the mouse pointer spins, and Emacs is locked up. Typing `C-g' releases the hang and then typing `g' again succeeds in fetching new news. I can also get a hang when typing RET on an article line in the Gnus *Summary* buffer, and also here typing `C-g' releases the hang and typing RET again opens the article. These hangs happen reliably when I don't provide any input to Gnus (e.g., opening a group or an article, or just check again for new news) within several minutes (I haven't determined a more precise amount of time). They only involve the news.gmane.io server, not any of the mail servers I fetch mail from (I haven't tried any other news server). 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. To my surprise, these hangs happen with all builds of Emacs I have: master, 28, 27 and 26, which indicates the problem is not directly due to a recent code change. I also haven't knowingly made any changes in my setup since I began observing this problem (moreover, I also seem to get a hang when I start Gnus from -Q and open news.gmane.io, though I haven't tried stepping through the code then to see if it's really the same issue). If there were a problem with news.gmane.io, I'd have expected to see other reports or find some mention on the internet, but I haven't. Perhaps some unrelated recent code change somehow causes the server buffer to become empty at the wrong point. Or maybe my debugging is faulty and the problem lies elsewhere. I'll gladly try any suggestions. In GNU Emacs 29.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.29, cairo version 1.17.4) of 2021-12-22 built on strobelfs Repository revision: 70266929c3eb173fae0c64d56f8d402a805ca786 Repository branch: master Windowing system distributor 'System Description: Linux From Scratch 10.2-rc1 Configured using: 'configure --with-pgtk 'CFLAGS=-Og -g3'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP XIM GTK3 ZLIB