openjdk21 crash on aarch64 docker, but not on the underlying darwin host
On an M1 Macbook, I can run the following without crashing
$ java -version
java version "21.0.1" 2023-10-17 LTS
Java(TM) SE Runtime Environment (build 21.0.1+12-LTS-29)
Java HotSpot(TM) 64-Bit Server VM (build 21.0.1+12-LTS-29, mixed mode, sharing)
$ curl -sSL https://zipkin.io/quickstart.sh | bash -s
$ STORAGE_TYPE=elasticsearch ES_HOSTS=http://es.dev:9200 ES_INDEX=zipkin java -jar zipkin.jar
However, if I run this configuration on the zipkin Alpine Linux 3.9.0 image, it crashes
$ docker run --entrypoint /bin/sh -it --rm openzipkin/zipkin:2.25.1
~ $ STORAGE_TYPE=elasticsearch ES_HOSTS=http://es.dev:9200 ES_INDEX=zipkin /usr/local/bin/start-zipkin
oo
oooo
oooooo
oooooooo
oooooooooo
oooooooooooo
ooooooo ooooooo
oooooo ooooooo
oooooo ooooooo
oooooo o o oooooo
oooooo oo oo oooooo
ooooooo oooo oooo ooooooo
oooooo ooooo ooooo ooooooo
oooooo oooooo oooooo ooooooo
oooooooo oo oo oooooooo
ooooooooooooo oo oo ooooooooooooo
oooooooooooo oooooooooooo
oooooooo oooooooo
oooo oooo
________ ____ _ _____ _ _
|__ /_ _| _ \| |/ /_ _| \ | |
/ / | || |_) | ' / | || \| |
/ /_ | || __/| . \ | || |\ |
|____|___|_| |_|\_\___|_| \_|
:: version 2.25.1 :: commit 82c3d7a ::
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00000000000226a0, pid=1807, tid=1808
#
# JRE version: OpenJDK Runtime Environment (21.0.1+12) (build 21.0.1+12-alpine-r0)
# Java VM: OpenJDK 64-Bit Server VM (21.0.1+12-alpine-r0, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# C [libnetty_tcnative_linux_aarch_6411579551109108866588.so+0x2330c] init_have_lse_atomics+0xc
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /zipkin/core.1807)
#
# An error report file with more information is saved as:
# /zipkin/hs_err_pid1807.log
[1.402s][warning][os] Loading hsdis library failed
#
# If you would like to submit a bug report, please visit:
# https://gitlab.alpinelinux.org/alpine/aports/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted (core dumped)
Any ideas?