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

Re: [Mutt] #3359: mutt-1.5.20: segfault when entering an imap



#3359: mutt-1.5.20: segfault when entering an imap folder using db4 and hcache
--------------------------------------------------+-------------------------
  Reporter:  Pedro Fortuny <pfortuny@â>           |       Owner:  mutt-dev      
      Type:  defect                               |      Status:  infoneeded_new
  Priority:  major                                |   Milestone:                
 Component:  mutt                                 |     Version:                
Resolution:  fixed                                |    Keywords:                
--------------------------------------------------+-------------------------
Changes (by brendan):

  * status:  new => infoneeded_new


Old description:

> {{{
> Package: mutt
> Version: 1.5.20
> Severity: important
>
> -- Please type your report below this line
> Works OK until I enter an imap folder: logs in OK, but when going to read
> the message headers, dumps a core. Seems db4 related....
>

> -- System Information
> System Version: NetBSD droog 5.0.1_PATCH NetBSD 5.0.1_PATCH (sdf) #1: Wed
> Nov 18 17:52:24 UTC 2009
> root@droog:/var/netbsd/sys/arch/alpha/compile/sdf alpha
>
> -- 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
> cc
> Using built-in specs.
> Target: alpha--netbsd
> Configured with: /usr/src/tools/gcc/../../gnu/dist/gcc4/configure
> --enable-long-long --disable-multilib --enable-threads --disable-symvers
> --build=x86_64-unknown-netbsd4.99.72 --host=alpha--netbsd --target=alpha
> --netbsd --enable-__cxa_atexit
> Thread model: posix
> gcc version 4.1.3 20080704 prerelease (NetBSD nb2 20081120)
>
> - CFLAGS
> -Wall -pedantic -Wno-long-long -O2 -mieee -DHAVE_WCHAR=1 -I/usr/include
> -I/usr/pkg/include/db4
>
> -- 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: NetBSD 5.0.1_PATCH (alpha)
> hcache backend: Berkeley DB 4.7.25: (May 15, 2008)
> 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/pkg/bin/ispell"
> SENDMAIL="/usr/sbin/sendmail"
> MAILPATH="/var/mail"
> PKGDATADIR="/usr/pkg/share/mutt"
> SYSCONFDIR="/usr/pkg/etc"
> 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 /usr/pkg/etc/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/pkg/share/doc/mutt/manual.txt<Enter>" "show Mutt documentation"
> macro index,pager y "<change-folder>?<toggle-mailboxes>" "show incoming
> mailboxes list"
> bind browser y exit
> set hostname=SDF-EU.ORG
> 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 /usr/pkg/etc/Muttrc
> }}}

New description:

 {{{
 Package: mutt
 Version: 1.5.20
 Severity: important

 -- Please type your report below this line
 Works OK until I enter an imap folder: logs in OK, but when going to read
 the message headers, dumps a core. Seems db4 related....


 -- System Information
 System Version: NetBSD droog 5.0.1_PATCH NetBSD 5.0.1_PATCH (sdf) #1: Wed
 Nov 18 17:52:24 UTC 2009
 root@droog:/var/netbsd/sys/arch/alpha/compile/sdf alpha

 -- 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
 cc
 Using built-in specs.
 Target: alpha--netbsd
 Configured with: /usr/src/tools/gcc/../../gnu/dist/gcc4/configure
 --enable-long-long --disable-multilib --enable-threads --disable-symvers
 --build=x86_64-unknown-netbsd4.99.72 --host=alpha--netbsd --target=alpha--
 netbsd --enable-__cxa_atexit
 Thread model: posix
 gcc version 4.1.3 20080704 prerelease (NetBSD nb2 20081120)

 - CFLAGS
 -Wall -pedantic -Wno-long-long -O2 -mieee -DHAVE_WCHAR=1 -I/usr/include
 -I/usr/pkg/include/db4

 -- 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: NetBSD 5.0.1_PATCH (alpha)
 hcache backend: Berkeley DB 4.7.25: (May 15, 2008)
 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/pkg/bin/ispell"
 SENDMAIL="/usr/sbin/sendmail"
 MAILPATH="/var/mail"
 PKGDATADIR="/usr/pkg/share/mutt"
 SYSCONFDIR="/usr/pkg/etc"
 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 /usr/pkg/etc/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/pkg/share/doc/mutt/manual.txt<Enter>" "show Mutt documentation"
 macro index,pager y "<change-folder>?<toggle-mailboxes>" "show incoming
 mailboxes list"
 bind browser y exit
 set hostname=SDF-EU.ORG
 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 /usr/pkg/etc/Muttrc
 }}}

--

Comment:

 Can you produce a backtrace (see DebugTips if you don't know how to do
 that)? Does this occur if you move your current header cache out of the
 way?

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