From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/76319 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel Subject: Re: "no process" gnus bug when moving messages from nnml to imap folder Date: Thu, 03 Feb 2011 13:39:31 -0800 Message-ID: References: <8762t1dww9.fsf@gnus.org> <871v3orhhw.fsf@gnus.org> <87k4hgq1du.fsf@gnus.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1296778103 13445 80.91.229.12 (4 Feb 2011 00:08:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 4 Feb 2011 00:08:23 +0000 (UTC) Cc: emacs-devel@gnu.org, ding@gnus.org To: Lars Ingebrigtsen Original-X-From: ding-owner+M24671@lists.math.uh.edu Fri Feb 04 01:08:18 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pl9Dj-0006pC-D2 for ding-account@gmane.org; Fri, 04 Feb 2011 01:08:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Pl9Cx-0007LO-CL; Thu, 03 Feb 2011 18:07:27 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Pl6u2-0006Xz-Cf for ding@lists.math.uh.edu; Thu, 03 Feb 2011 15:39:46 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Pl6tx-0002Ja-BE for ding@lists.math.uh.edu; Thu, 03 Feb 2011 15:39:46 -0600 Original-Received: from mail-gw0-f44.google.com ([74.125.83.44]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Pl6tw-0000V8-9p; Thu, 03 Feb 2011 22:39:40 +0100 Original-Received: by gwb20 with SMTP id 20so725497gwb.17 for ; Thu, 03 Feb 2011 13:39:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=HjWkO/rGBZCaf6xvKFyg1UFNTpEFmOb8HItChbkqwhQ=; b=uBTij5cfNJ0jqSMV6L6/T7sY1rs60mLpiwg69chE2ae6zLl265IhGyTBOMZzCjHoTw Y1wsR5p1/pLH9ox7/VpE1pjXonZQG9WWn/y7Lvs09NjVUigcI6cC4HndP/g6Ar4SkfFs zTG0Gblj9yVVyu5oh87IW5xZZM1UDZs2bYL6w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=PtN1Ph+hOzPfmGv7Pk8bu4zHV/tZMTUV8b4mxFBYz9ShW6GTHzRbDqEJK/Ur9+HSgL rZeWhrCGiKHlv+PHZFqoxL9q76v51ewUGcLRnkE9r5l6szF7pSdr4cD0qgg+wbkGwJ9H Nbgl/oS/61foTji9E4A3uWLJe5FeBF1wca5Zg= Original-Received: by 10.236.108.131 with SMTP id q3mr22678594yhg.85.1296769173480; Thu, 03 Feb 2011 13:39:33 -0800 (PST) Original-Received: from gkeramidas-glaptop.gmail.com (dhcp-172-19-7-72.mtv.corp.google.com [172.19.7.72]) by mx.google.com with ESMTPS id i2sm761406yha.25.2011.02.03.13.39.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 03 Feb 2011 13:39:32 -0800 (PST) In-Reply-To: (Giorgos Keramidas's message of "Thu, 03 Feb 2011 13:33:57 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -3.0 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:76319 gmane.emacs.devel:135538 Archived-At: On Thu, 03 Feb 2011 13:33:57 -0800, Giorgos Keramidas wrote: > On Thu, 03 Feb 2011 13:00:45 -0800, Lars Ingebrigtsen wrote: >> I've verified that I can reproduce the error, but I'm not quite sure >> what the solution is. The message is really corrupt (ending in a lot of >> NUL characters), and Gmail just seems to close its connection. Does >> their IMAP server segfault? I have no idea. >> >> Moving the same message to a Dovecot server works perfectly, so it seems >> likely that it's just another shoddy Google product. >> >> Obviously the error message in this case would be better than a >> backtrace, and I'll fix that at least. >> >> If anyone has any input on whether Gnus should try to, er, encode the >> message in some way before pushing it to Gmail, I'm all ears. > > I think there are two slightly related problems at work here. One of > them is that Gmail disconnects after we send NUL characters so we can't > move the message and we throw a backtrace. > > Another is that once this happens *once* for some message, then it's no > longer possible to `B m' even other normal messages. It seems that when > Gmail drops the connection Gnus gets 'stuck' trying to recover from the > dropped connection, or trying to use the connection that is no longer > available. Here's what my *Messages* buffer says after one such connection drop, for example: Opening nnimap server on gmail... Opening connection to imap.gmail.com via tls... Opening TLS connection to `imap.gmail.com'... Opening TLS connection with `gnutls-cli --insecure -p 993 imap.gmail.com'...failed Opening TLS connection with `gnutls-cli --insecure -p 993 imap.gmail.com --protocols ssl3'...failed Opening TLS connection with `openssl s_client -connect imap.gmail.com:993 -no_ssl2 -ign_eof'...done Opening TLS connection to `imap.gmail.com'...done Opening nnimap server on gmail...done Moving to nnimap+gmail:archive/2001: (3135)... nnimap-send-command: Buffer *nnimap imap.gmail.com 993 *nntpd**<2> has no process It looks like Gnus *does* attempt to recover, reconnects to Gmail using openssl for ssl encryption, and then, for some reason, fails to find the connection it just opened. At the same time, my buffer list *does* include at least _one_ valid connections to Gmail's imap server: ,----------------------------------------------------------------------- | MR Name Size Mode Filename/Process | -- ---- ---- ---- ---------------- |[ Default ] | * *scratch* 463 Lisp Interaction | * *unsent wide reply to Giorgos Keramidas* 2734 Message ~/News/drafts/drafts/5 | *% *Summary nnml:posted* 977 Summary | *% *Article nnml:posted* 1522 Article | *% *Group* 2331 Group | * *Messages* 7852 Fundamental | *% *Summary nnml:mail.archive-2001* 78917 Summary | * *gnus trace* 2099 Fundamental | * *nnimap imap.gmail.com 993 *nntpd** 0 Fundamental | * *imap log* 17217 Fundamental => | * *nnimap imap.gmail.com nil *nntpd** 491 Fundamental (*nnimap*<1> run) | .bbdb 18944 Fundamental ~/.bbdb | *sent wide reply to Lars Ingebrigtsen* 1636 Message ~/News/drafts/drafts/2 | *sent mail to Lars Ingebrigtsen* 1808 Message ~/News/drafts/drafts/4 | % *Article nnml:mail.archive-2001* 0 Article | * *nnimap imap.gmail.com 993 *nntpd**<2> 0 Fundamental | * .newsrc-dribble 18332 Fundamental ~/.newsrc-dribble | | 17 buffers 155323 5 files, 1 process `----------------------------------------------------------------------- The `*nnimap imap.gmail.com 993 *nntpd**' buffer seems disconnected though. So does `*nnimap imap.gmail.com 993 *nntpd**<2>'.