From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27732 invoked from network); 17 Jul 2004 19:11:15 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 17 Jul 2004 19:11:15 -0000 Received: (qmail 88312 invoked from network); 17 Jul 2004 19:11:10 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 Jul 2004 19:11:10 -0000 Received: (qmail 24902 invoked by alias); 17 Jul 2004 19:10:57 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 20172 Received: (qmail 24883 invoked from network); 17 Jul 2004 19:10:57 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by 130.225.247.90 with SMTP; 17 Jul 2004 19:10:57 -0000 Received: (qmail 84666 invoked from network); 17 Jul 2004 19:06:21 -0000 Received: from cmailm4.svr.pol.co.uk (195.92.193.211) by a.mx.sunsite.dk with SMTP; 17 Jul 2004 19:06:19 -0000 Received: from modem-57.jewel-puffer.dialup.pol.co.uk ([62.137.33.57] helo=pwstephenson.fsnet.co.uk) by cmailm4.svr.pol.co.uk with esmtp (Exim 4.14) id 1BluVl-0004js-4b; Sat, 17 Jul 2004 20:06:17 +0100 Received: by pwstephenson.fsnet.co.uk (Postfix, from userid 501) id 1AF86865D; Sat, 17 Jul 2004 15:06:50 -0400 (EDT) Received: from pwstephenson.fsnet.co.uk (localhost [127.0.0.1]) by pwstephenson.fsnet.co.uk (Postfix) with ESMTP id E85598654; Sat, 17 Jul 2004 20:06:50 +0100 (BST) 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 In-reply-to: "Clint Adams"'s message of "Fri, 16 Jul 2004 15:46:10 EDT." <20040716194610.GA28706@scowler.net> Date: Sat, 17 Jul 2004 20:06:49 +0100 From: Peter Stephenson Message-Id: <20040717190650.1AF86865D@pwstephenson.fsnet.co.uk> X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: * X-Spam-Status: No, hits=1.5 required=6.0 tests=RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: 1.5 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 Work: pws@csr.com Web: http://www.pwstephenson.fsnet.co.uk