Gnus development mailing list
 help / color / mirror / Atom feed
* gnutls problems again
@ 2011-03-15 21:19 Lars Magne Ingebrigtsen
  2011-03-16 14:04 ` Ted Zlatanov
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-03-15 21:19 UTC (permalink / raw)
  To: ding

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

If I say:

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

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

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

And a *lot* of that.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gnutls problems again
  2011-03-15 21:19 gnutls problems again Lars Magne Ingebrigtsen
@ 2011-03-16 14:04 ` Ted Zlatanov
  2011-03-17 17:17   ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Ted Zlatanov @ 2011-03-16 14:04 UTC (permalink / raw)
  To: ding

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gnutls problems again
  2011-03-16 14:04 ` Ted Zlatanov
@ 2011-03-17 17:17   ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-03-17 17:17 UTC (permalink / raw)
  To: ding

Ted Zlatanov <tzz@lifelogs.com> writes:

> 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. 

Ok; I'll wait until his patch is in Emacs before trying to debug
further.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-17 17:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-15 21:19 gnutls problems again Lars Magne Ingebrigtsen
2011-03-16 14:04 ` Ted Zlatanov
2011-03-17 17:17   ` Lars Magne Ingebrigtsen

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).