<<< Date Index >>>     <<< Thread Index >>>

[Mutt] #3389: segfault when trying to unsubscribe from an IMAP folder



#3389: segfault when trying to unsubscribe from an IMAP folder
------------------------------------+---------------------------------------
 Reporter:  daniell                 |       Owner:  brendan
     Type:  defect                  |      Status:  new    
 Priority:  major                   |   Milestone:         
Component:  IMAP                    |     Version:  1.5.20 
 Keywords:  imap unsubscribe crash  |  
------------------------------------+---------------------------------------
 Press 'y' for folder list, and press 'u' to unsubscribe from a folder.
 Mutt crashes.

 Here is a rather useless gdb bt full from the corefile:
 {{{
 $ gdb /usr/bin/mutt /home/daniell/core

 GNU gdb 6.8
 Copyright (C) 2008 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later
 <http://gnu.org/licenses/gpl.html>
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
 and "show warranty" for details.
 This GDB was configured as "i486-slackware-linux"...

 warning: Can't read pathname for load map: Input/output error.
 Reading symbols from /lib/libncursesw.so.5...done.
 Loaded symbols for /lib/libncursesw.so.5
 Reading symbols from /lib/libssl.so.0...done.
 Loaded symbols for /lib/libssl.so.0
 Reading symbols from /lib/libcrypto.so.0...done.
 Loaded symbols for /lib/libcrypto.so.0
 Reading symbols from /usr/lib/libz.so.1...done.
 Loaded symbols for /usr/lib/libz.so.1
 Reading symbols from /usr/lib/libsasl2.so.2...done.
 Loaded symbols for /usr/lib/libsasl2.so.2
 Reading symbols from /usr/lib/libgpgme.so.11...done.
 Loaded symbols for /usr/lib/libgpgme.so.11
 Reading symbols from /usr/lib/libgpg-error.so.0...done.
 Loaded symbols for /usr/lib/libgpg-error.so.0
 Reading symbols from /usr/lib/libidn.so.11...done.
 Loaded symbols for /usr/lib/libidn.so.11
 Reading symbols from /lib/libdb-4.4.so...done.
 Loaded symbols for /lib/libdb-4.4.so
 Reading symbols from /lib/libc.so.6...done.
 Loaded symbols for /lib/libc.so.6
 Reading symbols from /lib/libdl.so.2...done.
 Loaded symbols for /lib/libdl.so.2
 Reading symbols from /lib/libresolv.so.2...done.
 Loaded symbols for /lib/libresolv.so.2
 Reading symbols from /lib/libpthread.so.0...done.
 Loaded symbols for /lib/libpthread.so.0
 Reading symbols from /lib/ld-linux.so.2...done.
 Loaded symbols for /lib/ld-linux.so.2
 Reading symbols from /lib/libnss_compat.so.2...done.
 Loaded symbols for /lib/libnss_compat.so.2
 Reading symbols from /lib/libnsl.so.1...done.
 Loaded symbols for /lib/libnsl.so.1
 Reading symbols from /lib/libnss_nis.so.2...done.
 Loaded symbols for /lib/libnss_nis.so.2
 Reading symbols from /lib/libnss_files.so.2...done.
 Loaded symbols for /lib/libnss_files.so.2
 Reading symbols from /lib/libnss_dns.so.2...done.
 Loaded symbols for /lib/libnss_dns.so.2
 Reading symbols from /usr/lib/sasl2/libcrammd5.so.2...done.
 Loaded symbols for /usr/lib/sasl2/libcrammd5.so.2
 Reading symbols from /usr/lib/sasl2/libdigestmd5.so.2...done.
 Loaded symbols for /usr/lib/sasl2/libdigestmd5.so.2
 Reading symbols from /usr/lib/sasl2/liblogin.so.2...done.
 Loaded symbols for /usr/lib/sasl2/liblogin.so.2
 Reading symbols from /lib/libcrypt.so.1...done.
 Loaded symbols for /lib/libcrypt.so.1
 Reading symbols from /usr/lib/sasl2/libotp.so.2...done.
 Loaded symbols for /usr/lib/sasl2/libotp.so.2
 Reading symbols from /usr/lib/sasl2/libplain.so.2...done.
 Loaded symbols for /usr/lib/sasl2/libplain.so.2
 Reading symbols from /usr/lib/sasl2/libsasldb.so.2...done.
 Loaded symbols for /usr/lib/sasl2/libsasldb.so.2
 Reading symbols from /usr/lib/libgdbm.so.3...done.
 Loaded symbols for /usr/lib/libgdbm.so.3
 Reading symbols from /usr/lib/gconv/ISO8859-1.so...done.
 Loaded symbols for /usr/lib/gconv/ISO8859-1.so
 Reading symbols from /usr/lib/gconv/ISO8859-2.so...done.
 Loaded symbols for /usr/lib/gconv/ISO8859-2.so
 Core was generated by `mutt'.
 Program terminated with signal 11, Segmentation fault.
 [New process 23731]
 #0  0xb739b9e1 in free () from /lib/libc.so.6
 (gdb) bt full
 #0  0xb739b9e1 in free () from /lib/libc.so.6
 No symbol table info available.
 #1  0x080b9248 in safe_free ()
 No symbol table info available.
 #2  0x08055f02 in mutt_parse_mailboxes ()
 No symbol table info available.
 #3  0x0807441c in mutt_parse_rc_line ()
 No symbol table info available.
 #4  0x080ec2ef in imap_subscribe ()
 No symbol table info available.
 #5  0x080539e0 in _mutt_select_file ()
 No symbol table info available.
 #6  0x08063e35 in _mutt_enter_fname ()
 No symbol table info available.
 #7  0x080670ec in mutt_index_menu ()
 No symbol table info available.
 #8  0x080824d9 in main ()
 No symbol table info available.
 (gdb) quit
 }}}
 Here is how I've configured mutt for compiling:
 {{{
 ./configure --sysconfdir=/etc/mutt --prefix=/usr --mandir=/usr/man \
         --enable-smtp --enable-imap --enable-pop --enable-gpgme --enable-
 hcache \
         --with-ssl --with-sasl --without-gdbm --with-bdb --with-regex
 --with-idn --enable-debug
 }}}
 -- System Information
 {{{
 System Version: Linux serenity 2.6.33-smp #1 SMP Wed Mar 3 11:41:03 CET
 2010 i686 AMD Phenom(tm) II X2 550 Processor AuthenticAMD GNU/Linux
 }}}
 -- Build environment information
 {{{
 (Note: This is the build environment installed on the system
 muttbug is run on.  Information may or may not match the environment
 used to build mutt.)

 - gcc version information
 gcc
 Reading specs from /usr/lib/gcc/i486-slackware-linux/4.4.3/specs
 Target: i486-slackware-linux
 Configured with: ../gcc-4.4.3/configure --prefix=/usr --libdir=/usr/lib
 --enable-shared --enable-bootstrap --enable-
 languages=ada,c,c++,fortran,java,objc --enable-threads=posix --enable-
 checking=release --with-system-zlib --with-python-dir=/lib/python2.6/site-
 packages --disable-libunwind-exceptions --enable-__cxa_atexit --enable-
 libssp --with-gnu-ld --verbose --with-arch=i486 --target=i486-slackware-
 linux --build=i486-slackware-linux --host=i486-slackware-linux
 Thread model: posix
 gcc version 4.4.3 (GCC)

 - CFLAGS
 -Wall -pedantic -Wno-long-long -O2 -march=i486 -mtune=i686
 }}}
 -- Mutt Version Information
 {{{
 Mutt 1.5.20 (2009-06-14)
 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 2.6.33-smp (i686)
 ncurses: ncurses 5.7.20081102 (compiled with 5.7)
 libidn: 1.5 (compiled with 1.5)
 hcache backend: Sleepycat Software: Berkeley DB 4.4.20: (January 10, 2006)
 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/mutt"
 EXECSHELL="/bin/sh"
 -MIXMASTER
 To contact the developers, please mail to <mutt-dev@xxxxxxxx>.
 To report a bug, please visit http://bugs.mutt.org/.
 }}}
 --- Begin /home/daniell/.muttrc
 {{{
 bind index,pager + next-unread-mailbox
 bind pager % bottom
 bind pager > next-line
 bind pager < previous-line
 set beep_new=yes
 set folder=imap://host/
 set forward_format='Fwd: %s'
 set imap_authenticators='plain'
 set imap_check_subscribed=yes
 set imap_idle=yes
 set imap_user=daniell
 set include_onlyfirst=yes
 set include=yes
 set index_format="%3C[%e] %S %-15.15L %s%14*  (%4.4c) %{%y.%m.%d %H:%M}"
 set ispell="mutt_spell_check_wrapper.sh"
 set mail_check=60
 set mark_old=no
 set pager_index_lines=7
 set pager_stop=yes
 set query_command="ldapsearch -QZZ '''('%s')'''
 |mutt_ldap_decode_base64.sh"
 set query_format="%4c %t %-60.60a %-60.60n %?e?(%e)?"
 set quit=ask-no
 set realname='LEVAI Daniel'
 set record='=Sent'
 set search_context=2
 set send_charset="us-ascii:iso-8859-2:utf-8"
 set signature=~/.signature
 set smtp_authenticators='plain'
 set smtp_url=smtp://daniell@host
 set sort_aux=reverse-date
 set sort=threads
 set spoolfile=imap://host/INBOX
 set status_format="%f %r %s %?V?Limit:%V Size:%L/%l Msgs:%M/%m &Size:%l
 Msgs:%m ?MBN:%b N:%u F:%F t:%t d:%d%>  %P"
 set ssl_force_tls=yes
 set status_on_top=yes
 set strict_threads=yes
 set tilde=yes
 set timeout=15
 set wait_key=no
 set wrap_search=no
 set pgp_decode_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-
 verbose --quiet --batch --output - %f"
 set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch
 --output - --verify %s %f"
 set pgp_decrypt_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-
 verbose --quiet --batch --output - %f"
 set pgp_sign_command="gpg --no-verbose --batch --quiet --output - %?p
 ?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f"
 set pgp_clearsign_command="gpg --no-verbose --batch --quiet --output - %?p
 ?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f"
 set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose
 --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
 set pgp_encrypt_sign_command="pgpewrap gpg %?p?--passphrase-fd 0? --batch
 --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a?
 --armor --always-trust -- -r %r -- %f"
 set pgp_import_command="gpg --no-verbose --import %f"
 set pgp_export_command="gpg --no-verbose --export --armor %r"
 set pgp_verify_key_command="gpg --verbose --batch --fingerprint --check-
 sigs %r"
 set pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-
 colons --list-keys %r"
 set pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-
 colons --list-secret-keys %r"
 }}}
 --- End /home/daniell/.muttrc
 --- Begin /etc/mutt/Muttrc
 {{{
 ignore *
 unignore from: subject to cc date x-mailer x-url user-agent
 hdr_order date from to cc subject
 macro index \eb "<search>~b " "search in message bodies"
 macro index,pager,attach,compose \cb "\
 <enter-command> set my_pipe_decode=\$pipe_decode pipe_decode<Enter>\
 <pipe-message> urlview<Enter>\
 <enter-command> set pipe_decode=\$my_pipe_decode; unset
 my_pipe_decode<Enter>" \
 "call urlview to extract URLs out of a message"
 macro generic,pager <F1> "<shell-escape> less
 /usr/doc/mutt-1.5.20/manual.txt<Enter>" "show Mutt documentation"
 macro index,pager y "<change-folder>?<toggle-mailboxes>" "show incoming
 mailboxes list"
 bind browser y exit
 mime_lookup application/octet-stream
 attachments   +A */.*
 attachments   -A text/x-vcard application/pgp.*
 attachments   -A application/x-pkcs7-.*
 attachments   +I text/plain
 attachments   -A message/external-body
 attachments   -I message/external-body
 }}}
 --- End /etc/mutt/Muttrc

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3389>
Mutt <http://www.mutt.org/>
The Mutt mail user agent