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

Yank-pop Dumps Core



In the latest CVS sources, the following recipe dumps core:

zsh -f
bindkey -e
asdf^A^K^Y<esc>y

Popping one too many yanks off the stack causes a crash.

Here is the backtrace:

Loaded symbols for /home/acs/zsh-debug/lib/zsh/4.1.0-dev-7/zsh/compctl.so
#0  0x4020a97d in yankpop (args=0x40225250) at /opt/src/zsh-2003-02-25-1603/Src/Zle/zle_misc.c:413
413         } while (!buf->buf || !*buf->buf);
(gdb) bt
#0  0x4020a97d in yankpop (args=0x40225250) at /opt/src/zsh-2003-02-25-1603/Src/Zle/zle_misc.c:413
#1  0x40207ca2 in execzlefunc (func=0x402241d0, args=0x40225250)
    at /opt/src/zsh-2003-02-25-1603/Src/Zle/zle_main.c:892
#2  0x402073f3 in zlecore () at /opt/src/zsh-2003-02-25-1603/Src/Zle/zle_main.c:690
#3  0x40207977 in zleread (lp=0x80e17d0 "%m%# ", rp=0x0, flags=3)
    at /opt/src/zsh-2003-02-25-1603/Src/Zle/zle_main.c:824
#4  0x0807c560 in inputline () at /opt/src/zsh-2003-02-25-1603/Src/input.c:275
#5  0x0807c41c in ingetc () at /opt/src/zsh-2003-02-25-1603/Src/input.c:214
#6  0x080740c9 in ihgetc () at /opt/src/zsh-2003-02-25-1603/Src/hist.c:241
#7  0x080825e4 in gettok () at /opt/src/zsh-2003-02-25-1603/Src/lex.c:631
#8  0x08081ea3 in yylex () at /opt/src/zsh-2003-02-25-1603/Src/lex.c:347
#9  0x080997c7 in parse_event () at /opt/src/zsh-2003-02-25-1603/Src/parse.c:449
#10 0x0807953f in loop (toplevel=1, justonce=0) at /opt/src/zsh-2003-02-25-1603/Src/init.c:128
#11 0x0807c090 in zsh_main (argc=2, argv=0xbffffa54) at /opt/src/zsh-2003-02-25-1603/Src/init.c:1266
#12 0x080516da in main (argc=2, argv=0xbffffa54) at /opt/src/zsh-2003-02-25-1603/Src/main.c:37
#13 0x400bb082 in __libc_start_main () from /lib/i686/libc.so.6

zsh-4.0.6 does not seem to have this problem.

This is on my x86 Linux box at home; uname -a reports:

Linux zion.rcn.com 2.4.19-24acs #4 SMP Tue Feb 25 20:10:27 EST 2003
i686 unknown unknown GNU/Linux


HTH,
  Vin



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