-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
SIGSEGV when tested with gcc-12 on macos #3740
Comments
hmm, this used to work with earlier gcc, so should not be anything fundamental (like internal representation of complex numbers).I wonder if this could be a regression in gcc-12 itself. (Have not updated gcc in our CI yet and am currently travelling) |
fails at -O2, passes at just -g (so -O0), looks like overenthusiastic optimization by version 12.1 to me |
Unfortunately, I can no longer use gcc-11. I also tried running on gcc version 12.2.0 and got the same error |
|
|
This "gcc-12" problem is not seen on x86_64 running Linux, nor on an Apple M1 running Linux, so may be peculiar to OSX builds |
It looks like this also happens with the gcc-12 in MSYS2 on Windows: msys2/MINGW-packages#12857 Edit: Building with |
Is there a recommended optimization level for building OpenBLAS? |
Traditionally just |
Is it these lines? Only tangentially related to this issue: Would it make sense for the |
Narrowed down to the level 1 BLAS kernels (Makefile.L1) |
In case this is the same as the segfault with MSYS2, the backtrace there was the following:
|
Thank you, very useful as it does not appear to be easy to get meaningful backtraces on OSX. |
Should the MINGW builds in the CI be configured with |
With hindsight - yes, probably. Or one with the build type set and one without ? |
The segfault here and the one with MSYS2 might be different ones. At least, the self-tests didn't trigger a segfault in #3750. |
closing as fixed by #3745 |
This issue is also observed on Linux,using gcc (Gentoo 12.2.1_p20230121-r1 p10) 12.2.1 20230121 zdot is suffering from sigsegv. |
@littlewu2508 I cannot reproduce this with the current |
@littlewu2508 I cannot reproduce this with the current `develop` branch, what is your hardware please ?
It's zen3 (AMD Ryzen 5950X)
|
Zen3 here as well, maybe the gentoo gcc carries extra patches. Guess I'll need to build a gcc13 snapshot next |
btw I'm confused by the tensorflow ticket you linked to, not sure I see the connection except it's a segfault somewhere. Also the fix discussed here was made after the latest (0.3.21) release, you'd need to build a snapshot of |
Oh, it's because under that ticket we are discussing the tensorflow ROCm support, and I provided the rocBLAS nightly built with openblas as a test reference. During the test there are segfaults appearing, and after some debugging I found the |
Probably. I cherry picked 739c3c4 and removed the platform check |
Still not reproduced with today's gcc from git, neither at O2 nor at O3. |
Also not reproduced with current |
Thanks for your efforts. I'll try again reproducing my issue and make a MWE. |
make command:
When testing Complex BLAS, I get segmentation fault:
The text was updated successfully, but these errors were encountered: