Skip to content
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

Docker image not starting on macOS 15.2 with chip M4 #3786

Open
ernstc opened this issue Dec 18, 2024 · 3 comments
Open

Docker image not starting on macOS 15.2 with chip M4 #3786

ernstc opened this issue Dec 18, 2024 · 3 comments
Labels

Comments

@ernstc
Copy link

ernstc commented Dec 18, 2024

Describe the Bug

Intialization of DAPR fails on MacOS 15.2 with chip M4 because it is not able to start the Zipkin docker images. During the initialization it pulls the latest version of the docker image. This image, that at the time of writing is version 3.4.3, uses Java Runtime 21.

What happens is that as the container starts, it crashes with the error below:

A fatal error has been detected by the Java Runtime Environment:

SIGILL (0x4) at pc=0x0000ffff9fc67c5c, pid=1, tid=7

JRE version: (21.0.5+11) (build ) Java VM: OpenJDK 64-Bit Server VM (21.0.5+11-alpine-r0, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64) Problematic frame: j java.lang.System.registerNatives()V+0 java.base

With this combination of OS and hardware, it failes with all docker image versions from latest to 2.24.4 because all of them use Java Runtime 21.

The docker image 2.24.3 is working fine because it uses Java Runtime 17.

The same issue is described here: corretto/corretto-21#85
It seems that disabling the use of SVE in Java Runtime 21 can fix the issue:

java -XX:UseSVE=0

Steps to Reproduce

Prerequisites

  • OS: macos 15.2
  • Hardware: Apple Silicon M4 chip

Steps

  1. Install Dapr CLI with Homebrew with the command "brew install dapr/tap/dapr-cli" or in any other ways described in the documentation
  2. Run Docker Desktop if it is not running
  3. Run command "dapr init"

Expected Behaviour

The Dapr initialization must complete successfully.

@ernstc ernstc added the bug label Dec 18, 2024
@arey
Copy link

arey commented Dec 27, 2024

I've got the same error on my M4:

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0x0000ffff8733fc5c, pid=1, tid=7
#
# JRE version:  (21.0.5+11) (build )
# Java VM: OpenJDK 64-Bit Server VM (21.0.5+11-alpine-r0, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# j  java.lang.System.registerNatives()V+0 java.base
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /zipkin/hs_err_pid1.log
[0.019s][warning][os] Loading hsdis library failed
#
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.

@thaoula
Copy link

thaoula commented Dec 28, 2024

hi @arey ,

I added the following to docker compose

environment:
- JAVA_OPTS=-XX:UseSVE=0

To get it starting in the time being.

@arey
Copy link

arey commented Dec 28, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants