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

[Mutt] #3447: mutt segfaults after subject search



#3447: mutt segfaults after subject search
---------------------+------------------------------------------------------
 Reporter:  daniell  |       Owner:  mutt-dev
     Type:  defect   |      Status:  new     
 Priority:  major    |   Milestone:          
Component:  mutt     |     Version:  1.5.20  
 Keywords:           |  
---------------------+------------------------------------------------------
 1. press '/' (search)[[BR]]
 2. enter the search pattern: ~s test pattern[[BR]]
 3. "Compiling search pattern..." -> "error in pattern at: pattern"[[BR]]
 4. press 'n' (search next)[[BR]]
 5. Segmentation fault (core dumped)[[BR]]
 {{{
 $ gdb /usr/local/bin/mutt /home/daniell/mutt.core
 GNU gdb 6.3
 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 "i386-unknown-openbsd4.8"...
 Core was generated by `mutt'.
 Program terminated with signal 11, Segmentation fault.
 Reading symbols from /usr/local/lib/libswmhack.so.0.0...done.
 Loaded symbols for /usr/local/lib/libswmhack.so.0.0
 Reading symbols from /usr/lib/libncurses.so.11.0...done.
 Loaded symbols for /usr/lib/libncurses.so.11.0
 Reading symbols from /usr/lib/libgssapi.so.5.0...done.
 Loaded symbols for /usr/lib/libgssapi.so.5.0
 Reading symbols from /usr/lib/libkrb5.so.18.0...done.
 Loaded symbols for /usr/lib/libkrb5.so.18.0
 Reading symbols from /usr/lib/libdes.so.9.0...done.
 Loaded symbols for /usr/lib/libdes.so.9.0
 Reading symbols from /usr/lib/libcrypto.so.18.0...done.
 Loaded symbols for /usr/lib/libcrypto.so.18.0
 Reading symbols from /usr/lib/libssl.so.15.1...done.
 Loaded symbols for /usr/lib/libssl.so.15.1
 Reading symbols from /usr/lib/libz.so.4.1...done.
 Loaded symbols for /usr/lib/libz.so.4.1
 Reading symbols from /usr/local/lib/libsasl2.so.2.22...done.
 Loaded symbols for /usr/local/lib/libsasl2.so.2.22
 Reading symbols from /usr/local/lib/libqdbm.so.14.13...done.
 Loaded symbols for /usr/local/lib/libqdbm.so.14.13
 Reading symbols from /usr/local/lib/libintl.so.5.0...done.
 Loaded symbols for /usr/local/lib/libintl.so.5.0
 Reading symbols from /usr/local/lib/libiconv.so.6.0...done.
 Loaded symbols for /usr/local/lib/libiconv.so.6.0
 Reading symbols from /usr/lib/libc.so.56.0...done.
 Loaded symbols for /usr/lib/libc.so.56.0
 Reading symbols from /usr/libexec/ld.so...done.
 Loaded symbols for /usr/libexec/ld.so
 Reading symbols from /usr/local/lib/sasl2/libanonymous.so.2.22...done.
 Loaded symbols for /usr/local/lib/sasl2/libanonymous.so.2.22
 Reading symbols from /usr/local/lib/sasl2/libcrammd5.so.2.22...done.
 Loaded symbols for /usr/local/lib/sasl2/libcrammd5.so.2.22
 Reading symbols from /usr/local/lib/sasl2/libdigestmd5.so.2.22...done.
 Loaded symbols for /usr/local/lib/sasl2/libdigestmd5.so.2.22
 Reading symbols from /usr/local/lib/sasl2/libgssapiv2.so.2.22...done.
 Loaded symbols for /usr/local/lib/sasl2/libgssapiv2.so.2.22
 Reading symbols from /usr/local/lib/sasl2/liblogin.so.2.22...done.
 Loaded symbols for /usr/local/lib/sasl2/liblogin.so.2.22
 Reading symbols from /usr/local/lib/sasl2/libntlm.so.2.22...done.
 Loaded symbols for /usr/local/lib/sasl2/libntlm.so.2.22
 Reading symbols from /usr/local/lib/sasl2/libotp.so.2.22...done.
 Loaded symbols for /usr/local/lib/sasl2/libotp.so.2.22
 Reading symbols from /usr/local/lib/sasl2/libplain.so.2.22...done.
 Loaded symbols for /usr/local/lib/sasl2/libplain.so.2.22
 Reading symbols from /usr/local/lib/sasl2/libsasldb.so.2.22...done.
 Loaded symbols for /usr/local/lib/sasl2/libsasldb.so.2.22
 Reading symbols from /usr/local/lib/libdb.so.5.0...done.
 Loaded symbols for /usr/local/lib/libdb.so.5.0
 #0  mutt_pattern_exec (pat=0x0, flags=M_MATCH_FULL_ADDRESS,
 ctx=0x84029280, h=0x80c65d80) at pattern.c:1084
 1084      switch (pat->op)
 (gdb) bt full
 #0  mutt_pattern_exec (pat=0x0, flags=M_MATCH_FULL_ADDRESS,
 ctx=0x84029280, h=0x80c65d80) at pattern.c:1084
 No locals.
 #1  0x1c050e8a in mutt_search_command (cur=0, op=155) at pattern.c:1500
         i = 1
         j = 0
         buf =
 
"\001\000\000\000\002\000\000\000pattern\000\000\000\000\000\001\000\001\000\000\000\000\000\000\000\000\000\205_rLÃ\210\000\
 000\204\a:
 
\200\000Ã\211\000ÂÃ\200Ã.ÂÃnx:\000\000ÂÃ\200\003\000\000\000\230:\000\000\000\000\000\000Ix:\000\204\a:
 Â/ÂÃn{:\000\000\000\000\
 
000\020/ÂÃ\001\000\000\000\000\000\000\000\020/ÂÃ\000\000\000\000Ã/ÂÃ\200\000Ã\211n\000\000\000\000\000\000\000Ã\003\000\000\204\a:
 n\000\0
 00\000PÃ9
 
h/ÂÃ\000ÂÃ\204\000\000Ã\212\000\000\000\000Ã\a\000\000\000\000\000\000Ã/ÂÃ\000\000\000\000\000ÂÃ\204Â+r\002\001\000\000\000\020Ã3
 ~\006\000\000\000"...
         temp = '\0' <repeats 64 times>, "ÃÃÃÃ>\017s\021\204\a: `Ã9
 \200[Ã\200\200[Ã\200#\032<\000\002\001Ã\211@\000\000\000\200[Ã\200\002",
  '\0' <repeats 27 times>, "<*ÂÃ(Ã9
 
\001\000\000\000`*ÂÃ\b\000\000\000Ãlr\201\000\000\000\000\000\000\000\000\002\000\000\000\000\000\000\00
 0\200[Ã\200\201[Ã\200\000\000\000\000\002", '\0' <repeats 51 times>,
 "\003\000\000\000Ãlr\201\230*ÂÃ<Ã;\000;+ÂÃÃlr\201Ã\001\000\000\204\a:
 \033\000\000\000\001\000\000\000H-
 
ÂÃÃÃ;\000\030+ÂÃÃlr\201\000\002\000\000\000\000\000\000\000\000\0003\000\000\000\000(+ÂÃ"...
         error =
 
"erro\000\000\000\000\000\000\000\000Ã\001\000\000Ã\001\000\000\033[1;3H\000n\000\000\000\000\005\000\000\000@@\200
 8PT\201
 ÃÂÃ\205\002\000\000\000pUT\201\004\200i\"ÃÃ\001<@\031\210\207Ã-ÂÃÂÃp\002Ã-
 ÂÃ\000\000\000\000\000\000\000\000ÂÃp\002Ã-ÂÃ\000\000\000\000\205
 
_rLÃ\210\000\000\000\000\000\000\000\000\000\000\0300ÂÃqÃ\000\034\000\000\000\000\000\000\000\000(0ÂÃqÃ\000\034",
 '\0' <repeats 28 times>,
 "q\203:\000D.ÂÃ", '\0' <repeats 16 times>, "\206_rLÂÃ\001\000\204\a:
 \230:\000\000\001\000\000\000Â.ÂÃ\231\204:\000\224.ÂÃ"...
         err = {data = 0x0, dptr = 0x0, dsize = 0, destroy = 0}
         incr = 1
         h = (HEADER *) 0x80c65d80
         progress = {inc = 10, flags = 2, msg = 0x3c00d23a "Searching...",
 pos = 0, size = 31, timestamp = 0,
   sizestr = "31", '\0' <repeats 125 times>}
         msg = 0x0
 #2  0x1c01cba0 in mutt_index_menu () at curs_main.c:909
         check = Variable "check" is not available.
 (gdb) quit
 }}}

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