Hello,
steps to reproduce:
1. open neomutt and compose a mail to someone
2. after the editor closes, select signing of the mail and hit send
3. enter the wrong password or cancel the signing
4. neomutt's send dialogue opens again
5. now, hit `f` to change the fcc field and enter something new
6. when hitting enter, neomutt crashes
This is the backtrace:
```
PID: 2093 (neomutt)
UID: 1000 (joerg)
GID: 1000 (joerg)
Signal: 11 (SEGV)
Timestamp: Thu 2023-11-09 07:29:04 CET (28s ago)
Command Line: /usr/bin/neomutt
Executable: /usr/bin/neomutt
Control Group: /user.slice/user-1000.slice/user@1000.service/session.slice/org.gnome.Shell@wayland.service
Unit: user@1000.service
User Unit: org.gnome.Shell@wayland.service
Slice: user-1000.slice
Owner UID: 1000 (joerg)
Boot ID: fe8f45791ffb41f89b0d9c8032028a98
Machine ID: 523cb54753234ed08c13ec497d0d3b64
Hostname: zenbook
Storage: /var/lib/systemd/coredump/core.neomutt.1000.fe8f45791ffb41f89b0d9c8032028a98.2093.1699511344000000.zst (present)
Size on Disk: 6.4M
Message: Process 2093 (neomutt) of user 1000 dumped core.
Downloading separate debug info for /usr/bin/neomutt...
[New LWP 2093]
Downloading separate debug info for /lib/x86_64-linux-gnu/libncursesw.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libsqlite3.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libnotmuch.so.5...
Downloading separate debug info for /lib/x86_64-linux-gnu/libgpgme.so.11...
Downloading separate debug info for /lib/x86_64-linux-gnu/libgsasl.so.18...
Downloading separate debug info for /lib/x86_64-linux-gnu/liblua5.4.so.0...
Downloading separate debug info for /home/joerg/.cache/debuginfod_client/97fdbe62499f5fc49a4177e431c55d6b363daa6c/debuginfo...
Downloading separate debug info for /lib/x86_64-linux-gnu/libgnutls.so.30...
Downloading separate debug info for /lib/x86_64-linux-gnu/libidn.so.12...
Downloading separate debug info for /lib/x86_64-linux-gnu/libtokyocabinet.so.9...
Downloading separate debug info for /lib/x86_64-linux-gnu/libgmime-3.0.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libtalloc.so.2...
Downloading separate debug info for /lib/x86_64-linux-gnu/libxapian.so.30...
Downloading separate debug info for /lib/x86_64-linux-gnu/libsexp.so.2...
Downloading separate debug info for /lib/x86_64-linux-gnu/libassuan.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libntlm.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libgssglue.so.1...
Downloading separate debug info for /lib/x86_64-linux-gnu/libp11-kit.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libidn2.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libunistring.so.5...
Downloading separate debug info for /lib/x86_64-linux-gnu/libtasn1.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libnettle.so.8...
Downloading separate debug info for /lib/x86_64-linux-gnu/libhogweed.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libgmp.so.10...
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/bin/neomutt'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 pattern_exec (pat=pat@entry=0x5795a62bac00, flags=flags@entry=0 '\000', m=m@entry=0x2074726f62413a71, e=e@entry=0x6320206f543a7420, msg=0x0, cache=cache@entry=0x7ffd05a71fb0) at ../pattern/exec.c:899
Download failed: Invalid argument. Continuing without source file ./obj-x86_64-linux-gnu/../pattern/exec.c.
899 ../pattern/exec.c: Inappropriate ioctl for device.
#0 pattern_exec (pat=pat@entry=0x5795a62bac00, flags=flags@entry=0 '\000', m=m@entry=0x2074726f62413a71, e=e@entry=0x6320206f543a7420, msg=0x0, cache=cache@entry=0x7ffd05a71fb0) at ../pattern/exec.c:899
__func__ = "pattern_exec"
#1 0x00005795a430b79c in mutt_pattern_exec (pat=0x5795a62bac00, flags=flags@entry=0 '\000', m=m@entry=0x2074726f62413a71, e=e@entry=0x6320206f543a7420, cache=cache@entry=0x7ffd05a71fb0) at ../pattern/exec.c:1116
needs_msg = <optimized out>
msg = 0x0
matched = <optimized out>
#2 0x00005795a4293415 in mutt_message_hook (m=0x2074726f62413a71, e=0x6320206f543a7420, type=type@entry=2048) at ../hook.c:646
hook = 0x5795a62bb320
cache = {list_all = 0, list_one = 0, sub_all = 0, sub_one = 0, pers_recip_all = 0, pers_recip_one = 0, pers_from_all = 0, pers_from_one = 0}
err = 0x5795a6214b90
__func__ = "mutt_message_hook"
#3 0x00005795a42f2a96 in compose_email_observer (nc=<optimized out>) at ../compose/compose.c:173
shared = <optimized out>
#4 0x00005795a4384699 in send (source=0x5795a673c6c0, current=0x5795a673c6c0, event_type=event_type@entry=NT_ENVELOPE, event_subtype=event_subtype@entry=3, event_data=event_data@entry=0x7ffd05a720b0) at ../mutt/notify.c:136
nc = {current = 0x5795a673c6c0, event_type = NT_ENVELOPE, event_subtype = 3, event_data = 0x7ffd05a720b0, global_data = 0x5795a72160c0}
o = 0x5795a6cfdac0
__func__ = "send"
np = 0x5795a6c00460
tmp = <optimized out>
#5 0x00005795a43848a9 in notify_send (notify=<optimized out>, event_type=event_type@entry=NT_ENVELOPE, event_subtype=event_subtype@entry=3, event_data=event_data@entry=0x7ffd05a720b0) at ../mutt/notify.c:175
__func__ = "notify_send"
#6 0x00005795a436f7b0 in mutt_env_notify_send (e=<optimized out>, type=type@entry=NT_ENVELOPE_FCC) at ../email/envelope.c:155
ev_e = {num_emails = 1, emails = 0x7ffd05a720a8}
#7 0x00005795a4315bf0 in op_envelope_edit_fcc (wdata=<optimized out>, op=<optimized out>) at ../envelope/functions.c:239
rc = -3
fname = 0x5795a6214fc0
#8 0x00005795a43162f7 in env_function_dispatcher (win=win@entry=0x5795a79f52f0, op=op@entry=247) at ../envelope/functions.c:570
wdata = <optimized out>
fn = <optimized out>
i = <optimized out>
rc = <optimized out>
result = <optimized out>
__func__ = "env_function_dispatcher"
#9 0x00005795a42f2fec in mutt_compose_menu (e=0x5795a79b9a60, fcc=fcc@entry=0x7ffd05a72270, flags=flags@entry=0 '\000', sub=sub@entry=0x5795a61ff400) at ../compose/compose.c:373
dlg = 0x5795a79f5250
shared = 0x5795a7c56000
menu = 0x5795a711d4c0
win_env = 0x5795a79f52f0
rc = <optimized out>
op = 247
__func__ = "mutt_compose_menu"
c_autocrypt = <optimized out>
#10 0x00005795a42e83a6 in mutt_send_message (flags=<optimized out>, flags@entry=0, e_templ=<optimized out>, e_templ@entry=0x0, tempfile=tempfile@entry=0x0, m=0x5795a62cd6d0, el=el@entry=0x0, sub=<optimized out>) at ../send/send.c:2732
fcc = {data = 0x5795a6cc6c30 "=mdir/default/", dptr = 0x5795a6cc6c3e "", dsize = 4096}
fp_tmp = 0x0
pbody = <optimized out>
i = <optimized out>
free_clear_content = <optimized out>
clear_content = 0x5795a79b9b70
pgpkeylist = 0x0
pgp_sign_as = 0x0
smime_sign_as = 0x0
tag = 0x0
err = 0x0
ctype = <optimized out>
finalpath = 0x0
en = <optimized out>
e_cur = 0x0
rc = <optimized out>
c_recall = <optimized out>
__func__ = "mutt_send_message"
c_reverse_name = <optimized out>
c_reply_with_xorig = <optimized out>
c_resume_draft_files = <optimized out>
c_copy = <optimized out>
c_abort_nosubject = <optimized out>
c_fcc_before_send = <optimized out>
#11 0x00005795a42b51de in op_mail (shared=<optimized out>, priv=0x5795a65cefa0, op=<optimized out>) at ../index/functions.c:750
rc = <optimized out>
#12 0x00005795a42ba01c in index_function_dispatcher (win=<optimized out>, op=op@entry=141) at ../index/functions.c:2838
fn = <optimized out>
i = <optimized out>
__func__ = "index_function_dispatcher"
priv = 0x5795a65cefa0
dlg = <optimized out>
rc = <optimized out>
result = <optimized out>
#13 0x00005795a42b3ac1 in mutt_index_menu (dlg=0x5795a62cf320, m_init=<optimized out>) at ../index/dlg_index.c:1297
c_arrow_cursor = false
c_braille_friendly = <optimized out>
index = <optimized out>
c_auto_tag = <optimized out>
shared = 0x5795a6200ac0
panel_index = <optimized out>
priv = 0x5795a65cefa0
op = 141
rc = <optimized out>
__func__ = "mutt_index_menu"
#14 0x00005795a427d5e2 in main (argc=1, argv=<optimized out>, envp=<optimized out>) at ../main.c:1374
dlg = 0x5795a62cf320
m = 0x5795a62c39c0
c_read_only = <optimized out>
subject = <optimized out>
include_file = <optimized out>
draft_file = <optimized out>
new_type = <optimized out>
dlevel = <optimized out>
dfile = <optimized out>
cli_nntp = <optimized out>
e = 0x0
attach = {stqh_first = 0x0, stqh_last = 0x7ffd05a72d10}
commands = {stqh_first = 0x0, stqh_last = 0x7ffd05a72d20}
queries = {stqh_first = 0x0, stqh_last = 0x7ffd05a72d30}
alias_queries = {stqh_first = 0x0, stqh_last = 0x7ffd05a72d40}
cc_list = {stqh_first = 0x0, stqh_last = 0x7ffd05a72d50}
bcc_list = {stqh_first = 0x0, stqh_last = 0x7ffd05a72d60}
sendflags = 0
flags = <optimized out>
version = <optimized out>
i = <optimized out>
explicit_folder = <optimized out>
dump_variables = <optimized out>
one_liner = <optimized out>
hide_sensitive = <optimized out>
batch_mode = <optimized out>
edit_infile = <optimized out>
double_dash = <optimized out>
nargc = <optimized out>
rc = 1
repeat_error = true
folder = {data = 0x5795a62ce3c0 "/home/joerg/Mail/mdir/default", dptr = 0x5795a62ce3dd "", dsize = 128}
expanded_infile = {data = 0x0, dptr = 0x0, dsize = 0}
tempfile = {data = 0x0, dptr = 0x0, dsize = 0}
cs = 0x5795a61fde30
__func__ = "main"
rc2 = 0
c_autocrypt = <optimized out>
c_folder = <optimized out>
--- END ---
```
Regards, Jörg