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

Re: crash with tab completion for 'make'



Oded Shimon <ods15@xxxxxxxxxxxxxxxx> wrote:
> On Sun, Dec 11, 2005 at 10:47:32PM +0200, Oded Shimon wrote:
> > 22:45 ods15@crate15 ~ $ zsh --version
> > zsh 4.2.6 (i686-pc-linux-gnu)
> > 
> > 22:43 ods15@crate15 ~ $ zsh -ic 'compinit; _make'
> > zsh: 16202 segmentation fault  zsh -ic 'compinit; _make'
> 
> I narrowed down the crash to something more specific.
> 
> 15:04 ods15@crate15 ~ $ zsh -c 'a(){zparseopts -D -A opts c: r:}; a -r bla'
> zsh: 27128 segmentation fault  zsh
> 
> this change fixes it:
> 
> 15:05 ods15@crate15 ~ $ zsh -c 'a(){zparseopts -D -A opts c: r: g:}; a -r bla'
> 15:05 ods15@crate15 ~ $
> 
> Basically, whatever is the last element in the 'zparseopts' call, causes a 
> crash.

I still haven't managed to get this to happen.  There could easily be a
memory allocation error, but I couldn't spot it by inspection, either.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com



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