-
Notifications
You must be signed in to change notification settings - Fork 90
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
Illegal Instruction in GHCUP on x86_64 (Nobara Linux) #1003
Comments
Interesting, I'll investigate that. |
I have CI self hosted runners that are using AMD Ryzen™ 7 7700. And I definitely cannot reproduce it there. I have not tried Nobara Linux, but I can't see how that would be relevant. Are you running under some KVM cloud stuff? |
No cloud stuff. It's just an ordinary desktop I use for development and gaming. I haven't had any similar issues with other toolchains. |
Can you provide the coredump? |
Output of
I have a massive dump file (8000+ lines) as well. Would that be useful? |
Yes |
CCing @bgamari in case this might be interesting |
I've included a google drive link to the file since it's too large to be attached here https://drive.google.com/file/d/1IkbqgBa19s33RvzReV1J1U7S3jzzCWKf/view?usp=sharing |
@jackjohn7 you can attach it here if you zip it: core_dump.zip |
Very odd. Indeed it appears the executable jumped into the middle of an abyss:
Even stranger, the Haskell stack register is complete nonsense.
Something has gone horribly wrong in this program. I have tried to reproduce this locally with Nobara 39 running under a VM on a Ryzen 5900X to no avail. |
@jackjohn7, a few questions:
|
|
UpdateAVX512 was disabled for my CPU. I carelessly disabled this feature for playing a particular game. Re-enabling it seems to have fixed the issue entirely. That or updating my system may have effected it. In any case, the toolchain is now working for me. I see this got tagged as a bug. Was this reproduced for anyone else? |
I'm using Nobara Linux which is based on Fedora.
When I execute the
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
command listed on the homepage for the website I respond to all the configuration prompts and it seems to install properly. Then when the script goes to execute ghcup, I'm met with this output:After this, I tried installing ghcup through the binaries on the file server linked in the documentation for those who don't like
curl | sh
. I used the most recent x86_64-linux binary. I placed it in the same location that the installation script does, and I added the location to my path. I get the same error when I attempt to use a command (only --help doesn't fail):It seems to be running an illegal CPU instruction in any case. I don't see how this could be. I'm using an x86_64 processor (ryzen 7 7700x). Output of
lscpu
below.I didn't see another issue quite like this and I couldn't find anyone else with the same issue on Google. I've just verified that the latest installation works fine on my Fedora laptop also using x86_64 (ryzen 5 5500u).
I tried seeing if the esoteric distros section of the installation docs could help, but nothing I tried there worked either.
https://www.haskell.org/ghcup/install/#esoteric-distros
I can use GHC, and cabal-install provided by my package manager for the time being, but I thought I should still report this in case someone encounters something similar.
The text was updated successfully, but these errors were encountered: