Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: fp exception handling bug in 2.0.33
@ 1998-07-02  2:03 Greg Lindahl
  1998-07-02  7:20 ` Richard Henderson
  0 siblings, 1 reply; 3+ messages in thread
From: Greg Lindahl @ 1998-07-02  2:03 UTC (permalink / raw)
  To: Tom Holroyd; +Cc: axp-list

> My simple example was acos(-2.).  Yea, I had the same experience with
> 2.0.32 -- after an FP exception, the machine would be unstable.  2.0.34
> fixed that.  The reason it kills the process now is that AXP is not IEEE. 
> IEEE compliance slows the computation down.  You can add -mieee to your
> compile switches to get this: you'll get the correct answer (NaN) and a
> domain error flag set (and a
> kernel: moo: arithmetic trap at 00000001200007b0: 02 0000040000000000

Sorry that I wasn't clear. The program gives an answer when it is
not receiving many SIGIOs. It gives an fp exception when it receives
the SIGIOs.

I see 2 patches in pre35 I am going to apply; one is to the alpha fpu
emulator, which is presumably used during traps? and the other is to
SIGIO handling itself.

-- g


^ permalink raw reply	[flat|nested] 3+ messages in thread
* exception handling bug in 2.0.34
@ 1998-07-01 15:01 Greg Lindahl
  1998-07-02  1:33 ` fp exception handling bug in 2.0.33 Tom Holroyd
  0 siblings, 1 reply; 3+ messages in thread
From: Greg Lindahl @ 1998-07-01 15:01 UTC (permalink / raw)
  To: axp-list

Well, as promised, here's my bug report.

In 2.0.33, I have a program which crashes the machine. It does
floating point computations with the default fp configuration, and the
answer has no NaNs in it. This process receives many SIGIO signals. It
crashes the machine. A similar process without any fp computations
does not crash the machine.

In 2.0.34, this program dies with a floating-point exception. While
this is far superior to killing the machine, it is still
sub-optimal. We believe this is a correct program; we have many
programs that don't use fp that pass our test suite.

I don't have a simple example to illustrate the problem,
unfortunately.

Do the 2.1.X kernels have different interrupt handlers than 2.0.34?

Any other speculations?

-- g


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-07-02  7:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-02  2:03 fp exception handling bug in 2.0.33 Greg Lindahl
1998-07-02  7:20 ` Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
1998-07-01 15:01 exception handling bug in 2.0.34 Greg Lindahl
1998-07-02  1:33 ` fp exception handling bug in 2.0.33 Tom Holroyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox