zsh-workers
 help / color / mirror / code / Atom feed
From: Phil Pennock <zsh-workers+phil.pennock@spodhuis.org>
To: zsh-workers@zsh.org
Subject: Re: SIGFPE crash
Date: Sat, 7 May 2011 19:48:02 -0400	[thread overview]
Message-ID: <20110507234802.GA66442@redoubt.spodhuis.org> (raw)
In-Reply-To: <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


  reply	other threads:[~2011-05-08  0:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-07 21:56 Jon Mayo
2011-05-07 22:17 ` Mikael Magnusson
2011-05-07 22:19   ` Jon Mayo
2011-05-07 22:27     ` Mikael Magnusson
2011-05-07 23:48       ` Phil Pennock [this message]
2011-05-08  0:05       ` Jon Mayo
2011-05-08  0:10         ` Mikael Magnusson
2011-05-08  2:46         ` Bart Schaefer
2011-05-08  7:03           ` Jon Mayo
2011-05-08 17:33       ` Peter Stephenson
2011-05-09 10:21       ` Vincent Lefevre
2011-05-09 10:35     ` Vincent Lefevre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110507234802.GA66442@redoubt.spodhuis.org \
    --to=zsh-workers+phil.pennock@spodhuis.org \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).