Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1552724
Summary: | python-cffi test fail on ppc64le | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Mairi Dulaney <jdulaney> |
Component: | python-cffi | Assignee: | Miro Hrončok <mhroncok> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | low | ||
Version: | 29 | CC: | aoliva, arjun.is, athmanem, codonell, dj, fweimer, jonathan.underwood, law, mcepl, mfabian, mhroncok, pfrankli, pviktori, rth, siddhesh, spacewar, vstinner |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | python-cffi-1.12.2-1.fc31 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-03-28 10:07:33 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1677888 | ||
Bug Blocks: | 1071880, 1556161 |
Description
Mairi Dulaney
2018-03-07 15:53:32 UTC
Buf filed upstream: https://bitbucket.org/cffi/cffi/issues/361/tests-fail-due-to-rounding-and-complex Upstream seems to think this is a problem with glibc, so assigning accordingly. (In reply to John Dulaney from comment #2) > Upstream seems to think this is a problem with glibc, so assigning > accordingly. I don't see any notes that this is a glibc or gcc problem. #include <stdio.h> #include <stdlib.h> #include <math.h> #include <assert.h> int main (void) { float pf, inff; pf = 1e200f; inff = 1e200f * 1e200f; assert (pf == inff); return 0; } gcc -O0 -g3 -o math-test ./math-test.c ./math-test.c: In function ‘main’: ./math-test.c:10:3: warning: floating constant exceeds range of ‘float’ [-Woverflow] pf = 1e200f; ^~ ./math-test.c:11:3: warning: floating constant exceeds range of ‘float’ [-Woverflow] inff = 1e200f * 1e200f; ^~~~ ./math-test.c:11:3: warning: floating constant exceeds range of ‘float’ [-Woverflow] As expected, because they all overflow the range of float. ./math-test Does not assert. Therefore pf is infinity. Something is wrong with FFI's conversion of the value to the type. I also do not see where anyone says this is a glibc error. Though as noted there might still be a compiler issue, but that hasn't been ruled out. You need to work out the issue in more detail. This bug appears to have been reported against 'rawhide' during the Fedora 29 development cycle. Changing version to '29'. The tests are commented out. I will run them again, but skip float tests on ppc64le for now. I think after https://fedoraproject.org/wiki/Changes/PPC64LE_Float128_Transition this might no longer be a problem. (In reply to Carlos O'Donell from comment #3) > I also do not see where anyone says this is a glibc error. > > Though as noted there might still be a compiler issue, but that hasn't been > ruled out. See the current conversation on the BitBucket issue. I don't think the conclusion is "This is a GCC bug", but more like "Pleeease, we are out of our depth here. Would somebody from the around the GCC come and tell us what's going on?". Setting this to low priority. It would be great if someone else would get to this earlier than we can. If that's your case, please assign the bug to yourself (and adjust priority accordingly). Can this issue be related to the test_ctypes failure https://bugzilla.redhat.com/show_bug.cgi?id=1540995 which was caused by this GCC fix? https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88892 (In reply to Victor Stinner from comment #8) > Can this issue be related to the test_ctypes failure > https://bugzilla.redhat.com/show_bug.cgi?id=1540995 which was caused by this > GCC fix? https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88892 Do you mean “fixed by” and not ”caused by”? Yes, since float types are involved in both cases, this is a possibility. I have not investigated this bug here because the reproducer in the description does not look very self-contained by me, but then I don't know anything about python-cffi. Oops, I mean caused by the GCC bug. This bug now fixed in Rawhide. Seems to be OK on the recent version. |