Ticket #2938 (new defect)

Opened 16 months ago

Last modified 3 months ago

mutt freezes some times when accessing imap folders or messages

Reported by: b.macdonald Owned by: brendan
Priority: major Milestone: 1.6
Component: IMAP Version:
Keywords: Cc:

Description

Mutt sometimes hangs when fetching a message, or opening a folder while fetching headers from an imap server. The imap server is Cyrus IMAP4 2.2.12-Invoca-RPM-2.2.12-8.1.RHEL4. This happens also with mutt 1.5.12 on one machine, as well as with mutt 1.5.13. This happens occasionally, not that often, but enough to be frustrating since mutt has to be restarted and changes to the mail folder are lost. Several times a day. Mutt won't respond except for ctl-Z to stop it, then the mutt process must be killed. In one case I collected a debug log from mutt -d, which showed that mutt has frozen part way through downloading an attachment. No error messages are given, the log simply stops part way through outputing the attachment to the log file.

Well I'm not sure this is mutt or cyrus imapd but not sure how to tell the difference and the imap server is not accessible to me.

Change History

Changed 16 months ago by b.macdonald

I also submitted to Debian, bug #431258

Changed 12 months ago by brendan

  • owner changed from mutt-dev to brendan
  • component changed from mutt to IMAP
  • milestone set to 1.6

This may have been fixed in 1.5.17. Can you reproduce with that version?

Changed 12 months ago by b.macdonald

Hi Brendan, sorry but it still happens with 1.5.17. I'm using Debian packages, and the latest is 1.5.17. Tried it on two machines and both still freeze. One my laptop from home over a broadband link, the other logged in to my desktop at work, and running mutt on that. If there is anything I can do to help let me know.

Bruce

Changed 10 months ago by derek

I am also seeing this, RHEL4 stock cyrus Cyrus IMAP server. Mutt both RHEL4 built in 1.4.1i and a hand built 1.5.17

[derek@vimur ~]$ mutt -v Mutt 1.4.1i (2003-03-19) Copyright (C) 1996-2002 Michael R. Elkins and others. Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'. Mutt is free software, and you are welcome to redistribute it under certain conditions; type `mutt -vv' for details.

System: Linux 2.6.9-55.ELsmp (i686) [using ncurses 5.4] Compile options: -DOMAIN -DEBUG -HOMESPOOL -USE_SETGID -USE_DOTLOCK -DL_STANDALONE +USE_FCNTL -USE_FLOCK +USE_POP +USE_IMAP +USE_GSS +USE_SSL +USE_SASL +HAVE_REGCOMP -USE_GNU_REGEX +HAVE_COLOR +HAVE_START_COLOR +HAVE_TYPEAHEAD +HAVE_BKGDSET +HAVE_CURS_SET +HAVE_META +HAVE_RESIZETERM +HAVE_PGP -BUFFY_SIZE -EXACT_ADDRESS -SUN_ATTACHMENT +ENABLE_NLS -LOCALES_HACK +HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET +HAVE_LANGINFO_YESEXPR +HAVE_ICONV -ICONV_NONTRANS +HAVE_GETSID +HAVE_GETADDRINFO ISPELL="/usr/bin/ispell" SENDMAIL="/usr/sbin/sendmail" MAILPATH="/var/mail" PKGDATADIR="/usr/share/mutt" SYSCONFDIR="/etc" EXECSHELL="/bin/sh" -MIXMASTER To contact the developers, please mail to <mutt-dev@…>. To report a bug, please use the flea(1) utility.

[derek@vimur ~]$ /opt/UMmutt/bin/mutt -v Mutt 1.5.17 (2007-11-01) Copyright (C) 1996-2007 Michael R. Elkins and others. Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'. Mutt is free software, and you are welcome to redistribute it under certain conditions; type `mutt -vv' for details.

System: Linux 2.6.9-55.ELsmp (i686) ncurses: ncurses 5.4.20040724 (compiled with 5.4) libidn: 0.5.6 (compiled with 0.5.6) hcache backend: This is GDBM version 1.8.0, as of May 19, 1999. Compile options: -DOMAIN -DEBUG -HOMESPOOL +USE_SETGID +USE_DOTLOCK +DL_STANDALONE +USE_FCNTL -USE_FLOCK -USE_INODESORT +USE_POP +USE_IMAP -USE_SMTP +USE_GSS +USE_SSL_OPENSSL -USE_SSL_GNUTLS -USE_SASL +HAVE_GETADDRINFO -HAVE_REGCOMP +USE_GNU_REGEX +HAVE_COLOR +HAVE_START_COLOR +HAVE_TYPEAHEAD +HAVE_BKGDSET +HAVE_CURS_SET +HAVE_META +HAVE_RESIZETERM +CRYPT_BACKEND_CLASSIC_PGP +CRYPT_BACKEND_CLASSIC_SMIME -CRYPT_BACKEND_GPGME -EXACT_ADDRESS -SUN_ATTACHMENT +ENABLE_NLS -LOCALES_HACK +HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET +HAVE_LANGINFO_YESEXPR +HAVE_ICONV -ICONV_NONTRANS +HAVE_LIBIDN +HAVE_GETSID +USE_HCACHE ISPELL="/usr/bin/ispell" SENDMAIL="/usr/sbin/sendmail" MAILPATH="/var/mail" PKGDATADIR="/opt/UMmutt/share/mutt" SYSCONFDIR="/opt/UMmutt/etc" EXECSHELL="/bin/sh" -MIXMASTER To contact the developers, please mail to <mutt-dev@…>. To report a bug, please visit http://bugs.mutt.org/.

Occasionally the client will just lock up for 5-10 mins. then it will drop the connection. Cyrus does not see any commands durning this,

a0097 OK Completed (0.000 sec)

is what the cyrus log provides which is the last command issued was completed OK.

I don't see an option -d to debug mutt, is this something i am missing at compile time?

Changed 10 months ago by derek

Here is .muttdebug for -d 2 w/ the above 1.5.17 version w/ --enable-debug

f=f: DelSp?: yes 4> a0427 NOOP imap_cmd_step: Error reading server response. imap_exec: command failed: mutt_free_body: Not unlinking University of Maryland Quote #76783-001 from 42U.pdf. mutt_free_body: Not unlinking img28.jpg. mutt_free_body: Not unlinking untitled-2. mutt_free_body: Not unlinking untitled-3. mutt_free_body: Not unlinking error_log.bmp. mutt_free_body: Not unlinking error_log.bmp. mutt_free_body: Not unlinking image001.gif. mutt_free_body: Not unlinking image002.gif. mutt_free_body: Not unlinking image003.gif. mutt_free_body: Not unlinking image004.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image.gif. mutt_free_body: Not unlinking image001.gif. mutt_free_body: Not unlinking image002.gif. mutt_free_body: Not unlinking image003.gif. mutt_free_body: Not unlinking image004.gif. mutt_free_body: Not unlinking error_log2.bmp. Mailbox closed mutt_socket_close: Attempt to close closed connection. No mailbox is open.

Changed 3 months ago by brendan

Are you using ssl or gnutls? This may be the same bug as #3074. I've committed a possible fix (at least for gnutls) there. If you could try it out, that would be great.

Changed 3 months ago by Bruce MacDonald

Hi, I haven't grabbed the code yet (I usually just use the latest
ubuntu package), but when I turn off ssl and gnutls the problem still
occurs, although perhaps less frequently. Bruce

On Sun, Aug 31, 2008 at 03:26:13AM -0000, Mutt wrote:
Note: See TracTickets for help on using tickets.