zsh-workers
 help / color / mirror / code / Atom feed
From: Felix Rosencrantz <f_rosencrantz@yahoo.com>
To: zsh-workers <zsh-workers@sunsite.auc.dk>
Subject: BUG: using z parameter expansion flag in a completion function
Date: Mon, 22 May 2000 20:13:03 -0700 (PDT)	[thread overview]
Message-ID: <20000523031303.27094.qmail@web1303.mail.yahoo.com> (raw)

There seems to be a bug when using the z parameter expansion flag in
a completion function:
host% bindkey -e; autoload -U compinit; compinit -D 
host% _tst () { compadd --  ${(z)history[1]} }
host% compdef _tst tst
host% tst a<TAB>

Generates many of these error messages:
	BUG: attempt to free storage at invalid address

Here's the stack trace from the first error:

#0  zfree (p=0x18c2f0, sz=0) at mem.c:1066
#1  0x75f84 in free (p=0x18c2f0) at mem.c:1135
#2  0x65630 in lexrestore () at lex.c:292
#3  0x130be0 in docomplete (lst=0) at zle_tricky.c:780
#4  0x12e6fc in expandorcomplete (args=0x167bd8) at zle_tricky.c:287
#5  0x12e120 in completecall (args=0x167bd8) at zle_tricky.c:181
#6  0x11e86c in execzlefunc (func=0x165b94, args=0x167bd8) at zle_main.c:645
#7  0x11e3a0 in zleread (lp=0x174da0 "%m%# ", rp=0x0, flags=3)
    at zle_main.c:564
#8  0x5e2e8 in inputline () at input.c:265
#9  0x5e0b4 in ingetc () at input.c:210
#10 0x52e4c in ihgetc () at hist.c:242
#11 0x6673c in gettok () at lex.c:621
#12 0x658ec in yylex () at lex.c:337
#13 0x88fd4 in parse_event () at parse.c:421
#14 0x5a0e0 in loop (toplevel=1, justonce=0) at init.c:121
#15 0x23ce8 in main (argc=2, argv=0xefffed5c) at ./main.c:86


-FR.


__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/


                 reply	other threads:[~2000-05-23  3:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20000523031303.27094.qmail@web1303.mail.yahoo.com \
    --to=f_rosencrantz@yahoo.com \
    --cc=zsh-workers@sunsite.auc.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).