mutt/2176: mutt segfaults when tab-expanding '=' to disconnected IMAPs box
>Number: 2176
>Notify-List: holecek@xxxxxxxxxx
>Category: mutt
>Synopsis: mutt segfaults when tab-expanding '=' to disconnected IMAPs box
>Confidential: no
>Severity: minor
>Priority: medium
>Responsible: mutt-dev
>State: open
>Keywords:
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Feb 01 23:17:57 +0100 2006
>Originator: Honza Holecek
>Release: 1.5.11
>Organization:
>Environment:
Intel Mobile Pentium 4, Gentoo Linux
Mutt 1.5.11 (2005-09-15)
System: Linux 2.6.14-gentoo-r4 (i686) [using ncurses 5.4] [using libidn 0.5.15
(compiled with 0.5.15)]
Přelo?eno s volbami:
-DOMAIN
-DEBUG
-HOMESPOOL +USE_SETGID +USE_DOTLOCK +DL_STANDALONE
-USE_FCNTL +USE_FLOCK -USE_INODESORT
-USE_POP +USE_IMAP -USE_GSS +USE_SSL -USE_GNUTLS -USE_SASL
-HAVE_REGCOMP +USE_GNU_REGEX +COMPRESSED
+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
-BUFFY_SIZE -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 +HAVE_GETADDRINFO
+USE_HCACHE
-ISPELL
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/spool/mail"
PKGDATADIR="/usr/share/mutt"
SYSCONFDIR="/etc/mutt"
EXECSHELL="/bin/sh"
MIXMASTER="mixmaster"
patch-1.5.6.dw.pgp-timeout.1
patch-1.5.6.dw.mbox-hook.1
rr.compressed
patch-1.5.4.lpr.collapse_flagged Lukas P. Ruf <lukas.ruf@xxxxxx>
patch-1.5.10.tt.assumed_charset.1
>Description:
Mutt segfaults during folder name completion under certain conditions: typed
string should expand to a list of IMAPs folders but the IMAPs connection is not
established yet.
>How-To-Repeat:
I have in my .muttrc these lines:
set mbox_type = mbox
set folder = imaps://host.name//path/to/maildir"
set spoolfile = "/var/mail/user"
set mbox = "/var/mail/user"
I start mutt. It opens /var/mail/user (usually empty). I type 'm' to change
mailbox. I type '=' to access an IMAPs folder. I press tabulator to get list of
my IMAPs folders. Mutt segfaults as IMAPs connection is not established yet (I
guess).
Alternatively, you can type just 'imaps://' and then the <TAB> key to start
completion. The mutt will segfault too.
>Fix:
I have tracked the segfault down to case-block
line 443: case OP_EDITOR_COMPLETE:
in function _mutt_enter_string in file enter.c.
I got lost there, sorry.
>Add-To-Audit-Trail:
>Unformatted: