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

Re: Bug#251378: zsh: segfaults when globing includes too many files



Clint Adams wrote:
> > I can't reproduce this yet, but some people are experiencing segfaults
> > when globbing in /usr/share/doc.  The source shown below includes 19920.
> > This also happens with HEAD, I think.
> 
> Also this.  So h->next is getting corrupted somewhere?

I just tried a huge `print -l /usr/**/*' where zsh swallowed up 40 Mbytes.
This worked and the shell successfully freed the memory afterwards.  So
it doesn't look this is simple problem with the heap allocator.

I don't have zsh's malloc compiled in (as it screws up valgrind), so
that might be a problem.

Otherwise, it may be triggering some unpleasant corner case.  Adding
more detailed debugging checks to mem.c might help for that.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



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