This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_math test_cmath test_complex fails on Fedora Rawhide buildbots
Type: Stage: resolved
Components: Tests Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: mark.dickinson, vstinner
Priority: normal Keywords:

Created on 2022-02-06 20:31 by vstinner, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (4)
msg412663 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2022-02-06 20:31
PPC64LE Fedora Rawhide LTO 3.10:
https://buildbot.python.org/all/#/builders/674/builds/543

3 tests failed: test_cmath test_complex test_math

That's a GCC 12 regression: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104389
msg412724 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2022-02-07 09:14
@vstinner What was the change that caused the buildbots to start failing? Did the GCC version get updated on those machines between the last runs and this one, or was the change due to recent PRs in Python?
msg412742 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2022-02-07 13:33
> @vstinner What was the change that caused the buildbots to start failing? Did the GCC version get updated on those machines between the last runs and this one, or was the change due to recent PRs in Python?

It's a GCC regression. GCC is updated frequently on the Rawhide buildbots.

It's unrelated to Python. It's just that Python uses (Py_HUGE_VAL * 0.) for Py_NAN and this code is impacted by the bug.

But I wrote https://github.com/python/cpython/pull/31134 since GCC 12 will no longer compute (Py_HUGE_VAL * 0.) during the compilation: it will be computed at runtime.

See also https://bugzilla.redhat.com/show_bug.cgi?id=2050736 for details.

--

The GCC regression is fixed in gcc-12.0.1-0.6.fc36 package. It will be deployed on buildbots shortly (and automatically).
msg414003 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2022-02-25 15:11
Rawhide buildbots are back to green: GCC has been fixed, I close the issue.

Moreover, Python 3.11 now uses NAN constant or __builtin_nan("").
History
Date User Action Args
2022-04-11 14:59:55adminsetgithub: 90821
2022-02-25 15:11:33vstinnersetstatus: open -> closed
resolution: fixed
messages: + msg414003

stage: resolved
2022-02-07 13:33:44vstinnersetmessages: + msg412742
2022-02-07 09:14:09mark.dickinsonsetnosy: + mark.dickinson
messages: + msg412724
2022-02-06 20:31:25vstinnercreate