From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17947 invoked from network); 3 Jun 2007 16:42:24 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.0 (2007-05-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=no version=3.2.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 3 Jun 2007 16:42:24 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 70003 invoked from network); 3 Jun 2007 16:42:18 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 3 Jun 2007 16:42:18 -0000 Received: (qmail 21014 invoked by alias); 3 Jun 2007 16:42:14 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23510 Received: (qmail 21004 invoked from network); 3 Jun 2007 16:42:13 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 3 Jun 2007 16:42:13 -0000 Received: (qmail 69623 invoked from network); 3 Jun 2007 16:42:13 -0000 Received: from smtp01.cdmon.com (86.109.99.230) by a.mx.sunsite.dk with SMTP; 3 Jun 2007 16:42:10 -0000 Received: from localhost (212.Red-80-35-44.staticIP.rima-tde.net [80.35.44.212]) by smtp01.cdmon.com (Postfix) with ESMTP id 32008F8A87; Sun, 3 Jun 2007 18:42:14 +0200 (CEST) Date: Sun, 3 Jun 2007 18:43:56 +0200 From: DervishD To: Peter Stephenson Cc: zsh-workers@sunsite.dk Subject: Re: [Bug] ZSH segmentation fault Message-ID: <20070603164356.GA21731@DervishD> Mail-Followup-To: Peter Stephenson , zsh-workers@sunsite.dk References: <200706031002.l53A2KT10810@epita.fr> <200706031430.l53EUOPN017562@pws-pc.ntlworld.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200706031430.l53EUOPN017562@pws-pc.ntlworld.com> User-Agent: Mutt/1.4.2.3i Organization: DervishD Hi Peter :) * Peter Stephenson dixit: > Hmm... you've made the shell use massive amounts of memory and it's > crashed when it didn't have enough. [...] > The only general fix, or at least graceful get out, for crashes like > this is for every memory access in zsh to be error checked and abort if > it fails. There are very, very many of these and it still doesn't help > you run programmes requiring large amounts of memory. While I understand that running such scripts is very unusual, I think that just segfaulting is not a correct way of dealing with errors. For example, in my zsh 4.2.6 I get a segfault when trying to complete very long file names (I reported that, but it's just an example). If I try to run a script that eats all the memory, the shell will segfault too. In the second case I'm the culprit, because really the shell is not intended to do that job; in the first case I'm not guilty, but the shell behaved the same. Moreover, even in the first case I think that it's better to abort, that way you can try to reproduce the error in a non-login shell and get a sensible error message when the shell crashes instead of just a crash. Just my 0.02 euros, and of course I'm not critizising anything since I'm not the one who has to fix every memory allocation O:) Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 | http://www.dervishd.net It's my PC and I'll cry if I want to... RAmen!