Skip to content

GCC 15.1.1 compiles NumPy, but the tests segfault. #28991

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
charris opened this issue May 16, 2025 · 6 comments
Open

GCC 15.1.1 compiles NumPy, but the tests segfault. #28991

charris opened this issue May 16, 2025 · 6 comments

Comments

@charris
Copy link
Member

charris commented May 16, 2025

The failure is at _core/tests/test_half.py, line 54. I assume that is a problem with GCC 15.1.1, as it has had a rocky start. Has anyone else had problems? The problem doesn't seem to be in NumPy, it was compiling and running fine before I upgraded Fedora to 42.

@charris
Copy link
Member Author

charris commented May 17, 2025

The problem seems to be in boolean indexing.

@ngoldbaum
Copy link
Member

Can you share a gdb traceback?

@charris
Copy link
Member Author

charris commented May 18, 2025

Can you share a gdb traceback?

I was going to wait on the next GCC 15 version. Fedora (and Linus!) jumped the gun in using 15 in a release.

@NiLuJe
Copy link

NiLuJe commented May 25, 2025

I can reproduce segfaults on a small chunk of the testsuite (and, well, in production, which is what led me to double-check ;p) with GCC 15.1.0 over here, too, FWIW (Gentoo Linux, x64, on a zen4 CPU). Everything passes w/ GCC 14.x (right now, 14.3.0).

Will see about getting some traces in the next few days.

@thesamesam
Copy link
Contributor

thesamesam commented May 26, 2025

I was going to wait on the next GCC 15 version. Fedora (and Linus!) jumped the gun in using 15 in a release.

Fedora only shipped it briefly before the final release. The next GCC 15 release will be in a couple of months, then it goes to yearly (same schedule as usual). It's best if it turns out to be a GCC bug to get it reported before that next one. Otherwise, relying on the fix being out there takes way longer.

@thesamesam
Copy link
Contributor

I tried to reproduce this in the following environments:

  • on my regular Gentoo workstation using GCC trunk but with -O3 -march=znver2 -flto with our numpy-2.2.6 package's testsuite
  • in a clean Gentoo container running stable but with GCC 15 installed and in-use to build our numpy-2.5.5 package's testsuite
  • in a Fedora 42 container (fedora:42 with Docker) on a git clone of main using spin test
    and all of them worked.

@NiLuJe Feel free to file a bug on the Gentoo side so we can dig into it a bit there and see if we can come up with something to share on this side if there's nothing obvious we find here. If you do, please include the testsuite results when run via the ebuild (inc. build.log) and emerge --info. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy