[Mutt] #3314: segfault when searching "~b something="
#3314: segfault when searching "~b something="
----------------------+-----------------------------------------------------
Reporter: barsnick | Owner: mutt-dev
Type: defect | Status: new
Priority: major | Milestone: 1.6
Component: mutt | Version: 1.5.20
Keywords: |
----------------------+-----------------------------------------------------
When I initiate a search (<search> = '/') for a pattern such as "~b
something=", I first get no match at all. Then, when I press <search-next>
= 'n', mutt segfaults.
Reproduced on 1.5.20 and tip/HEAD, 100% (i.e. with any mailbox, with any
pattern for body search having a fixed string with a '=' at the end).
Backtrace from tip/HEAD:
{{{
(gdb) bt
#0 0x080a2374 in mutt_pattern_exec (pat=0x0, flags=M_MATCH_FULL_ADDRESS,
ctx=0x813b980, h=0x813ca80) at pattern.c:1085
#1 0x080a414d in mutt_search_command (cur=0, op=155) at pattern.c:1501
#2 0x080660a2 in mutt_index_menu () at curs_main.c:909
#3 0x08086656 in main (argc=1, argv=0xbffff044) at main.c:1020
}}}
#0 is at the line
{{{
switch (pat->op)
}}}
and pat is 0, as seen in the backtrace.
The content of .muttdebug is meaningless.
{{{
barsnick@sunshine:/usr/local/new/tools/networking/mail/mutt/mutt-hg/mutt >
./mutt -v
Mutt 1.5.20 (2009-08-09)
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.27.29-170.2.78.fc10.i686 (i686)
ncurses: ncurses 5.6.20080927 (compiled with 5.6)
libidn: 0.6.14 (compiled with 0.6.14)
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/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/.
}}}
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3314>
Mutt <http://www.mutt.org/>
The Mutt mail user agent