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

Crash with 'print -s' with no further arguments

When I execute 'print -s' with no further arguments twice -- not
necessarily successively -- then ZSH segfaults.

I run Debian's zsh 4.0.6-28 package (libc6 2.3.1-14 and libncurses5

This bug seems similar to, but apparently not the same as, a bug
reported in zsh-workers/15085 which Bart Schaefer reports fixed in a
follow-up.  The difference is that that bug triggers when the next
command after 'print -s' is executed, whereas this bug I'm reporting
triggers when 'print -s' is executed a second time.  Another slightly
similar bug is zsh-workers/4073.  I found no others.

Backtrace, FWIW:

#0  0x400fa299 in free () from /lib/libc.so.6
#1  0x08069d08 in freehistdata ()
#2  0x08069cd6 in freehistnode ()
#3  0x080589a3 in bin_print ()
#4  0x08051a34 in execbuiltin ()
#5  0x0805ffe7 in execsubst ()
#6  0x0805eb3b in execlist ()
#7  0x0805e121 in execlist ()
#8  0x0805dea7 in execlist ()
#9  0x0805da1f in execode ()
#10 0x0806e2a6 in loop ()
#11 0x08070770 in zsh_main ()
#12 0x08051477 in main ()
#13 0x400a6a51 in __libc_start_main () from /lib/libc.so.6


 -- Miciah <miciah@xxxxxxxxxxxxx>

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