GNU bug report logs -
#10904
24.0.93; Infinite loop in GnuTLS code during Gnus nnimap-initiated SSL handshake
Previous Next
Reported by: Thomas Fitzsimmons <fitzsim <at> fitzsim.org>
Date: Mon, 27 Feb 2012 23:57:02 UTC
Severity: normal
Found in version 24.0.93
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
In GNU Emacs 24.0.93.7 (i686-pc-linux-gnu, GTK+ Version 2.12.12)
of 2012-02-23
Configured using:
`configure '--prefix=/home/fitzsim/Programs/emacs-24.0.93'
'--x-libraries=/home/fitzsim/Programs/awesome-3.4.11/lib''
Built against: GnuTLS 3.0.8
When I attempt to connect to an Exchange server using IMAP, Emacs
sometimes enters an infinite loop in the GnuTLS code.
I can replicate it on about 50% of attempts:
1. Run:
emacs -Q
2. Evaluate:
(setq gnutls-log-level 5
message-log-max t
gnus-directory "~/.emacs.d/gnus/News/"
gnus-startup-file "~/.emacs.d/gnus/.newsrc"
gnus-secondary-select-methods
(quote ((nnimap "<imap_server_hostname>"
(nnimap-server-address "<imap_server_hostname>")
(nnimap-server-port 993)
(nnimap-user "fitzsim")))))
3. Run:
M-x gnus
I've attached the *Messages* output for the passing and failing cases.
I've redacted the IMAP server name, and I had to install a patch to
limit the number of iterations of the loop to 100 so that I could copy
*Messages*.
In the failing case the server returns a non-zero-length SessionID, then
the infinite read loop is entered; when SessionID's length is 0, the
handshake succeeds and I'm greeted with the IMAP password prompt.
Thomas
[messages-pass.txt (text/plain, attachment)]
[messages-fail.txt (text/plain, attachment)]
This bug report was last modified 7 years and 40 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.