From: Clint Adams <clint@zsh.org>
To: zsh-workers@sunsite.dk
Cc: 251378@bugs.debian.org, 259768@bugs.debian.org,
251378-submitter@bugs.debian.org,
259768-submitter@bugs.debian.org, mdz@debian.org
Subject: Re: Bug#251378: zsh: segfaults when globing includes too many files
Date: Fri, 16 Jul 2004 15:46:10 -0400 [thread overview]
Message-ID: <20040716194610.GA28706@scowler.net> (raw)
In-Reply-To: <20040716175620.GA22143@scowler.net>
> Attached is a script from Peter Palfrader which seems to trigger the
> same type of segfault in zhalloc().
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=0x7001e1cc "")
at /home/clint/tmp/zsh/Src/string.c:100
#2 0x00046644 in insert (s=0x7001e1cc "", checked=0) at /home/clint/tmp/zsh/Src/glob.c:352
#3 0x0004720c in scanner (q=0x7001e1d0) at /home/clint/tmp/zsh/Src/glob.c:514
#4 0x000478e0 in scanner (q=0x7001e198) at /home/clint/tmp/zsh/Src/glob.c:615
#5 0x0004b428 in zglob (list=0x7001e0f0, np=0x7001e104, nountok=0)
at /home/clint/tmp/zsh/Src/glob.c:1578
#6 0x000b48b8 in globlist (list=0x7001e0f0, nountok=0) at /home/clint/tmp/zsh/Src/subst.c:273
#7 0x0003dd1c in execcmd (state=0xeffffae8, input=0, output=0, how=18, last1=2)
at /home/clint/tmp/zsh/Src/exec.c:2161
#8 0x00039e54 in execpline2 (state=0xeffffae8, pcode=45699, how=18, input=0, output=0, last1=0)
at /home/clint/tmp/zsh/Src/exec.c:1274
#9 0x00038c30 in execpline (state=0xeffffae8, slcode=4098, how=18, last1=0)
at /home/clint/tmp/zsh/Src/exec.c:1064
#10 0x000380a0 in execlist (state=0xeffffae8, dont_change_job=0, exiting=0)
at /home/clint/tmp/zsh/Src/exec.c:870
#11 0x00037bc8 in execode (p=0x7001e090, dont_change_job=0, exiting=0)
at /home/clint/tmp/zsh/Src/exec.c:771
#12 0x0005da74 in loop (toplevel=1, justonce=0) at /home/clint/tmp/zsh/Src/init.c:165
#13 0x00061c78 in zsh_main (argc=3, argv=0xeffffd34) at /home/clint/tmp/zsh/Src/init.c:1274
#14 0x00019d90 in main (argc=3, argv=0xeffffd34) at /home/clint/tmp/zsh/Src/main.c:93
next prev parent reply other threads:[~2004-07-16 19:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20040528125647.GA21000@scowler.net>
[not found] ` <20040528131425.GC2289@via.ecp.fr>
[not found] ` <20040528135026.GA21637@scowler.net>
[not found] ` <20040528135729.GD2289@via.ecp.fr>
[not found] ` <20040528141431.GA30024@scowler.net>
[not found] ` <20040528142505.GE2289@via.ecp.fr>
[not found] ` <20040528174021.GA5975@scowler.net>
[not found] ` <20040528190653.GA2661@via.ecp.fr>
[not found] ` <20040706181235.GA32727@scowler.net>
[not found] ` <20040706184752.GC1881@alcor.net>
2004-07-06 18:59 ` Clint Adams
2004-07-06 19:22 ` Clint Adams
2004-07-13 11:06 ` Peter Stephenson
2004-07-16 17:56 ` Clint Adams
2004-07-16 19:46 ` Clint Adams [this message]
2004-07-17 19:06 ` Peter Stephenson
2004-07-17 19:20 ` PATCH: " Peter Stephenson
2004-07-07 11:01 ` Peter Stephenson
2004-07-07 12:36 ` Clint Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040716194610.GA28706@scowler.net \
--to=clint@zsh.org \
--cc=251378-submitter@bugs.debian.org \
--cc=251378@bugs.debian.org \
--cc=259768-submitter@bugs.debian.org \
--cc=259768@bugs.debian.org \
--cc=mdz@debian.org \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).