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

Re: [Mutt] #3482: IMAP Segmentation fault when fetching message headers



#3482: IMAP Segmentation fault when fetching message headers
-------------------------------------+--------------------------------------
 Reporter:  duyang                   |       Owner:  brendan
     Type:  defect                   |      Status:  new    
 Priority:  major                    |   Milestone:         
Component:  IMAP                     |     Version:  1.5.21 
 Keywords:  IMAP Segmentation fault  |  
-------------------------------------+--------------------------------------
Changes (by brendan):

  * version:  1.5.20 => 1.5.21


Old description:

> Hi,
>
> I have 2 accounts with the same IMAP server configured in one .muttrc.
> the 2 accounts have the same common configurations. but one is ok, the
> other has a segmentation fault. it is very strange.
>
> what the differences I could tell between the 2 accounts is that, one's
> username has a '_', one not.
>
> I have tried to delete the last message read on the IMAP server before
> segmentation happened and I also tried to clean and disable header cache,
> but all take no effect.
>
> I really want to make it works, and I debug a lot but failed, so I put a
> bug here to try to find a solution.
>
> Log information attached below.
> 2 .muttdebug file attached, one for working account, one for non-working
> account
>
> PS. the mutt version is 1.5.21, but it is not in the list, so I chose
> 1.5.20.
>
> Thanks a lot!
>
> Best Regards
> Du Yang
>
> mutt -v
> ----------------------------------------
>
> Mutt 1.5.21 (2010-09-15, Gentoo 1.5.21-r1)
> 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.34-gentoo-r1 (i686)
> ncurses: ncurses 5.7.20081102 (compiled with 5.7)
> hcache backend: GDBM version 1.8.3. 10/15/2002 (built Feb 20 2009
> 23:12:51)
> Compile options:
> -DOMAIN
> +DEBUG
> +HOMESPOOL  -USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  -USE_FCNTL
> +USE_FLOCK
> -USE_POP  -USE_NNTP  +USE_IMAP  -USE_SMTP
> -USE_SSL_OPENSSL  +USE_SSL_GNUTLS  -USE_SASL  -USE_GSS  +HAVE_GETADDRINFO
> -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
> -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
> SENDMAIL="/usr/sbin/sendmail"
> MAILPATH="Maildir"
> PKGDATADIR="/usr/share/mutt"
> SYSCONFDIR="/etc/mutt"
> EXECSHELL="/bin/sh"
> MIXMASTER="mixmaster"
> To contact the developers, please mail to <mutt-dev@xxxxxxxx>.
> To report a bug, please visit http://bugs.mutt.org/.
>
> dgc.subjrx
> fg.smarttime
> vvv.initials
> vvv.quote
> vvv.nntp
> patch-1.5.20hg.pdmef.progress.vl.2
> rr.compressed
> patch-1.5.4.lpr.collapse_flagged Lukas P. Ruf <lukas.ruf@xxxxxx>
>

