Freeze when connecting to MailEnable imapd with mutt

Bug #1155879 reported by Dave Suffling
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnutls26 (Ubuntu)
New
Undecided
Unassigned
mutt (Ubuntu)
New
Undecided
Unassigned

Bug Description

This issue is reproducible on Ubuntu 10.10, 11.10 and 12.10.

When connecting to mailroot3.namespro.ca using IMAPS (SSL), the client will progress some way through opening a large mailbox, typically receiving between zero and a few thousand headers, before it hangs in recv(). The issue is reliably reproducible on a mailbox containing ~2600 messages.

This issue only occurs when using TLSv1 to connect. Disabling TLSv1 in muttrc (presumably falling back to SSLv3) or using cleartext IMAP both avoid this issue.

Wireshark shows that the most recent data exchange was from the server to the client.

The remote mail server is likely MailEnable 5.53.

(Note, in the attached trace, a connection is being proxied through an SSH tunnel, so the outgoing connection will appear to go to localhost:9993. This issue occurs with a direct connection as well.)

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: mutt 1.5.21-6
ProcVersionSignature: Ubuntu 3.5.0-25.39-generic 3.5.7.4
Uname: Linux 3.5.0-25-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.6.1-0ubuntu10
Architecture: amd64
Date: Sat Mar 16 01:12:15 2013
ExecutablePath: /usr/bin/mutt-org
InstallationDate: Installed on 2013-03-12 (3 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
MarkForUpload: True
SourcePackage: mutt
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Dave Suffling (dsufflin) wrote :
Revision history for this message
Dave Suffling (dsufflin) wrote :

In my judgment, this is more likely to be an issue with libgnutls2.6 than mutt.

affects: mutt (Ubuntu) → gnutls26 (Ubuntu)
Changed in gnutls26 (Ubuntu):
status: New → Incomplete
status: Incomplete → New
Revision history for this message
Dave Suffling (dsufflin) wrote :
Download full text (4.5 KiB)

Traceback (name and e-mail address redacted):

#0 0x00007fe9d2289c12 in __libc_recv (fd=3, buf=0x15ff930, n=5, flags=<optimized out>)
    at ../sysdeps/unix/sysv/linux/x86_64/recv.c:30
#1 0x00007fe9d308751e in _gnutls_read (session=session@entry=0x1593820, bufel=bufel@entry=0x7fffe08f6e78,
    size=size@entry=5, pull_func=0x7fe9d30ae780 <system_read>) at gnutls_buffers.c:318
#2 0x00007fe9d3087e00 in _gnutls_io_read_buffered (session=session@entry=0x1593820, total=total@entry=5,
    recv_type=recv_type@entry=4294967295) at gnutls_buffers.c:564
#3 0x00007fe9d308461a in _gnutls_recv_int (session=0x1593820, type=type@entry=GNUTLS_APPLICATION_DATA,
    htype=htype@entry=4294967295,
    data=data@entry=0x12fe610 "Date: Mon, 9 Apr 2012 01:43:47 +0000 (UTC)\r\nFrom: LinkedIn Updates <email address hidden>\r\nTo: Dave Sxxxxxx <email address hidden>\r\nMessage-ID: <491793397.63694914.1333935827484.JavaMail.app@ela4-app0106."..., sizeofdata=sizeofdata@entry=1024) at gnutls_record.c:957
#4 0x00007fe9d3085565 in gnutls_record_recv (session=<optimized out>, data=data@entry=0x12fe610,
    sizeofdata=sizeofdata@entry=1024) at gnutls_record.c:1246
#5 0x0000000000495baf in tls_socket_read (conn=<optimized out>,
    buf=0x12fe610 "Date: Mon, 9 Apr 2012 01:43:47 +0000 (UTC)\r\nFrom: LinkedIn Updates <email address hidden>\r\nTo: Dave Sxxxxxx <email address hidden>\r\nMessage-ID: <491793397.63694914.1333935827484.JavaMail.app@ela4-app0106."..., len=1024) at ../mutt_ssl_gnutls.c:112
#6 0x0000000000497561 in mutt_sasl_conn_read (conn=0x12fe4c0,
    buf=0x12fe610 "Date: Mon, 9 Apr 2012 01:43:47 +0000 (UTC)\r\nFrom: LinkedIn Updates <email address hidden>\r\nTo: Dave Sxxxxxx <email address hidden>\r\nMessage-ID: <491793397.63694914.1333935827484.JavaMail.app@ela4-app0106."..., len=1024) at ../mutt_sasl.c:552
#7 0x0000000000494986 in mutt_socket_readchar (conn=conn@entry=0x12fe4c0, c=c@entry=0x7fffe08f703f "")
    at ../mutt_socket.c:172
#8 0x0000000000494ac4 in mutt_socket_readln_d (
    buf=0x159ee40 "* 84 FETCH (UID 103 FLAGS (\\Seen) INTERNALDATE \"09-Apr-2012 01:44:29 +0000\" RFC822.SIZE 45801 BODY[HEADER.FIELDS (DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES CONTENT-TYPE CONTENT-DESCRIPTION IN-REPL"..., buflen=512, conn=0x12fe4c0, dbg=dbg@entry=2) at ../mutt_socket.c:202
#9 0x000000000049c7b8 in ima...

Read more...

Dave Suffling (dsufflin)
description: updated
Revision history for this message
Lorenz Weber (phry) wrote :

this is most likely related to https://bugs.launchpad.net/ubuntu/+source/gnutls26/+bug/1268193 - please test the patch given there.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.