This repository was archived by the owner on Mar 23, 2026. It is now read-only.
Repository navigation
DynamoDB: Disable Scalable Vector Extensions in JRE - #12112
Merged
Merged
Conversation
viren-nadkarni
marked this pull request as ready for review
January 8, 2025 12:55
viren-nadkarni
marked this pull request as draft
January 8, 2025 13:35
viren-nadkarni
commented
Jan 9, 2025
|
|
||
| # 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+ |
Member
Author
There was a problem hiding this comment.
viren-nadkarni
force-pushed
the
dynamodb-aarch64
branch
from
January 9, 2025 08:24
b47d33a to
caaf2d2
Compare
viren-nadkarni
force-pushed
the
dynamodb-aarch64
branch
from
January 9, 2025 08:25
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. |
viren-nadkarni
marked this pull request as ready for review
January 9, 2025 08:49
alexrashed
approved these changes
Jan 9, 2025
alexrashed
left a comment
Member
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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