Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

segfault in mkundoent when completing

I'm seeing a fully reproducible segfault when completing, e.g. "ls
<TAB>" with zsh version 5.1.1, which is the version that comes with
Fedora 23.

Sourceforge won't let me file a ticket there, so sending it here.

Program received signal SIGSEGV, Segmentation fault.
__wmemcmp_sse4_1 () at ../sysdeps/x86_64/multiarch/memcmp-sse4.S:808
808		mov	-12(%rsi), %rcx
gdb% bt
#0  __wmemcmp_sse4_1 () at ../sysdeps/x86_64/multiarch/memcmp-sse4.S:808
#1  0x00007fffeff1772c in mkundoent () at zle_utils.c:1510
#2  0x00007fffeff17be9 in get_undo_current_change (pm=<optimized out>) at zle_utils.c:1743
#3  0x00005555555be73a in export_param ()
#4  0x00005555555bf3f8 in unsetparam_pm ()
#5  0x00005555555944a4 in scanmatchtable ()
#6  0x0000555555594667 in scanhashtable ()
#7  0x00005555555c1f16 in endparamscope ()
#8  0x0000555555589678 in runshfunc ()
#9  0x00007fffef6b21dc in comp_wrapper (prog=0x5555558bedc0, w=0x0, name=0x7ffff7fe8038 "_main_complete") at complete.c:1459
#10 0x00005555555895e1 in runshfunc ()

A kind soul on #zsh helped to find the commit that triggered this, it's
this one:
and indeed going back to the revision before that one makes the problem
go away.


Dirk-Jan C. Binnema                  Helsinki, Finland
e:djcb@xxxxxxxxxxxxxxx           w:www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C

Messages sorted by: Reverse Date, Date, Thread, Author