Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: ding@gnus.org
Subject: Re: gnutls problems again
Date: Wed, 16 Mar 2011 09:04:19 -0500	[thread overview]
Message-ID: <87zkovw49o.fsf@lifelogs.com> (raw)
In-Reply-To: <m3ipvkm69e.fsf@quimbies.gnus.org>

On Tue, 15 Mar 2011 22:19:09 +0100 Lars Magne Ingebrigtsen <larsi@gnus.org> wrote: 

LMI> The Gmail IMAP servers seem to be having problems again, but it triggers
LMI> an interesting gnutls-related bug.

LMI> If I say:

LMI> (gnus-open-server '(nnimap "imap.gmail.com"))

LMI> then Emacs starts using 100% CPU.  Emacs doesn't hang, but as long as
LMI> that connection is up (i.e., until I kill the process buffer), then
LMI> strace says the following:

LMI> poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}], 2, 0) = 0 (Timeout)
LMI> select(10, [3 4 6 7 8], [], NULL, {0, 0}) = 1 (in [8], left {0, 0})
LMI> getrusage(RUSAGE_SELF, {ru_utime={44, 494780}, ru_stime={8, 100506}, ...}) = 0
LMI> times({tms_utime=4449, tms_stime=810, tms_cutime=0, tms_cstime=0}) = 1731291756
LMI> getrusage(RUSAGE_SELF, {ru_utime={44, 494780}, ru_stime={8, 100506}, ...}) = 0
LMI> times({tms_utime=4449, tms_stime=810, tms_cutime=0, tms_cstime=0}) = 1731291756
LMI> read(3, 0x11fe4f4, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
LMI> poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}], 2, 0) = 0 (Timeout)
LMI> select(10, [3 4 6 7 8], [], NULL, {0, 0}) = 1 (in [8], left {0, 0})
LMI> getrusage(RUSAGE_SELF, {ru_utime={44, 494780}, ru_stime={8, 100506}, ...}) = 0
LMI> times({tms_utime=4449, tms_stime=810, tms_cutime=0, tms_cstime=0}) = 1731291756

LMI> And a *lot* of that.

Claudio Bley's patch (posted on emacs-devel recently) does some EAGAIN
reworking which may fix this.  His code is for W32 but it has general
fixes too.  He's supposed to look at it again this weekend and maybe
bring in my crappy half-baked patch for callback support, which lets you
set the verify flags.  So maybe you want to work with him on debugging
this hang.

Ted




  reply	other threads:[~2011-03-16 14:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-15 21:19 Lars Magne Ingebrigtsen
2011-03-16 14:04 ` Ted Zlatanov [this message]
2011-03-17 17:17   ` Lars Magne 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=87zkovw49o.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=ding@gnus.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).