Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: SIGFPE crash
- X-seq: zsh-workers 29182
- From: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: SIGFPE crash
- Date: Sat, 7 May 2011 19:48:02 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d200912; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date; bh=AfKVKOKRuRmcQrwoStXqmiRS/lfcv/XvC+tlyMC7ApY=; b=UHHFqm8l8Clc80BciZIyqsFmKwp9MJL9j35JujYRDEv20nvLSWjzFgPKlo/EyPadNCzejnAFdUxz1IWYhNK3+yz717TcyPn4ZZwi9VcBThICnUVbBtshjRs6cpY8n+nsDC8OC+hgyBXPQH75y7cy6Jjw7kXEXmrz88BWcQEBoTU=;
- In-reply-to: <BANLkTikO3QSLA2h-6g9pz=gU_zi3iF6cQA@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- 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>
On 2011-05-08 at 00:27 +0200, Mikael Magnusson wrote:
[ mod/modeq ]
> 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.
At least in the INT_MIN case for integers, modulo arithmetic generates
this exception.
I checked, Exim has the same issue, http://bugs.exim.org/1112 filed,
referencing this thread. From that:
% exim -be
> ${eval:-2147483648%-1}
zsh: floating point exception exim -be
*sigh*
-Phil
Messages sorted by:
Reverse Date,
Date,
Thread,
Author