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

Re: bugs



hzoli@xxxxxxxxxx wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> 
> > Now here's another bug:
> > 
> > I type:
> > echo $ZSH_
> > then I type TAB 3 times. Here's what I get:
> > 
> > Allo? echo $ZSH_
> > ZSH_NAME     ZSH_VERSION
> > Allo? echo $ZSH_NAMEBUG: permanent allocation in parsestr
> > BUG: permanent allocation in prefork                                       
>  VERSION
> 
> Here is the fix.

There's another one in reversemenucomplete() which needs just the same
treatment.  I'd just made a patch for both, I can't be bothered to
extract the second one.

I was going to make the comment that all these permalloc()'s and so on
buried deep inside the code give me the screaming heebeejeebees (or
whatever it is you're supposed to get).  We really need to upgrade
permalloc(), heapalloc() and lastalloc() to use a stack, so we can
have matching heapalloc()/lastalloc() pairs at any depth in the code,
and these functions get called only when they're actually needed.
Then you have to manage the allocation of this stack, of course.

-- 
Peter Stephenson <pws@xxxxxx>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.




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