Skip to content

Hazelcast test image does not work on ARM M4 #44838

@snicoll

Description

@snicoll

hazelcast/hazelcast:5.5.0-slim (that uses JDK21) breaks on an Apple M4 CPU (and not on M2):

hazelcast-1  | ########################################
hazelcast-1  | # JAVA=/usr/bin/java
hazelcast-1  | # JAVA_OPTS=--add-modules java.se --add-exports java.base/jdk.internal.ref=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.management/sun.management=ALL-UNNAMED --add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED -Dlog4j.shutdownHookEnabled=false -Dhazelcast.logging.shutdown=true -Dhazelcast.logging.type=log4j2 -Dlog4j.configurationFile=file:/opt/hazelcast/config/log4j2.properties -Dhazelcast.config=/opt/hazelcast/config/hazelcast-docker.xml -Djet.custom.lib.dir=/opt/hazelcast/custom-lib -Djava.net.preferIPv4Stack=true -XX:MaxRAMPercentage=80.0
hazelcast-1  | # CLASSPATH=/opt/hazelcast/*:/opt/hazelcast/lib:/opt/hazelcast/lib/*:/opt/hazelcast/bin/user-lib:/opt/hazelcast/bin/user-lib/*
hazelcast-1  | ########################################
hazelcast-1  | #
hazelcast-1  | # A fatal error has been detected by the Java Runtime Environment:
hazelcast-1  | #
hazelcast-1  | #  SIGILL (0x4) at pc=0x0000ffff79d3fc5c, pid=1, tid=27
hazelcast-1  | #
hazelcast-1  | # JRE version:  (21.0.4+7) (build )
hazelcast-1  | # Java VM: OpenJDK 64-Bit Server VM (21.0.4+7-alpine-r0, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
hazelcast-1  | # Problematic frame:
hazelcast-1  | # j  java.lang.System.registerNatives()V+0 java.base
hazelcast-1  | #
hazelcast-1  | # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
hazelcast-1  | #
hazelcast-1  | # An error report file with more information is saved as:
hazelcast-1  | # /tmp/hs_err_pid1.log
hazelcast-1  | [0.012s][warning][os] Loading hsdis library failed
hazelcast-1  | #
hazelcast-1  | # The crash happened outside the Java Virtual Machine in native code.
hazelcast-1  | # See problematic frame for where to report the bug.
hazelcast-1  | #
hazelcast-1 exited with code 139

hazelcast/hazelcast:5.5.0-slim-jdk17 doesn't exhibit this issue so we'll change the test image to use that.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions