-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
DynamoDB: Disable Scalable Vector Extensions in JRE #12112
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
Conversation
|
||
# Workaround for JVM SIGILL crash on Apple Silicon M4 | ||
# See https://bugs.openjdk.org/browse/JDK-8345296 | ||
# To be removed after Java is bumped to 17.0.15+ and 21.0.7+ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eclipse Temurin haven't released the latest builds yet
b47d33a
to
caaf2d2
Compare
caaf2d2
to
861fe8b
Compare
LocalStack Community integration with Pro 2 files ± 0 2 suites ±0 27m 44s ⏱️ - 1h 24m 15s Results for commit 861fe8b. ± Comparison against base commit 0191993. This pull request removes 2870 tests.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot, @viren-nadkarni for digging into this! I think this could be a very good lead to fix the issue, even though we unfortunately lack access to the hardware to actually test it on Apple M4.
Definitely worth a try, and we can ask users in #12054 to verify the blind fix once it's shipped in the latest image.
Background
There have been several reports of JRE crashing with SIGILL on Apple Silicon M4. This crash is specific to JRE 17+ when running in a Docker container (i.e. when prctl is not available) on aarch64.
In LocalStack, the bug affects DynamoDB Local.
Changes
This PR adds the suggested workaround of disabling Scalable Vector Extensions (SVE) in JRE.
SVE disable option is passed to the JVM only when supported, otherwise it complains about unsupported VM option and exits.
Tests
Due to lack of an M4 machine, it is not tested whether this resolves the issue.
Related
See https://bugs.openjdk.org/browse/JDK-8345296
Might close - #12054