Current HEAD crashes if IMAP login fails. The backtrace is: (gdb) bt #0 __strstr_sse2 (haystack_start=0x0, needle_start=0x4c0276 "AUTH=LOGIN") at ../string/strstr.c:63 #1 0x00000000004a76ac in imap_auth_sasl (idata=0x8b6a90, method=0x8daf90 "login") at auth_sasl.c:73 #2 0x00000000004a7355 in imap_authenticate (idata=0x8b6a90) at auth.c:79 #3 0x00000000004a038c in imap_conn_find (account=0x7fffffffb910, flags=<optimized out>) at imap.c:373 #4 0x00000000004a05e5 in imap_get_mailbox (path=<optimized out>, hidata=0x7fffffffbad8, buf=0x7fffffffc2e0 "\360\302\377\377\377\177", blen=1024) at imap.c:1443 #5 0x00000000004a1920 in imap_buffy_check (force=<optimized out>) at imap.c:1485 #6 0x0000000000410208 in mutt_buffy_check (force=1) at buffy.c:403 #7 0x000000000041f76a in mutt_index_menu () at curs_main.c:522 #8 0x000000000043b111 in main (argc=1, argv=<optimized out>) at main.c:1053
idata->capstr remains unset unless cmd_parse_capability is called. How should a failed login be handled to avoid the crash? Olaf -- Mutt 1.5.22.rev6346 (2013-10-29) Copyright (C) 1996-2009 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 3.11.10-10.olh_kernel_sles11sp3.4-kernel-linux-3_11 (x86_64) ncurses: ncurses 5.7.20101009 (compiled with 5.7) libidn: 1.15 (compiled with 1.15) hcache backend: GDBM version 1.8.3. 10/15/2002 Compiler: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/4.5/lto-wrapper Target: x86_64-suse-linux Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.5 --enable-ssp --disable-libssp --disable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-suffix=-4.5 --enable-linux-futex --without-system-libunwind --enable-gold --with-plugin-ld=/usr/bin/gold --with-arch-32=i586 --with-tune=generic --build=x86_64-suse-linux Thread model: posix gcc version 4.5.1 20101208 [gcc-4_5-branch revision 167585] (SUSE Linux) Configure options: 'x86_64-suse-linux' '--prefix=/usr' '--datadir=/usr/share' '--sysconfdir=/etc' '--mandir=/usr/share/man' '--with-docdir=/usr/share/doc/packages/mutt' '--enable-imap' '--enable-pop' '--enable-pgp' '--enable-gpgme' '--enable-nfs-fix' '--enable-mailtool' '--enable-compressed' '--disable-external-dotlock' '--with-ssl=/usr' '--with-sasl=/usr' '--with-gss=/usr' '--with-regex' '--enable-smtp' '--enable-hcache' '--with-idn' 'build_alias=x86_64-suse-linux' 'host_alias=x86_64-suse-linux' 'target_alias=x86_64-suse-linux' 'CC=gcc' 'CFLAGS=-Wall -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -I. -D_GNU_SOURCE' Compilation CFLAGS: -Wall -pedantic -Wno-long-long -Wall -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -I. -D_GNU_SOURCE Compile options: -DOMAIN -DEBUG -HOMESPOOL -USE_SETGID +USE_DOTLOCK -DL_STANDALONE +USE_FCNTL -USE_FLOCK +USE_POP +USE_IMAP +USE_SMTP +USE_SSL_OPENSSL -USE_SSL_GNUTLS +USE_SASL +USE_GSS +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="/usr/share/mutt" SYSCONFDIR="/etc" EXECSHELL="/bin/sh" -MIXMASTER To contact the developers, please mail to <[email protected]>. To report a bug, please visit http://bugs.mutt.org/.
