From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7697 invoked by alias); 6 Jul 2014 00:09:18 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 32843 Received: (qmail 8432 invoked from network); 6 Jul 2014 00:09:16 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Date: Sun, 6 Jul 2014 02:09:13 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: segmentation fault with {1..1234567} Message-ID: <20140706000913.GB18368@xvii.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org References: <20140704172545.GA29213@xvii.vinc17.org> <140704184036.ZM18558@torch.brasslantern.com> <20140705111233.GA19385@xvii.vinc17.org> <140705095703.ZM12012@torch.brasslantern.com> <20140705233916.GA18368@xvii.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20140705233916.GA18368@xvii.vinc17.org> X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.21-6305-vl-r59709 (2013-04-16) On 2014-07-06 01:39:16 +0200, Vincent Lefevre wrote: > On 2014-07-05 09:57:03 -0700, Bart Schaefer wrote: > > On Jul 5, 1:12pm, Vincent Lefevre wrote: > > } > > } > Whether that expression fails depends entirely on the memory allocation > > } > limitations of the local host. It works fine for me. > > } > > } That's not a memory allocation problem: it fails on a machine > > } with 24GB! > > > > Then it's probably a per-process resource limit problem. > > No, I don't have any per-process limitation on the memory. Note also that the bug is specific to zsh. Other shells work fine: $ dash -c 'echo `seq 1 1234567` | wc' 1 1234567 8765432 $ ksh93 -c 'echo `seq 1 1234567` | wc' 1 1234567 8765432 $ mksh -c 'echo `seq 1 1234567` | wc' 1 1234567 8765432 $ bash -c 'echo `seq 1 1234567` | wc' 1 1234567 8765432 $ posh -c 'echo `seq 1 1234567` | wc' 1 1234567 8765432 while with zsh: $ zsh -c 'echo `seq 1 1234567` | wc' 0 0 0 Removing the "| wc" shows that this is due to a segmentation fault. I've reported the bug on the Debian BTS: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=753906 -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)