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 container for cloud-agent fails to start on Mac M4 / MacOS 15.2 #1482

Open
coveloper opened this issue Dec 16, 2024 · 1 comment
Open
Assignees

Comments

@coveloper
Copy link

Is this a regression?

Yes

Description

Running Identus via Docker fails to start the cloud-agent.

When the cloud-agent container starts this is displayed in the Docker log:

2024-12-16 10:09:40
2024-12-16 10:09:40 No java installations was detected.
2024-12-16 10:09:40 Please go to http://www.java.com/getjava/ and download
2024-12-16 10:09:40
2024-12-16 10:14:19
2024-12-16 10:14:19 No java installations was detected.
2024-12-16 10:14:19 Please go to http://www.java.com/getjava/ and download
2024-12-16 10:14:19

Please provide the exception or error you saw

➜  identus git:(main) docker run -it --rm --entrypoint=/bin/bash docker.io/identus/identus-cloud-agent:1.40.0
[demiourgos728@cbee9ed795b0 docker]$ ls -la
total 16
drwxr-xr-x 1 root          root 4096 Nov  5 11:28 .
drwxr-xr-x 1 root          root 4096 Nov  5 11:31 ..
dr-xr-xr-x 2 demiourgos728 root 4096 Nov  5 11:28 bin
dr-xr-xr-x 1 demiourgos728 root 4096 Nov  5 11:28 lib
[demiourgos728@cbee9ed795b0 docker]$ java
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0x0000ffff97f3fc1c, pid=16, tid=17
#
# JRE version:  (21.0+35) (build )
# Java VM: OpenJDK 64-Bit Server VM (21+35-2513, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# j  java.lang.System.registerNatives()V+0 java.base@21
#
# 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:
# /tmp/hs_err_pid16.log
[0.022s][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.
#
Aborted

Please provide the environment you discovered this bug in

Apple M4 Pro 14" MacBook Pro
macOS 15.2

To reproduce:
git clone [email protected]:hyperledger/identus.git
cd identus/identus-docker
docker compose up

docker run -it --rm --entrypoint=/bin/bash docker.io/identus/identus-cloud-agent:1.40.0

java --version (or any reference to java)

Anything else?

I confirmed that this issue is not present on M1 Max / macOS 15.1.1 (not sure if it's the chip or the os version to blame)

@FabioPinheiro
Copy link
Contributor

Seems to be related with https://bugs.openjdk.org/browse/JDK-8345296

Since the Workaround: -XX:UseSVE=0 was reported to make java work.

@FabioPinheiro FabioPinheiro self-assigned this Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants