Saturday, November 02, 2019

neomutt-20191025p0 dumps core on alias -group command

Latest neomutt dumps core when assigning aliases to groups; this is
independent of the user configuration:

$ sysctl -n kern.version
OpenBSD 6.6-current (GENERIC.MP) #424: Fri Nov 1 14:12:12 MDT 2019
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

$ cd /usr/ports/mail/neomutt
$ make show=FULLPKGNAME
mutt-20191025p0
$ make DEBUG='-g3 -O0'

$ $(make show=WRKBUILD)/neomutt -e 'alias -group foo bar baz' -F /dev/null -A foo
GNU gdb 6.3
Copyright 2004 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 "amd64-unknown-openbsd6.6"...
Core was generated by `neomutt'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libpthread.so.26.1...done.
Loaded symbols for /usr/lib/libpthread.so.26.1
Loaded symbols for /usr/ports/pobj/neomutt-20191025/build-amd64/neomutt
Reading symbols from /usr/local/lib/libkyotocabinet.so.0.0...done.
Loaded symbols for /usr/local/lib/libkyotocabinet.so.0.0
Reading symbols from /usr/local/lib/libidn2.so.1.0...done.
Loaded symbols for /usr/local/lib/libidn2.so.1.0
Reading symbols from /usr/lib/libz.so.5.0...done.
Loaded symbols for /usr/lib/libz.so.5.0
Reading symbols from /usr/lib/libssl.so.48.0...done.
Loaded symbols for /usr/lib/libssl.so.48.0
Reading symbols from /usr/lib/libcrypto.so.46.0...done.
Loaded symbols for /usr/lib/libcrypto.so.46.0
Reading symbols from /usr/lib/libcurses.so.14.0...done.
Loaded symbols for /usr/lib/libcurses.so.14.0
Reading symbols from /usr/local/lib/libintl.so.6.0...done.
Loaded symbols for /usr/local/lib/libintl.so.6.0
Reading symbols from /usr/local/lib/libiconv.so.7.0...done.
Loaded symbols for /usr/local/lib/libiconv.so.7.0
Reading symbols from /usr/lib/libc.so.96.0...done.
Loaded symbols for /usr/lib/libc.so.96.0
Reading symbols from /usr/lib/libc++.so.3.0...done.
Loaded symbols for /usr/lib/libc++.so.3.0
Reading symbols from /usr/lib/libc++abi.so.1.0...done.
Loaded symbols for /usr/lib/libc++abi.so.1.0
Symbols already loaded for /usr/lib/libpthread.so.26.1
Reading symbols from /usr/lib/libm.so.10.1...done.
Loaded symbols for /usr/lib/libm.so.10.1
Reading symbols from /usr/local/lib/libunistring.so.0.1...done.
Loaded symbols for /usr/local/lib/libunistring.so.0.1
Reading symbols from /usr/libexec/ld.so...Error while reading shared library symbols:
Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/libexec/ld.so]
#0 0x00000399634b199a in mutt_addrlist_append (al=0x39bf3219f00, a=0x39bdaa9a040) at ../neomutt-2019-10-25/address/address.c:1404
1404 TAILQ_INSERT_TAIL(al, a, entries);
(gdb) bt
#0 0x00000399634b199a in mutt_addrlist_append (al=0x39bf3219f00, a=0x39bdaa9a040) at ../neomutt-2019-10-25/address/address.c:1404
#1 0x00000399634b493c in group_add_addrlist (g=0x39bf3219f00, al=0x39c1f7280c8) at ../neomutt-2019-10-25/address/group.c:189
#2 0x00000399634b4846 in mutt_grouplist_add_addrlist (gl=0x7f7ffffc94b8, al=0x39c1f7280c8) at ../neomutt-2019-10-25/address/group.c:233
#3 0x00000399633c1b17 in parse_alias (buf=0x39c5dc38300, s=0x7f7ffffc9558, data=0, err=0x39c5dc383e0) at ../neomutt-2019-10-25/init.c:953
#4 0x00000399633c9738 in mutt_parse_rc_line (line=0x39be46adfe0 "alias -group foo bar baz", token=0x39c5dc38300, err=0x39c5dc383e0) at ../neomutt-2019-10-25/init.c:3257
#5 0x00000399633c90e7 in execute_commands (p=0x7f7ffffcb440) at ../neomutt-2019-10-25/init.c:291
#6 0x00000399633c838f in mutt_init (skip_sys_rc=false, commands=0x7f7ffffcb440) at ../neomutt-2019-10-25/init.c:3170
#7 0x00000399633d303c in main (argc=1, argv=0x7f7ffffcb538, envp=0x7f7ffffcb578) at ../neomutt-2019-10-25/main.c:726
Current language: auto; currently minimal
(gdb)

No comments:

Post a Comment