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

[Mutt] #3195: mutt-1.5.19: The crash of mutt's pager on messages with quoted text.



#3195: mutt-1.5.19: The crash of mutt's pager on messages with quoted
        text.
--------------------------------------------+-------------------------------
  Reporter:  Andrey Ignatov <rdna@xxxxxxx>  |       Owner:  mutt-dev
      Type:  defect                         |      Status:  new     
  Priority:  major                          |   Milestone:          
 Component:  mutt                           |     Version:          
Resolution:  fixed                          |    Keywords:          
--------------------------------------------+-------------------------------
 {{{
 Package: mutt
 Version: 1.5.19
 Severity: important

 -- Please type your report below this line

 Hi;

 The mutt had crashed when I try open any messages with the quoted text
 like:



 However mutt work's normally on messages without quoted text.


 -- System Information
 System Version: FreeBSD rdna.yandex.ru 7.1-PRERELEASE FreeBSD
 7.1-PRERELEASE #2: Mon Feb  9 15:40:24 MSK 2009
 root@xxxxxxxxxxxxxx:/usr/obj/usr/src/sys/RDNA  amd64

 -- 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 -I/usr/local/include
 Using built-in specs.
 Target: amd64-undermydesk-freebsd
 Configured with: FreeBSD/amd64 system compiler
 Thread model: posix
 gcc version 4.2.1 20070719  [FreeBSD]

 - CFLAGS
 -pipe -g

 -- Mutt Version Information

 Mutt 1.5.19 (2009-01-05)
 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: FreeBSD 7.1-PRERELEASE (amd64)
 ncurses: ncurses 5.6.20080503 (compiled with 5.6)
 libiconv: 1.11
 libidn: 1.9 (compiled with 1.9)
 hcache backend: Berkeley DB 4.6.21: (September 27, 2007)
 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  +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="/var/mail"
 PKGDATADIR="/usr/local/share/mutt"
 SYSCONFDIR="/usr/local/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/.

 patch-1.5.17.sidebar.20080412
 patch-1.5.7.ust.maildir-mtime.2
 vvv.quote
 patch-1.5.0.ats.date_conditional.1
 dgc.deepif.1
 vvv.initials
 rr.compressed
 patch-1.5.4.cd.ifdef.1

 -- Core Dump Analysis Output

 GNU gdb 6.1.1 [FreeBSD]
 Copyright 2004 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you
 are
 welcome to change it and/or distribute copies of it under certain
 conditions.
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for
 details.
 This GDB was configured as "amd64-marcel-freebsd"...
 Core was generated by `mutt'.
 Program terminated with signal 11, Segmentation fault.
 Reading symbols from /lib/libncursesw.so.7...done.
 Loaded symbols for /lib/libncursesw.so.7
 Reading symbols from /usr/lib/libgssapi.so.9...done.
 Loaded symbols for /usr/lib/libgssapi.so.9
 Reading symbols from /usr/lib/libkrb5.so.9...done.
 Loaded symbols for /usr/lib/libkrb5.so.9
 Reading symbols from /usr/lib/libasn1.so.9...done.
 Loaded symbols for /usr/lib/libasn1.so.9
 Reading symbols from /lib/libcrypto.so.5...done.
 Loaded symbols for /lib/libcrypto.so.5
 Reading symbols from /usr/lib/libroken.so.9...done.
 Loaded symbols for /usr/lib/libroken.so.9
 Reading symbols from /lib/libcrypt.so.4...done.
 Loaded symbols for /lib/libcrypt.so.4
 Reading symbols from /usr/lib/libcom_err.so.4...done.
 Loaded symbols for /usr/lib/libcom_err.so.4
 Reading symbols from /usr/lib/libssl.so.5...done.
 Loaded symbols for /usr/lib/libssl.so.5
 Reading symbols from /lib/libz.so.4...done.
 Loaded symbols for /lib/libz.so.4
 Reading symbols from /usr/local/lib/libintl.so.8...done.
 Loaded symbols for /usr/local/lib/libintl.so.8
 Reading symbols from /usr/local/lib/libiconv.so.3...done.
 Loaded symbols for /usr/local/lib/libiconv.so.3
 Reading symbols from /usr/local/lib/libidn.so.16...done.
 Loaded symbols for /usr/local/lib/libidn.so.16
 Reading symbols from /usr/local/lib/libdb-4.6.so.0...done.
 Loaded symbols for /usr/local/lib/libdb-4.6.so.0
 Reading symbols from /lib/libc.so.7...done.
 Loaded symbols for /lib/libc.so.7
 Reading symbols from /lib/libthr.so.3...done.
 Loaded symbols for /lib/libthr.so.3
 Reading symbols from /libexec/ld-elf.so.1...done.
 Loaded symbols for /libexec/ld-elf.so.1
 #0  0x0000000000457b62 in classify_quote (QuoteList=0x7fffffffc548,
 qptr=0x7fffffffbb40 "> Now, after upgrading PAM modules (pam_unix.so,
 pam_stack.so..) and\n", length=1,
     force_redraw=0x7fffffffc540, q_level=0x7fffffffc544) at pager.c:406
 406           *QuoteList = class;
 [New Thread 0x602180 (LWP 100090)]
 #0  0x0000000000457b62 in classify_quote (QuoteList=0x7fffffffc548,
 qptr=0x7fffffffbb40 "> Now, after upgrading PAM modules (pam_unix.so,
 pam_stack.so..) and\n", length=1,
     force_redraw=0x7fffffffc540, q_level=0x7fffffffc544) at pager.c:406
 #1  0x0000000000458953 in resolve_types (buf=0x7fffffffbb40 "> Now, after
 upgrading PAM modules (pam_unix.so, pam_stack.so..) and\n",
     raw=0x7fffffffbf40 "> Now, after upgrading PAM modules (pam_unix.so,
 pam_stack.so..) and\n", lineInfo=0x948000, n=8, last=9,
 QuoteList=0x7fffffffc548,
     q_level=0x7fffffffc544, force_redraw=0x7fffffffc540, q_classify=2) at
 pager.c:803
 #2  0x000000000045a30a in display_line (f=0x801c78680,
 last_pos=0x7fffffffc530, lineInfo=0x7fffffffc550, n=8,
 last=0x7fffffffc558, max=0x7fffffffc55c, flags=66,
     QuoteList=0x7fffffffc548, q_level=0x7fffffffc544,
 force_redraw=0x7fffffffc540, SearchRE=0x7fffffffc490) at pager.c:1278
 #3  0x000000000045bd2d in mutt_pager (banner=0x0, fname=0x7fffffffd0e0
 "/tmp/mutt-rdna-hF2cgNWO-00001", flags=66, extra=0x7fffffffcc80) at
 pager.c:1718
 #4  0x0000000000416e38 in mutt_display_message (cur=0x98f110) at
 commands.c:214
 #5  0x0000000000426195 in mutt_index_menu () at curs_main.c:1199
 #6  0x0000000000447fb1 in main (argc=1, argv=0x7fffffffe598) at
 main.c:1022
 1022    #endif
 1023    #ifdef USE_SASL
 1024        mutt_sasl_done ();
 1025    #endif
 1026        mutt_free_opts ();
 1027        mutt_endwin (Errorbuf);
 1028      }
 1029
 1030      exit (0);
 1031    }


 --- Begin /home/rdna/.mutt/muttrc
 set spoolfile=imaps://imap.gmail.com/INBOX
 set folder=imaps://imap.gmail.com/
 set imap_user=rdna@xxxxxxx
 set imap_pass="pass"
 set imap_delim_chars="/"
 set imap_authenticators=LOGIN
 set imap_passive=no
 set imap_check_subscribed
 set timeout=10
 set certificate_file=~/.mutt/certs
 set header_cache=~/.mutt/cache/header
 set message_cachedir=~/.mutt/cache/message
 set from=rdna@xxxxxxx
 set record="=[Gmail]/Отправленные"
 set postponed="=[Gmail]/Черновики"
 set sendmail="/usr/local/bin/msmtp"
 set use_from=yes
 set realname="Andrey Ignatov"
 set signature="~/.signature"
 set use_envelope_from
 set autoedit                    # go to the editor right away when
 composing
 set allow_8bit                  # never do Q-P encoding on legal 8-bit
 chars
 set charset="koi8-r"            # character set for your terminal
 set send_charset="koi8-r"
 set edit_headers                # let me edit the message header when
 composing
 set include                     # always include messages when replying
 set reply_to                    # always use reply-to if present
 set noprompt_after              # ask me for a command after the external
 pager exits
 set mime_forward                # use message/rfc822 type to forward
 messages
 set quote_regexp="^ *[a-zA-Z]*[>#]"     # how to catch quoted text
 set attribution = "%n <%a> [%(%F %R)]:"
 set reverse_name                # use my address as it appears in the
 message
 set tilde                       # virtual lines to pad blank lines in the
 pager
 set visual=vim                  # editor invoked by ~v in the builtin
 editor
 set write_inc=25                # show progress while writing mailboxes
 set read_inc=25                 # show progress when reading a mailbox
 set use_domain=no               # don't qualify local addresses with
 $domain
 set copy=yes                    # always save a copy of outgoing messages
 set delete=yes                  # purge deleted messages without asking
 set move=no                     # don't ask about moving messages, just do
 it
 set noconfirmappend             # don't ask me if i want to append to
 mailboxes
 set nosave_empty                # remove files when no messages are left
 set index_format="%4C %Z %{%d.%m %H:%M} @%-15.15B %-20.20F (%4c) %s" #
 format of the index
 set folder_format="%2C %4N    %f"
 set sort=threads                # primary sorting method
 set sort_browser=reverse-date   # how to sort files in the dir browser
 set pager_index_lines=6         # how many index lines to show in the
 pager
 set pager_stop                  # don't move to the next message on next-
 page
 set auto_tag                    # always operate on tagged messages
 set nomark_old                  # i don't care about whether a message is
 old
 unset help
 set mail_check=10               # how often to poll for new mail
 set print_command=/bin/false    # how to print things (I like to save
 trees)
 set sidebar_visible=no
 set sidebar_width=40
 set sidebar_delim=" "
 ignore *
 unignore from: subject to cc bcc date user-agent x-mailer
 unhdr_order *
 hdr_order date from subject to cc
 set mailcap_path="~/.mailcap"
 auto_view text/html text/x-vcard text/calendar
 alternative_order text/plain text/html text/*
 bind index \Cr imap-fetch-mail
 bind index \Cp sidebar-prev
 bind index \Cn sidebar-next
 bind index \Cb sidebar-open
 bind pager \Cp sidebar-prev
 bind pager \Cn sidebar-next
 bind pager \Cb sidebar-open
 macro generic,index '[11~' "!less -r
 /usr/local/share/doc/mutt/manual.txt\n"   "Show manual"           # F1
 macro generic,index,pager B ":toggle sidebar_visible\n"         "Toggle
 Sidebar"
 macro index '[12~' ":exec limit\n~f monitor@\n"        "Limit messages by
 pattern 'From: monitor@'"    # F2
 macro index '[13~' ":exec limit\n~t root-robot@\n"     "Limit messages by
 pattern 'To: root-robot@'"   # F3
 color indicator brightyellow red
 color error brightred default
 color status yellow blue
 color tree blue default         # the thread tree in the index menu
 color message brightcyan default
 color markers brightcyan default
 color hdrdefault red default
 color header brightred default ^(From|Subject):
 color body green default "(ftp|http|https)://[^ ]+"     # point out URLs
 color body green default [-a-z_0-9.]+@[-a-z_0-9.]+      # e-mail addresses
 color signature red default
 color attachment blue default
 color tilde blue default
 color search white blue         # how to hilite search patterns in the
 pager
 color quoted brightblack default
 color underline brightgreen default
 color index green default "~p"
 color index brightblue default "~T"
 color index brightred default "~D"
 color sidebar_new green default
 mono quoted bold
 set smime_is_default
 set smime_timeout=300
 set crypt_autosign = no
 set crypt_replyencrypt = no
 set crypt_replysign = no
 set crypt_replysignencrypted = no
 set crypt_verify_sig = yes
 set smime_default_key="16dbe4ab.0"
 set smime_ca_location="/usr/local/share/certs/ca-root-nss.crt"
 set smime_certificates="~/.mutt/smime/certificates"
 set smime_keys="~/.mutt/smime/keys"
 set smime_pk7out_command="openssl smime -verify -in %f -noverify -pk7out"
 set smime_get_cert_command="openssl pkcs7 -print_certs -in %f"
 set smime_get_signer_cert_command="openssl smime -verify -in %f -noverify
 -signer %c -out /dev/null"
 set smime_get_cert_email_command="openssl x509 -in  %f -noout -email"
 set smime_import_cert_command="smime_keys add_cert %f"
 set smime_encrypt_with="des3"
 set smime_encrypt_command="openssl smime -encrypt -%a -outform DER -in %f
 %c"
 set smime_sign_command="openssl smime -sign -signer %c -inkey %k -passin
 stdin -in %f -certfile %i -outform DER"
 set smime_decrypt_command="openssl smime -decrypt  -passin stdin -inform
 DER -in %f -inkey %k -recip %c"
 set smime_verify_command="openssl smime -verify -inform DER -in %s %C
 -content %f"
 set smime_verify_opaque_command="\
 openssl smime -verify -inform DER -in %s %C || \
 openssl smime -verify -inform DER -in %s -noverify 2>/dev/null"
 --- End /home/rdna/.mutt/muttrc


 --- Begin /usr/local/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/local/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
 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
 set followup_to=no
 --- End /usr/local/etc/Muttrc
 }}}

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