> core
> --------------------------------------------------
> --GNU gdb (Gentoo 7.2 p1) 7.2
> Copyright (C) 2010 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 "i686-pc-linux-gnu".
> For bug reporting instructions, please see:
> <http://bugs.gentoo.org/>...
> Reading symbols from /usr/bin/mutt...(no debugging symbols found)...done.
> [New Thread 5015]
>
> warning: Can't read pathname for load map: Input/output error.
> Reading symbols from /lib/libncursesw.so.5...(no debugging symbols
> found)...done.
> Loaded symbols for /lib/libncursesw.so.5
> Reading symbols from /usr/lib/libgnutls.so.26...(no debugging symbols
> found)...done.
> Loaded symbols for /usr/lib/libgnutls.so.26
> Reading symbols from /usr/lib/libgdbm.so.3...(no debugging symbols
> found)...done.
> Loaded symbols for /usr/lib/libgdbm.so.3
> Reading symbols from /lib/libc.so.6...(no debugging symbols
> found)...done.
> Loaded symbols for /lib/libc.so.6
> Reading symbols from /lib/libdl.so.2...(no debugging symbols
> found)...done.
> Loaded symbols for /lib/libdl.so.2
> Reading symbols from /usr/lib/libtasn1.so.3...(no debugging symbols
> found)...done.
> Loaded symbols for /usr/lib/libtasn1.so.3
> Reading symbols from /lib/libz.so.1...(no debugging symbols
> found)...done.
> Loaded symbols for /lib/libz.so.1
> Reading symbols from /usr/lib/libgcrypt.so.11...(no debugging symbols
> found)...done.
> Loaded symbols for /usr/lib/libgcrypt.so.11
> Reading symbols from /lib/ld-linux.so.2...(no debugging symbols
> found)...done.
> Loaded symbols for /lib/ld-linux.so.2
> Reading symbols from /usr/lib/libgpg-error.so.0...(no debugging symbols
> found)...done.
> Loaded symbols for /usr/lib/libgpg-error.so.0
> Reading symbols from /lib/libnss_compat.so.2...(no debugging symbols
> found)...done.
> Loaded symbols for /lib/libnss_compat.so.2
> Reading symbols from /lib/libnsl.so.1...(no debugging symbols
> found)...done.
> Loaded symbols for /lib/libnsl.so.1
> Reading symbols from /lib/libnss_nis.so.2...(no debugging symbols
> found)...done.
> Loaded symbols for /lib/libnss_nis.so.2
> Reading symbols from /lib/libnss_files.so.2...(no debugging symbols
> found)...done.
> Loaded symbols for /lib/libnss_files.so.2
> Reading symbols from /lib/libnss_dns.so.2...(no debugging symbols
> found)...done.
> Loaded symbols for /lib/libnss_dns.so.2
> Reading symbols from /lib/libresolv.so.2...(no debugging symbols
> found)...done.
> Loaded symbols for /lib/libresolv.so.2
> Reading symbols from /usr/lib/gconv/GB18030.so...(no debugging symbols
> found)...done.
> Loaded symbols for /usr/lib/gconv/GB18030.so
> Reading symbols from /usr/lib/gconv/EUC-CN.so...(no debugging symbols
> found)...done.
> Loaded symbols for /usr/lib/gconv/EUC-CN.so
> Reading symbols from /usr/lib/gconv/libGB.so...(no debugging symbols
> found)...done.
> Loaded symbols for /usr/lib/gconv/libGB.so
> Core was generated by `mutt -d2 -F /home/duyang/.muttrc.imap'.
> Program terminated with signal 11, Segmentation fault.
> #0  0x0808dd59 in ?? ()
> (gdb) q
> ----------------------------------------------------

New description:

 Hi,

 I have 2 accounts with the same IMAP server configured in one .muttrc. the
 2 accounts have the same common configurations. but one is ok, the other
 has a segmentation fault. it is very strange.

 what the differences I could tell between the 2 accounts is that, one's
 username has a '_', one not.

 I have tried to delete the last message read on the IMAP server before
 segmentation happened and I also tried to clean and disable header cache,
 but all take no effect.

 I really want to make it works, and I debug a lot but failed, so I put a
 bug here to try to find a solution.

 Log information attached below.
 2 .muttdebug file attached, one for working account, one for non-working
 account

 PS. the mutt version is 1.5.21, but it is not in the list, so I chose
 1.5.20.

 Thanks a lot!

 Best Regards
 Du Yang

 mutt -v
 ----------------------------------------
 {{{
 Mutt 1.5.21 (2010-09-15, Gentoo 1.5.21-r1)
 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.34-gentoo-r1 (i686)
 ncurses: ncurses 5.7.20081102 (compiled with 5.7)
 hcache backend: GDBM version 1.8.3. 10/15/2002 (built Feb 20 2009
 23:12:51)
 Compile options:
 -DOMAIN
 +DEBUG
 +HOMESPOOL  -USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  -USE_FCNTL
 +USE_FLOCK
 -USE_POP  -USE_NNTP  +USE_IMAP  -USE_SMTP
 -USE_SSL_OPENSSL  +USE_SSL_GNUTLS  -USE_SASL  -USE_GSS  +HAVE_GETADDRINFO
 -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
 -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
 SENDMAIL="/usr/sbin/sendmail"
 MAILPATH="Maildir"
 PKGDATADIR="/usr/share/mutt"
 SYSCONFDIR="/etc/mutt"
 EXECSHELL="/bin/sh"
 MIXMASTER="mixmaster"
 To contact the developers, please mail to <mutt-dev@xxxxxxxx>.
 To report a bug, please visit http://bugs.mutt.org/.

 dgc.subjrx
 fg.smarttime
 vvv.initials
 vvv.quote
 vvv.nntp
 patch-1.5.20hg.pdmef.progress.vl.2
 rr.compressed
 patch-1.5.4.lpr.collapse_flagged Lukas P. Ruf <lukas.ruf@xxxxxx>

 }}}
 core
 {{{
 ----------------------------------------------------GNU gdb (Gentoo 7.2
 p1) 7.2
 Copyright (C) 2010 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 "i686-pc-linux-gnu".
 For bug reporting instructions, please see:
 <http://bugs.gentoo.org/>...
 Reading symbols from /usr/bin/mutt...(no debugging symbols found)...done.
 [New Thread 5015]

 warning: Can't read pathname for load map: Input/output error.
 Reading symbols from /lib/libncursesw.so.5...(no debugging symbols
 found)...done.
 Loaded symbols for /lib/libncursesw.so.5
 Reading symbols from /usr/lib/libgnutls.so.26...(no debugging symbols
 found)...done.
 Loaded symbols for /usr/lib/libgnutls.so.26
 Reading symbols from /usr/lib/libgdbm.so.3...(no debugging symbols
 found)...done.
 Loaded symbols for /usr/lib/libgdbm.so.3
 Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
 Loaded symbols for /lib/libc.so.6
 Reading symbols from /lib/libdl.so.2...(no debugging symbols
 found)...done.
 Loaded symbols for /lib/libdl.so.2
 Reading symbols from /usr/lib/libtasn1.so.3...(no debugging symbols
 found)...done.
 Loaded symbols for /usr/lib/libtasn1.so.3
 Reading symbols from /lib/libz.so.1...(no debugging symbols found)...done.
 Loaded symbols for /lib/libz.so.1
 Reading symbols from /usr/lib/libgcrypt.so.11...(no debugging symbols
 found)...done.
 Loaded symbols for /usr/lib/libgcrypt.so.11
 Reading symbols from /lib/ld-linux.so.2...(no debugging symbols
 found)...done.
 Loaded symbols for /lib/ld-linux.so.2
 Reading symbols from /usr/lib/libgpg-error.so.0...(no debugging symbols
 found)...done.
 Loaded symbols for /usr/lib/libgpg-error.so.0
 Reading symbols from /lib/libnss_compat.so.2...(no debugging symbols
 found)...done.
 Loaded symbols for /lib/libnss_compat.so.2
 Reading symbols from /lib/libnsl.so.1...(no debugging symbols
 found)...done.
 Loaded symbols for /lib/libnsl.so.1
 Reading symbols from /lib/libnss_nis.so.2...(no debugging symbols
 found)...done.
 Loaded symbols for /lib/libnss_nis.so.2
 Reading symbols from /lib/libnss_files.so.2...(no debugging symbols
 found)...done.
 Loaded symbols for /lib/libnss_files.so.2
 Reading symbols from /lib/libnss_dns.so.2...(no debugging symbols
 found)...done.
 Loaded symbols for /lib/libnss_dns.so.2
 Reading symbols from /lib/libresolv.so.2...(no debugging symbols
 found)...done.
 Loaded symbols for /lib/libresolv.so.2
 Reading symbols from /usr/lib/gconv/GB18030.so...(no debugging symbols
 found)...done.
 Loaded symbols for /usr/lib/gconv/GB18030.so
 Reading symbols from /usr/lib/gconv/EUC-CN.so...(no debugging symbols
 found)...done.
 Loaded symbols for /usr/lib/gconv/EUC-CN.so
 Reading symbols from /usr/lib/gconv/libGB.so...(no debugging symbols
 found)...done.
 Loaded symbols for /usr/lib/gconv/libGB.so
 Core was generated by `mutt -d2 -F /home/duyang/.muttrc.imap'.
 Program terminated with signal 11, Segmentation fault.
 #0  0x0808dd59 in ?? ()
 (gdb) q
 ----------------------------------------------------
 }}}

--

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