From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26825 invoked from network); 13 Jul 2004 11:07:10 -0000 Received: from odin.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.85) by ns1.primenet.com.au with SMTP; 13 Jul 2004 11:07:10 -0000 Received: (qmail 21395 invoked from network); 13 Jul 2004 11:10:57 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 13 Jul 2004 11:10:57 -0000 Received: (qmail 16167 invoked by alias); 13 Jul 2004 11:06:54 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 20159 Received: (qmail 16158 invoked from network); 13 Jul 2004 11:06:54 -0000 Received: from odin.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.85) by sunsite.dk with SMTP; 13 Jul 2004 11:06:54 -0000 Received: (qmail 21124 invoked from network); 13 Jul 2004 11:10:49 -0000 Received: from lhuumrelay3.lnd.ops.eu.uu.net (62.189.58.19) by a.mx.sunsite.dk with SMTP; 13 Jul 2004 11:10:36 -0000 Received: from MAILSWEEPER01.csr.com (mailhost1.csr.com [62.189.183.235]) by lhuumrelay3.lnd.ops.eu.uu.net (8.11.0/8.11.0) with ESMTP id i6DB6Ev17276 for ; Tue, 13 Jul 2004 11:06:14 GMT Received: from EXCHANGE02.csr.com (unverified [192.168.137.45]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id ; Tue, 13 Jul 2004 12:05:32 +0100 Received: from news01.csr.com ([192.168.143.38]) by EXCHANGE02.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 13 Jul 2004 12:07:26 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.12.11/8.12.11) with ESMTP id i6DB6BWE009206; Tue, 13 Jul 2004 12:06:12 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.12.11/8.12.11/Submit) with ESMTP id i6DB6AZT009203; Tue, 13 Jul 2004 12:06:11 +0100 Message-Id: <200407131106.i6DB6AZT009203@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk, 251378@bugs.debian.org Subject: Re: Bug#251378: zsh: segfaults when globing includes too many files In-reply-to: "Clint Adams"'s message of "Tue, 06 Jul 2004 15:22:23 EDT." <20040706192223.GA378@scowler.net> Date: Tue, 13 Jul 2004 12:06:10 +0100 From: Peter Stephenson X-OriginalArrivalTime: 13 Jul 2004 11:07:27.0009 (UTC) FILETIME=[94F62110:01C468C9] X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=BAYES_56 autolearn=no version=2.63 X-Spam-Hits: 0.0 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 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 **********************************************************************