Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 60907 - Floating-point bug - possibly missing kernel patch??
Floating-point bug - possibly missing kernel patch??
Product: Red Hat Linux
Classification: Retired
Component: kernel (Show other bugs)
alpha Linux
medium Severity medium
: ---
: ---
Assigned To: Beth Uptagrafft
Beth Uptagrafft
Depends On:
  Show dependency treegraph
Reported: 2002-03-08 16:15 EST by Need Real Name
Modified: 2007-04-18 12:40 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-03-18 12:12:41 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2002-03-08 16:15:44 EST
Description of Problem:

I found what appears to be a floating-point bug as may be
demonstrated by the following Java program:

class MyFloatTest {

  static float flt = Float.MIN_VALUE;
  static double dbl = flt;

  static public void main(String s[])
    MyFloatTest mt = new MyFloatTest();
    System.out.println(dbl+"(Double) "+flt+"(Float)");

Float.MIN_VALUE is 1.40129846432481707e-45f.

On Tru64 Unix and an Alpha box running Linux-2.2.17-4 with
FP patches and glibc-2.1.95 I get the correct output viz.,

% java MyFloatTest
1.401298464324817E-45(Double) 1.4E-45(Float)

However, I get the following incorrect output on RedHat 7.2-beta2.

% java MyFloatTest
2.652494739E-315(Double) 1.4E-45(Float)

The following small C program demonstrates that this is not a java
implemetation issue.

#include <stdio.h>

int main()
  float val = 1.40129846432481707e-45f;
  double dbl = val;

  printf("val is %e(flt) %g(dbl)\n", val, val);

On the Alpha box running Linux-2.2.17-4 with FP patches and
glibc-2.1.95; compiled with gcc -mieee -o fltst fltst.c,
the output is

% ./fltst
val is 1.401298e-45(flt) 1.4013e-45(dbl)

but on RedHat 7.2-beta2 I get

% ./fltst
minval is 2.652495e-315(flt) 2.65249e-315(dbl)

The FP patches I have on the machine that gives the correct results
is available at


Comment 1 Beth Uptagrafft 2002-03-18 12:08:03 EST
Moved to correct product.
Comment 2 Beth Uptagrafft 2002-04-03 16:57:46 EST
fixed in next release.

Note You need to log in before you can comment on or make changes to this bug.