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

Re: UGLY CRASHES UNDER ZSH 2.6 BETA 12



esky@xxxxxxxxxxx wrote:
> Starting program: /usr/local/bin/zsh 
> marathon% bvi foo
> zsh: correct `bvi' to `vi' [nyae]? n
> zsh: command not found: bvi
> marathon% !!
> Program generated(1): Memory access exception on address 0x10 (protection fai
> lure).
> 0x164c2 in clearalstack ()

I can't reproduce this either for some reason, but my guess is that
the alias stack has got a NULL on it, which signifies history
expansion, and the lexrestore() is assuming it's an alias and trying
to dereference it.  Have a go at this (should be completely safe to
give to the kids at home):

*** Src/hist.c~	Mon Feb 19 10:09:38 1996
--- Src/hist.c	Fri Mar  1 14:31:05 1996
***************
*** 440,447 ****
      Alias ix;
  
      while (alstackind) {
! 	ix = alstack[--alstackind];
! 	ix->inuse = 0;
      }
  }
  
--- 440,447 ----
      Alias ix;
  
      while (alstackind) {
! 	if ((ix = alstack[--alstackind]))
! 	  ix->inuse = 0;
      }
  }
  

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