From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23190 invoked by alias); 8 May 2011 00:10:37 -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: 29184 Received: (qmail 13072 invoked from network); 8 May 2011 00:10:36 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.220.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=RJd5nUlB55LKH0OEHhXL6lP5i+zeU/WL7bW8d0gj7KU=; b=mH0F0kBRxoOp1WirVQturUeKApDTygNUi2fB/ou5dlG24yBp7/m64ODj979rgX6mPP UrFHgmC00FdKagpSbbM8OzxOgeo8OP0vLj+R4HCbzgisYQBNI+xKch0+sekQN5uA3mD8 t9Wb912EJx2NXHKciO5RBmhytJHEgpcaS4q6I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=RJitd1WbK/Xl8pFewYqKsdAx6Ixls++q730fZJiCmX3317fGdSX6ZDtI+3S4ilHmim SF+j70oRLavpWbrs6Jc0DbKky3uU56RS6KaRHZN7jYbQrP1Toh/BjtpF+OwDysoP1WHl jPgfrI/1NCQNSkBErOetB+OA9YW/oidBz6dDI= MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 8 May 2011 02:10:31 +0200 Message-ID: Subject: Re: SIGFPE crash From: Mikael Magnusson To: Jon Mayo Cc: zsh workers Content-Type: text/plain; charset=UTF-8 On 8 May 2011 02:05, Jon Mayo wrote: > On Sat, May 7, 2011 at 3:27 PM, Mikael Magnusson wrote: >> This is assuming we want to do this at all, I am told that only >> division will generate an exception on x86, but presumably other >> arches behave differently, and bash behaves the same way too >> (exception + die). Does some sort of standard have anything to say on >> the matter? I'm guessing someone has thought of it before and clearly >> nobody ever did anything about it. >> > > perhaps scripts that care can just use a trap? and all my worrying was > for nothing? > mostly I ran into the issue while I dropped out of vi to do some > calculations, and ended up having zsh crash and had to recover my > editing session. minor annoyance really. Using a trap doesn't seem to work, it just causes an infinite loop running the instruction over and over again. fwiw, bash behaves the same way, both with regards to crashing and looping on the trap. -- Mikael Magnusson