[ https://issues.apache.org/jira/browse/TIKA-4380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17924256#comment-17924256 ]
William Miller commented on TIKA-4380: -------------------------------------- I can't speak to [~tallison]'s question regarding unintended effects of adding the flag. Looking at the PR for the bug itself: [https://github.com/openjdk/jdk21u-dev/pull/1222] "So the root cause is that Sonoma 15.2 introduced a regression that breaks SVE. it makes it unavailable natively and crashes JVM under a virtualization environments" It seems the solution preferred by the Java team is disabling SVE: [https://github.com/openjdk/jdk/commit/3c60f0b2bb75150d49da9ab94d88b767275de5e2] Therefore it seems this is the approach that should be taken until a more robust fix is in place. As an end user, and someone using M4 Macs extensively in server environments, I'm in favor of an "out of the box" fix. It took a good deal of digging to find this in my application stack, and as I've never deployed Tika directly, wouldn't know where to look for extra flags. The discussion above mentions a regression in macOS 15.2, but I am on 15.3 and the issue persists. "SVE is a feature of modern AArch64 CPUs. AFAIU, this means Apple M4+, Graviton 3+, etc." Seems it is not going away. > Java crash on M4 processor > -------------------------- > > Key: TIKA-4380 > URL: https://issues.apache.org/jira/browse/TIKA-4380 > Project: Tika > Issue Type: Bug > Components: tika-docker > Reporter: William Miller > Priority: Major > Labels: java > > Hi Tika team, > There appears to be a Java bug impacting only M4 variant Arm processors on > Apple systems: > [https://bugs.openjdk.org/browse/JDK-8345296] > I discovered the bug when a Docker stack I use frequently had a Tika > container stuck in a crash/restart loop: > [https://github.com/owncloud/ocis/issues/10965] > This issue seems to be mitigated by adding an env flag: > JAVA_OPTS: "-XX:UseSVE=0" > I see more discussion of it here: > [https://github.com/corretto/corretto-21/issues/85] > [https://forums.docker.com/t/image-builds-fail-on-new-macbook-despite-working-fine-on-prior-apple-silicon/145772/5] > I don't personally use Tika outside the scope of this application stack, but > I thought I'd report here so it can be addressed. > > Thanks to everyone who devotes their time and energy to these valuable open > source projects. -- This message was sent by Atlassian Jira (v8.20.10#820010)