-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[Native Image] SIGILL Crash in GraalVM 23.0.1 on Amazon Linux 2023 with ARM64 Architecture Without -XX:UseSVE=0 #10458
Comments
After digging into this issue a bit more it looks like this may be something related to the host computer I am running my container in. I am using a M4 Mac and runing docker using Rancher Desktop. After flipping between QEMU and vs virutization options without success I came across this tangentally related StackOverflow post: https://stackoverflow.com/questions/79312200/gdb-error-unable-to-fetch-sve-ssve-vector-length-invalid-argument-on-docker. By starting docker using Colima and setting I have to admit, I don't know enough about the root cause to understad if this is some kind of general issue with Apple M4s or if it is something specific to my setup. I also don't know if there is anything the GraalVM team could do to help with this issue. I would be really interested if anyone from the team who understands more could help out, is this anything that could be fixed with GraalVM itself? I was also able to reproduce this issue using the standard GraalVM docker image on my local M4 Mac.
For me running |
Thanks for taking a look at this @fernando-valdez. I see the issue is marked as closes completed, do you have any details as to when and where this fix was included? Thanks! |
Hi @francis-a, I think I misinterpret the last comment. Let me take a closer look at this issue and I will report back any findings we have |
This looks like: https://bugs.openjdk.org/browse/JDK-8345296 Does |
Yeah, this will fix the SIGILL in some but not all cases. With I believe it may be because SVE2 instructions are still being allowed even if SVE is disabled. |
Describe the Issue
When running GraalVM version 23.0.1 on an ARM64-based system using Amazon Linux 2023, invoking the GraalVM java binary results in a fatal crash (SIGILL) unless the JVM argument -XX:UseSVE=0 is explicitly set. This appears to be related to the handling of SVE instructions on the platform.
Edit: This issue looks to only be reproducible when running the container from an Apple M3 or M4 Mac.
Using the latest version of GraalVM can resolve many issues.
GraalVM Version
openjdk version "23.0.1" 2024-10-15
OpenJDK Runtime Environment GraalVM CE 23.0.1+11.1 (build 23.0.1+11-jvmci-b01)
OpenJDK 64-Bit Server VM GraalVM CE 23.0.1+11.1 (build 23.0.1+11-jvmci-b01, mixed mode, sharing)
Operating System and Version
amazonlinux:2023
Troubleshooting Confirmation
Run Command
/usr/lib/graalvm/bin/java -version
Expected Behavior
The java command should print the version information and exit without any errors.
Actual Behavior
The java command results in a fatal error with the following message:
Steps to Reproduce
Use the following Dockerfile to build an image on an ARM64 platform:
Build the image:
docker build -t graalvm-bug-report .
Run the container:
docker run --rm -it graalvm-bug-report
Inside the container, run:
/usr/lib/graalvm/bin/java -version
Additional Context
Running
/usr/lib/graalvm/bin/java -XX:UseSVE=0 -version
in the docker image will output the version.Run-Time Log Output and Error Messages
No response
The text was updated successfully, but these errors were encountered: