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:
> > Attached is a script from Peter Palfrader which seems to trigger the
> > same type of segfault in zhalloc().

Yep, does that for me too (no use of mremap), so this should be very
useful.

> This is HEAD with the mremap patch, which seems to be irrelevant.
> Should dyncat(s,"") just duplicate s, or should that be avoided earlier?
> 
> #0  0x0007cb78 in zhalloc (size=32) at /home/clint/tmp/zsh/Src/mem.c:353
> #1  0x000b2bd0 in dyncat (s1=0x10de88 ".Maillists.aaaa.2004.06/", s2=0x7001e1
> cc "")
>     at /home/clint/tmp/zsh/Src/string.c:100

That certainly shouldn't be a problem, as long as it's a valid pointer,
which it seems to be.

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
Work: pws@xxxxxxx
Web: http://www.pwstephenson.fsnet.co.uk



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