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#43047: 28.0.50; Closing Gnus server then searching it results in unrecoverable breakage Date: Tue, 25 Aug 2020 11:12:34 -0700 Message-ID: <87zh6i388d.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="8598"; mail-complaints-to="usenet@ciao.gmane.io" To: 43047@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 25 20:13:11 2020 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 1kAdRX-00029c-QW for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Aug 2020 20:13:11 +0200 Original-Received: from localhost ([::1]:42538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAdRW-0001XB-Ra for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Aug 2020 14:13:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50558) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAdRO-0001Wo-OE for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2020 14:13:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52713) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kAdRO-0005Ys-EX for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2020 14:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kAdRO-0003dU-A9 for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2020 14:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Aug 2020 18:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43047 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.159837916913951 (code B ref -1); Tue, 25 Aug 2020 18:13:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Aug 2020 18:12:49 +0000 Original-Received: from localhost ([127.0.0.1]:36026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAdRB-0003cx-10 for submit@debbugs.gnu.org; Tue, 25 Aug 2020 14:12:49 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:50430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAdR9-0003cp-75 for submit@debbugs.gnu.org; Tue, 25 Aug 2020 14:12:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50512) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAdR8-0001WI-D9 for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2020 14:12:46 -0400 Original-Received: from ericabrahamsen.net ([52.70.2.18]:58434 helo=mail.ericabrahamsen.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAdR6-0005Wr-8m for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2020 14:12:46 -0400 Original-Received: from localhost (75-172-112-137.tukw.qwest.net [75.172.112.137]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 5661BFA30C for ; Tue, 25 Aug 2020 18:12:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1598379156; bh=y9qb96zxrkV1sAsdGTbLmr7U17V0IvirMmVHRNluULA=; h=From:To:Subject:Date:From; b=k0pcMK30y1aziuUNv2Z5J8VnkEssHQIT/oZfTtXUYjWn5BfagOKZD3N8lEV1PAGo2 FcEA69SHxHxJQpdxCArfibEAVhp5OasShNH+ef8xnFSTM7A4o/TMZmQ3+OyUoTduLp CTNEaB5tg/IVq2d+Jtmyf1q4/8p0FPH3+7owz/Cs= Received-SPF: pass client-ip=52.70.2.18; envelope-from=eric@ericabrahamsen.net; helo=mail.ericabrahamsen.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/25 14:12:36 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, 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:186328 Archived-At: While fooling around with dbus and server closing, I discovered that the "closed" state is a bit fragile: I close a server (in this case a localhost IMAP server) then immediately try to search it, and instead of the server opening, or me getting a polite error message, I get the error at the bottom of this report. That error is then permanent, the server can't be re-opened. Not only that, when I `gnus-group-restart' the error persists, AND infects my second IMAP server on localhost, though I guess that's to be expected. Gnus has to be explicitly quit and then restarted in order to recover. I note that, in `nnimap-open-server', when I'm trying to open a server that was closed, the DEFS parameter is populated. But when we get to `nnoo-change-server', none of the global nnimap-* variables get set correctly: nnimap-stream should be 'network, but it's 'undecided, which is why the backtrace below shows failure on an attempted ssl connection. If I try to open a server that's already open, the DEFS parameter is nil, but after we reach the `nnoo-change-server' call, all the nnimap-* vars are set correctly. That's as far as I've gotten now. I will continue debugging this, but I'm hanging it here first to remind myself, and in case anyone else wants to take a whack at it. Debugger entered--Lisp error: (error "NPR/imaps Name or service not known") make-network-process(:name "*nnimap*" :buffer # :host "NPR" :service "imaps" :nowait nil :tls-parameters nil :coding nil) open-network-stream("*nnimap*" # "NPR" "imaps" :nowait nil :tls-parameters nil :coding nil) open-gnutls-stream("*nnimap*" # "NPR" "imaps" (:type ssl :warn-unless-encrypted t :return-list t :shell-command "ssh %s imapd" :capability-command "1 CAPABILITY\15\n" :always-query-capabilities t :end-of-command "\15\n" :success " OK " :starttls-function #f(compiled-function (capabilities) #))) network-stream-open-tls("*nnimap*" # "NPR" "imaps" (:type ssl :warn-unless-encrypted t :return-list t :shell-command "ssh %s imapd" :capability-command "1 CAPABILITY\15\n" :always-query-capabilities t :end-of-command "\15\n" :success " OK " :starttls-function #f(compiled-function (capabilities) #))) open-network-stream("*nnimap*" # "NPR" "imaps" :type ssl :warn-unless-encrypted t :return-list t :shell-command "ssh %s imapd" :capability-command "1 CAPABILITY\15\n" :always-query-capabilities t :end-of-command "\15\n" :success " OK " :starttls-function #f(compiled-function (capabilities) #)) nnimap-open-connection-1(#) nnimap-open-connection(#) nnimap-open-server("NPR" nil nil) nnimap-change-group("INBOX" "NPR") #f(compiled-function (group) #)("nnimap+NPR:INBOX") mapcar(#f(compiled-function (group) #) ("nnimap+NPR:INBOX")) nnir-run-imap(((query . "body \"searchy\"")) "nnimap:NPR" ("nnimap+NPR:INBOX"))