#977363 assertion crash when adding a new alias

Package:
neomutt
Source:
neomutt
Description:
command line mail reader based on Mutt, with added features
Submitter:
Eduard Bloch
Date:
2023-11-02 14:27:08 UTC
Severity:
important
Tags:
#977363#5
Date:
2020-12-14 11:59:01 UTC
From:
To:
Repro:

$ grep alias .muttrc
set alias_file=~/.mail_aliases	# where I keep my aliases
source ~/.mail_aliases
set reverse_alias		# attempt to look up my names for people

Open neomutt, navigate to some gmail address.
Press a, confirm the parts of the alias.
Confirm with Y.

Result:

neomutt crashes on some assertion, before asking for the target path
confirmation. See below.

Vanilla mutt does not crash.

Related stack:

Program terminated with signal SIGABRT, Aborted.
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: Datei oder Verzeichnis nicht gefunden.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007faa195d5537 in __GI_abort () at abort.c:79
#2  0x00007faa195d540f in __assert_fail_base
    (fmt=0x7faa183753ad "%s%s%s:%u: %s%sZusicherung »%s« nicht erfüllt.\n%n", assertion=0x5650afbecbeb "DTYPE(he->type) == DT_STRING", file=0x5650afbecac0 "../config/helpers.c", line=248, function=<optimized out>) at assert.c:92
#3  0x00007faa195e4602 in __GI___assert_fail
    (assertion=assertion@entry=0x5650afbecbeb "DTYPE(he->type) == DT_STRING", file=file@entry=0x5650afbecac0 "../config/helpers.c", line=line@entry=248, function=function@entry=0x5650afbecc10 <__PRETTY_FUNCTION__.0> "cs_subset_string")
    at assert.c:101
#4  0x00005650afba7536 in cs_subset_string (sub=sub@entry=0x5650b0b10420, name=name@entry=0x5650afbcbfb9 "alias_file") at ../config/helpers.c:248
#5  0x00005650afb8c00f in alias_create (al=<optimized out>, sub=0x5650b0b10420) at ../alias/alias.c:485
#6  0x00005650afb10570 in mutt_pager (banner=banner@entry=0x0, fname=<optimized out>, flags=flags@entry=66, extra=extra@entry=0x7ffd72dfbf00) at ../pager.c:3020
#7  0x00005650afad0def in mutt_display_message
    (win_index=win_index@entry=0x5650b1c18bb0, win_ibar=win_ibar@entry=0x5650b1c18c50, win_pager=win_pager@entry=0x5650b25a38b0, win_pbar=win_pbar@entry=0x5650b25a3950, m=<optimized out>, e=0x5650b1058f00) at ../commands.c:377
#8  0x00005650afaeb7f8 in mutt_index_menu (dlg=0x5650b1c18a70) at ../index.c:2579
#9  0x00005650afacb14a in main (argc=1, argv=0x7ffd72dff1c8, envp=<optimized out>) at ../main.c:1236

Best regards,
Eduard.

#977363#10
Date:
2021-09-12 19:05:12 UTC
From:
To:
Has this been solved with 20201127? I was not able to reproduce this
issue.