zsh-workers
 help / color / mirror / code / Atom feed
* BUG: using z parameter expansion flag in a completion function
@ 2000-05-23  3:13 Felix Rosencrantz
  0 siblings, 0 replies; only message in thread
From: Felix Rosencrantz @ 2000-05-23  3:13 UTC (permalink / raw)
  To: zsh-workers

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/


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-05-23  3:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-23  3:13 BUG: using z parameter expansion flag in a completion function Felix Rosencrantz

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).