-
Notifications
You must be signed in to change notification settings - Fork 28.4k
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
Segmentation fault with -O3 and -flto with GCC 8.3.0 and newer #27054
Comments
Thanks for the report. Node.js is normally built with It seems the reporter of the GCC bug explicitly overrode that but that's not a supported configuration so I'll go ahead and close this out. |
Heh, knowing that, it would save some time for me :) |
V8, the Javascript engine, relies heavily on techniques that are not strict-aliasing safe. Fixing that has been discussed since at least 2010 and it's 2019 now so I don't think it'll happen anytime soon. :-) |
I have the exact same issue just by enabling lto (--enable-lto). I am not messing around with -fno-strict-aliasing. |
@emerzon Since you are not changing compiler flags, it’s likely a different underlying problem – can you open a new bug report, fill out the details (esp. system information + maybe compile version), and the steps that you used to reproduce? |
As analyzed in GCC bug report, I suspect nodejs violates aliasing rules:
https://github.com/nodejs/node/blob/master/src/node_platform.cc#L397
The text was updated successfully, but these errors were encountered: