-
Bug
-
Resolution: Done
-
Normal
-
None
-
rhel-7.9
-
None
-
None
-
Moderate
-
rhel-sst-pt-gcc
-
ssg_platform_tools
-
None
-
False
-
-
None
-
None
-
None
-
None
-
None
What were you trying to do that didn't work?
- On Red Hat Enterprise Linux 7, the hypot output returns "inf", while the same execution returns "nan" on the latest RHEL release as on Red Hat Enterprise Linux 8.9 and Red Hat Enterprise Linux 9.3.
- In Red Hat Enterprise Linux 7 there is a bug in libm as the hypot output returns "nan".
Please provide the package NVR for which bug is seen:
libm,GCC from RHEL 7
How reproducible: Always
Steps to reproduce:
Save the attached code in a c file as "test.c".
Compile this code and create out file with below command:
# gcc -lm test.c
{{}}
Now execute the out file and check the results:
{{}}
on RHEL8: The result is same on first gcc package shipped with RHEL8 till latest:
- ./a.out
a = nan
hypot = nan <<---------
on RHEL7: The result is same on first gcc package shipped with RHEL7 till latest:
- duplicates
-
RHEL-28519 Inconsistent outputs from hypot (math) functions in Red Hat Enterprise Linux 7
- Closed