Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#251378: zsh: segfaults when globing includes too many files
- X-seq: zsh-workers 20172
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Bug#251378: zsh: segfaults when globing includes too many files
- Date: Sat, 17 Jul 2004 20:06:49 +0100
- Cc: 251378@xxxxxxxxxxxxxxx, 259768@xxxxxxxxxxxxxxx, 251378-submitter@xxxxxxxxxxxxxxx, 259768-submitter@xxxxxxxxxxxxxxx, mdz@xxxxxxxxxx
- In-reply-to: "Clint Adams"'s message of "Fri, 16 Jul 2004 15:46:10 EDT." <20040716194610.GA28706@xxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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