From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: 43047@debbugs.gnu.org
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 [thread overview]
Message-ID: <87zh6i388d.fsf@ericabrahamsen.net> (raw)
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 #<buffer *nnimap NPR nil *nntpd**> :host "NPR" :service "imaps" :nowait nil :tls-parameters nil :coding nil)
open-network-stream("*nnimap*" #<buffer *nnimap NPR nil *nntpd**> "NPR" "imaps" :nowait nil :tls-parameters nil :coding nil)
open-gnutls-stream("*nnimap*" #<buffer *nnimap NPR nil *nntpd**> "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) #<bytecode -0xeb17a16a56719de>)))
network-stream-open-tls("*nnimap*" #<buffer *nnimap NPR nil *nntpd**> "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) #<bytecode -0xeb17a16a56719de>)))
open-network-stream("*nnimap*" #<buffer *nnimap NPR nil *nntpd**> "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) #<bytecode -0xeb17a16a56719de>))
nnimap-open-connection-1(#<buffer *nntpd*>)
nnimap-open-connection(#<buffer *nntpd*>)
nnimap-open-server("NPR" nil nil)
nnimap-change-group("INBOX" "NPR")
#f(compiled-function (group) #<bytecode -0x1990b256ae59c812>)("nnimap+NPR:INBOX")
mapcar(#f(compiled-function (group) #<bytecode -0x1990b256ae59c812>) ("nnimap+NPR:INBOX"))
nnir-run-imap(((query . "body \"searchy\"")) "nnimap:NPR" ("nnimap+NPR:INBOX"))
next reply other threads:[~2020-08-25 18:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-25 18:12 Eric Abrahamsen [this message]
2020-10-16 8:21 ` bug#43047: 28.0.50; Closing Gnus server then searching it results in unrecoverable breakage Lars Ingebrigtsen
2020-10-16 16:54 ` Eric Abrahamsen
2020-10-16 16:57 ` Lars Ingebrigtsen
2020-10-16 17:03 ` Eric Abrahamsen
2021-08-27 17:44 ` Lars Ingebrigtsen
2021-08-27 18:33 ` Eric Abrahamsen
2021-08-27 18:45 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zh6i388d.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=43047@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.