Skip to content

Corretto 21 hard crash within Docker container on Apple M4 / macOS 15.2 Processors (aarch64) #85

@dylanneild

Description

@dylanneild

Describe the bug

Cannot launch Corretto 21 "java" process within a Docker container running on an Apple M4 processor, running macOS 15.2.

To Reproduce

  1. `$ docker exec --rm -ti ubuntu:24.04 bash"
  2. # apt -y update
  3. # apt install -y wget
  4. # wget -P / https://corretto.aws/downloads/latest/amazon-corretto-21-aarch64-linux-jdk.deb
  5. # apt-get install -y /amazon-corretto-21-aarch64-linux-jdk.deb
  6. # java

Output as follows:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0x0000ffff97d3fc5c, pid=2847, tid=2848
#
# JRE version:  (21.0.5+11) (build )
# Java VM: OpenJDK 64-Bit Server VM (21.0.5+11-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# j  java.lang.System.registerNatives()V+0 [email protected]
#
# 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:
# //hs_err_pid2847.log
[0.021s][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

Note that identical behaviour occurs with Corretto 23; so something appears to be completely broken on macOS 15.2/Docker/aarch64 right now.

Expected behavior

Fairly clear; running java in any capacity should work.

Screenshots

image

Platform information

OS: macOS 15.2 running Docker 
Version 21.0.5+11-LTS

Additional context

Log data attached:

hs_err_pid2866.log.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions