Zsh Mailing List Archive
Messages sorted by:
Re: SIGFPE crash
- X-seq: zsh-workers 29184
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Jon Mayo <jon.mayo@xxxxxxxxx>
- Subject: Re: SIGFPE crash
- Date: Sun, 8 May 2011 02:10:31 +0200
- Cc: zsh workers <zsh-workers@xxxxxxx>
- 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=
- In-reply-to: <BANLkTik1h5bVd1cnPPYQrd33bEAc7pr2+Q@mail.gmail.com>
- List-help: <mailto:email@example.com>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:firstname.lastname@example.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <BANLkTi=x2Cn3dZFGaEdVUm9+4mAse+dQsQ@mail.gmail.com> <BANLkTimCMEy1_EPe00dX7yhi-9EqDzKaMA@mail.gmail.com> <BANLkTimtXiG_RNbBxOXKwGMiXoNp_ui1HA@mail.gmail.com> <BANLkTikO3QSLA2h-6g9pz=gU_zi3iF6cQA@mail.gmail.com> <BANLkTik1h5bVd1cnPPYQrd33bEAc7pr2+Q@mail.gmail.com>
On 8 May 2011 02:05, Jon Mayo <jon.mayo@xxxxxxxxx> wrote:
> On Sat, May 7, 2011 at 3:27 PM, Mikael Magnusson <mikachu@xxxxxxxxx> 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.
Messages sorted by: