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.
Thanks,
Petr
cortex:~>gdb /usr/local/bin/mutt core
GNU gdb 4.18
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 "alpha-dec-osf4.0b"...
Core was generated by `mutt'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/shlib/libc.so...done.
#0 msg_search (ctx=0x0, rx=0x14005ba00, buf=0x11fffd8e0 "Ŕv\002@\001",
blen=256, op=1074270720, msgno=0) at pattern.c:137
137 pattern.c: No such file or directory.
(gdb) bt
#0 msg_search (ctx=0x0, rx=0x14005ba00, buf=0x11fffd8e0 "Ŕv\002@\001",
blen=256, op=1074270720, msgno=0) at pattern.c:137
#1 0x12005523c in mutt_pattern_exec (pat=0x140058ad0, flags=1074117120,
ctx=0x11fffd8e0, h=0x100) at pattern.c:831
#2 0x12003af68 in mutt_addr_hook (path=0x11fffdfa0 "", pathlen=255, type=8,
ctx=0x0, hdr=0x140081200) at hook.c:272
#3 0x12003b130 in mutt_select_fcc (path=0x11fffdfa0 "", pathlen=255, hdr=0x1f)
at hook.c:316
#4 0x120063b28 in ci_send_message (flags=0, msg=0x140081200,
tempfile=0x374ef9a5 <Address 0x374ef9a5 out of bounds>, ctx=0x140029e40,
cur=0x0) at send.c:1123
#5 0x120027ed0 in mutt_index_menu () at curs_main.c:1535
#6 0x12003ed70 in main (argc=3, argv=0x11fffee48) at main.c:680
cortex:~>mutt -v
Mutt 0.95.4i (1999-03-03)
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: OSF1 V4.0 [using ncurses 4.2]
Compile options:
-DOMAIN
-HOMESPOOL -USE_SETGID +USE_DOTLOCK +USE_FCNTL -USE_FLOCK
-USE_IMAP -USE_POP +HAVE_REGCOMP -USE_GNU_REGEX +HAVE_COLOR +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/local/bin/ispell"
_PGPPATH="/usr/local/bin/pgp"
_PGPV2PATH="/usr/local/bin/pgp"