Package: neomutt
Version: 20220429+dfsg1-4.1
Severity: normal

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

-- Package-specific info:
NeoMutt 20220429
Copyright (C) 1996-2022 Michael R. Elkins and others.
NeoMutt comes with ABSOLUTELY NO WARRANTY; for details type 'neomutt -vv'.
NeoMutt is free software, and you are welcome to redistribute it
under certain conditions; type 'neomutt -vv' for details.

System: Linux 6.5.0-4-amd64 (x86_64)
ncurses: ncurses 6.4.20231016 (compiled with 6.3.20220423)
libidn: 1.41 (compiled with 1.41)
GPGME: 1.18.0
GnuTLS: 3.7.8
libnotmuch: 5.6.0
storage: tokyocabinet

Configure options: --build=x86_64-linux-gnu --prefix=/usr 
{--includedir=${prefix}/include} {--mandir=${prefix}/share/man} 
{--infodir=${prefix}/share/info} --sysconfdir=/etc --localstatedir=/var 
--disable-option-checking --disable-silent-rules 
{--libdir=${prefix}/lib/x86_64-linux-gnu} --runstatedir=/run 
--disable-maintainer-mode --disable-dependency-tracking --mandir=/usr/share/man 
--libexecdir=/usr/libexec --with-mailpath=/var/mail --gpgme --lua --notmuch 
--with-ui --gsasl --gnutls --gss --idn --mixmaster --tokyocabinet --sqlite 
--autocrypt --pkgconf

Compilation CFLAGS: -g -O2 
-ffile-prefix-map=/build/neomutt-n0Dmud/neomutt-20220429+dfsg1=. 
-fstack-protector-strong -Wformat -Werror=format-security -std=c99 
-D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D__EXTENSIONS__ -I/usr/include/lua5.4 
-I/usr/include -DNCURSES_WIDECHAR -I/usr/include/p11-kit-1 -isystem 
/usr/include/mit-krb5

Default options:
  +attach_headers_color +compose_to_sender +compress +cond_date +debug 
  +encrypt_to_self +forgotten_attachments +forwref +ifdef +imap +index_color 
  +initials +limit_current_thread +multiple_fcc +nested_if +new_mail +nntp +pop 
  +progress +quasi_delete +regcomp +reply_with_xorig +sensible_browser +sidebar 
  +skip_quoted +smtp +status_color +timeout +tls_sni +trash 

Compile options:
  +autocrypt +fcntl -flock -fmemopen +futimens +getaddrinfo +gnutls +gpgme 
  +gsasl +gss +hcache -homespool +idn +inotify -locales_hack +lua +mixmaster 
  +nls +notmuch -openssl +pgp +regex -sasl +smime +sqlite +sun_attachment 

MAILPATH="/var/mail"
MIXMASTER="mixmaster"
PKGDATADIR="/usr/share/neomutt"
SENDMAIL="/usr/sbin/sendmail"
SYSCONFDIR="/etc"

To learn more about NeoMutt, visit: https://neomutt.org
If you find a bug in NeoMutt, please raise an issue at:
    https://github.com/neomutt/neomutt/issues
or send an email to: <neomutt-de...@neomutt.org>

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'testing'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-4-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages neomutt depends on:
ii  libc6             2.37-12
ii  libgnutls30       3.8.1-4+b1
ii  libgpg-error0     1.47-2
ii  libgpgme11        1.18.0-4
ii  libgsasl18        2.2.0-2
ii  libgssapi-krb5-2  1.20.1-5
ii  libidn12          1.41-1
ii  liblua5.4-0       5.4.6-1
ii  libncursesw6      6.4+20231016-1
ii  libnotmuch5       0.38.1-1
ii  libsqlite3-0      3.44.0-1
ii  libtinfo6         6.4+20231016-1
ii  libtokyocabinet9  1.4.48-15
ii  sensible-utils    0.0.20

Versions of packages neomutt recommends:
ii  locales  2.37-12
ii  mailcap  3.70+nmu1

Versions of packages neomutt suggests:
ii  aspell                                     0.60.8-6
ii  ca-certificates                            20230311
ii  exim4-daemon-light [mail-transport-agent]  4.97-1
ii  gnupg                                      2.2.40-1.1
ii  ispell                                     3.4.05-1
ii  mixmaster                                  3.0.0-10
ii  openssl                                    3.0.12-1
pn  urlview                                    <none>

Versions of packages neomutt is related to:
ii  neomutt  20220429+dfsg1-4.1

-- Configuration Files:
/etc/neomuttrc.d/gpg.rc changed [not included]

-- no debconf information

Attachment: signature.asc
Description: PGP signature

Reply via email to