On Fri, May 28, 1999 at 06:27:45PM -0400, Petr Hlustik wrote:
> Hello,
> 
> About two months ago I posted a message about Mutt crash (seg fault) when
> composing a message, after return from editor. The reason for crash was a
> bad fcc-send-hook that was meant to be just a save-hook:
> 
> fcc-save-hook '~h "Sender: [EMAIL PROTECTED]"' +dosemu
> 
> Well, I have finally been able to go back, recreate the core dump and run
> gdb on the core. Although this problem may be specific for Digital Unix, I
> share the debugger output below.

I just sent a post to mutt-dev about what seems to be a similar problem.
It seems to core when a fcc-save-hook matches using "~h".

David

-- 
   David Shaw  |  [EMAIL PROTECTED]  |  WWW http://www.jabberwocky.com/
+---------------------------------------------------------------------------+
   "There are two major products that come out of Berkeley: LSD and UNIX.
      We don't believe this to be a coincidence." - Jeremy S. Anderson


Hi all,

While doing some experimenting with news "mailboxes", I found a way to
make mutt 0.95.5i segfault.

Minimal muttrc, mutt -v, and stack backtrace attached below.

To duplicate it, just send any mail after changing to the
'sci.space.history' folder.  When you close the editor to get to the
compose menu, mutt segfaults.

David

-- 
   David Shaw  |  [EMAIL PROTECTED]  |  WWW http://www.jabberwocky.com/
+---------------------------------------------------------------------------+
   "There are two major products that come out of Berkeley: LSD and UNIX.
      We don't believe this to be a coincidence." - Jeremy S. Anderson
folder-hook sci.space.history "my_hdr Newsgroups: sci.space.history"
fcc-save-hook '~h Newsgroups' =News/%B
Mutt 0.95.5i (1999-04-23)
Copyright (C) 1996-8 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.0.36 [using slang 9938]
Compile options:
-DOMAIN
-HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +USE_FCNTL  -USE_FLOCK
+USE_IMAP  +USE_POP  +HAVE_REGCOMP  -USE_GNU_REGEX  +HAVE_COLOR  +HAVE_PGP5  
++HAVE_PGP2  +BUFFY_SIZE 
-EXACT_ADDRESS  +ENABLE_NLS
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/spool/mail"
SHAREDIR="/usr/local/share/mutt"
SYSCONFDIR="/usr/local/etc"
ISPELL="/usr/bin/ispell"
_PGPPATH="/usr/local/bin/pgp"
_PGPV2PATH="/usr/local/bin/pgp"
_PGPV3PATH="/usr/local/bin/pgp"
To contact the developers, please mail to <[EMAIL PROTECTED]>.

GNU gdb 4.17.0.4 with Linux/x86 hardware watchpoint and FPU support
Copyright 1998 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-redhat-linux"...
Core was generated by `mutt-0.95.5/mutt -F muttrc.test'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libnsl.so.1...done.
Reading symbols from /usr/lib/libslang.so.0...done.
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /lib/libnss_files.so.1...done.
#0  msg_search (ctx=0x0, rx=0x80b25e0, buf=0xbfffe448 "`#\b@@�\a@\006", 
    blen=256, op=31, msgno=0) at pattern.c:137
137       HEADER *h = ctx->hdrs[msgno];
(gdb) bt
#0  msg_search (ctx=0x0, rx=0x80b25e0, buf=0xbfffe448 "`#\b@@�\a@\006", 
    blen=256, op=31, msgno=0) at pattern.c:137
#1  0x8078194 in mutt_pattern_exec (pat=0x80b25c0, flags=0, ctx=0x0, 
    h=0x80b6398) at pattern.c:831
#2  0x8067393 in mutt_addr_hook (path=0xbfffe798 "", pathlen=255, type=8, 
    ctx=0x0, hdr=0x80b6398) at hook.c:272
#3  0x80674a4 in mutt_select_fcc (path=0xbfffe798 "", pathlen=255, 
    hdr=0x80b6398) at hook.c:316
#4  0x80810c6 in ci_send_message (flags=1, msg=0x80b6398, tempfile=0x0, 
    ctx=0x80b2038, cur=0x80b6130) at send.c:1123
#5  0x805ba74 in mutt_index_menu () at curs_main.c:1612
#6  0x8069935 in main (argc=3, argv=0xbffff93c) at main.c:680
(gdb) 


Reply via email to