zsh-workers
 help / color / mirror / code / Atom feed
From: Vin Shelton <acs@alumni.princeton.edu>
To: zsh-workers@sunsite.dk
Subject: Yank-pop Dumps Core
Date: Tue, 25 Feb 2003 22:13:42 -0500	[thread overview]
Message-ID: <m2d6lfraxl.fsf@zion.rcn.com> (raw)

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


             reply	other threads:[~2003-02-26  3:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-26  3:13 Vin Shelton [this message]
2003-02-27 11:24 ` Peter Stephenson
2003-02-28  0:44   ` Vin Shelton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2d6lfraxl.fsf@zion.rcn.com \
    --to=acs@alumni.princeton.edu \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).