Startup failure - arch64 - crashes - arm64 - fedora, rocky9, centos9, macbook m4, docker

Get the following error whenever trying to install and run elasticsearch on aarch64 rocky9.5 or fedora 6.11.4

stdoout:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0x0000ffff97d410a8, pid=2022, tid=2031
#
# JRE version:  (23.0+37) (build )
# Java VM: OpenJDK 64-Bit Server VM (23+37-2369, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, serial gc, linux-aarch64)
# Problematic frame:
# j  java.lang.System.registerNatives()V+0 java.base@23
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /usr/share/elasticsearch/core.2022)
#
# An error report file with more information is saved as:
# /usr/share/elasticsearch/hs_err_pid2022.log
[0.015s][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

uname:
Linux localhost.localdomain 6.11.4-301.fc41.aarch64 #1 SMP PREEMPT_DYNAMIC Sun Oct 20 15:21:05 UTC 2024 aarch64 GNU/Linux

JAVA Bundled:

/usr/share/elasticsearch/jdk/bin$ sudo ./java --version
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0x0000ffff93d411a8, pid=2112, tid=2113
#
# JRE version:  (23.0+37) (build )
# Java VM: OpenJDK 64-Bit Server VM (23+37-2369, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# j  java.lang.System.registerNatives()V+0 java.base@23
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /usr/share/elasticsearch/jdk/bin/core.2112)
#
# An error report file with more information is saved as:
# /usr/share/elasticsearch/jdk/bin/hs_err_pid2112.log
[0.015s][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```

YUM:
elasticsearch-0:8.16.1-1.aarch64


```sudo yum install --enablerepo=elasticsearch elasticsearch
Updating and loading repositories:
 Elasticsearch repository for 8.x packages                                                                                                             100% |   9.7 KiB/s |   1.3 KiB |  00m00s
Repositories loaded.
Package                                                          Arch            Version                                                          Repository                               Size
Installing:
 elasticsearch                                                   aarch64         8.16.1-1                                                         elasticsearch                       733.1 MiB

Transaction Summary:
 Installing:         1 package

Total size of inbound packages is 461 MiB. Need to download 461 MiB.
After this operation, 733 MiB extra will be used (install 733 MiB, remove 0 B).
Is this ok [y/N]: y
[1/1] elasticsearch-0:8.16.1-1.aarch64                                                                                                                 100% |  21.1 MiB/s | 460.9 MiB |  00m22s
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[1/1] Total                                                                                                                                            100% |  21.1 MiB/s | 460.9 MiB |  00m22s
Running transaction
[1/3] Verify package files                                                                                                                             100% |   1.0   B/s |   1.0   B |  00m01s
[2/3] Prepare transaction                                                                                                                              100% |  23.0   B/s |   1.0   B |  00m00s
[3/3] Installing elasticsearch-0:8.16.1-1.aarch64                                                                                 100% [==================] | 324.6 MiB/s | 733.3 MiB | -00m00s
>>> Running post-transaction scriptlet: elasticsearch-0:8.16.1-1.aarch64
>>> Non-critical error in post-transaction scriptlet: elasticsearch-0:8.16.1-1.aarch64
>>> Scriptlet output:
[3/3] Installing elasticsearch-0:8.16.1-1.aarch64                                                                                                      100% | 270.1 MiB/s | 733.3 MiB |  00m03s
>>> Running post-transaction scriptlet: elasticsearch-0:8.16.1-1.aarch64
>>> Non-critical error in post-transaction scriptlet: elasticsearch-0:8.16.1-1.aarch64
>>> Scriptlet output:
>>> #
>>> # A fatal error has been detected by the Java Runtime Environment:
>>> #
>>> #  SIGILL (0x4) at pc=0x0000ffff87d410a8, pid=1627, tid=1636
>>> #
>>> # JRE version:  (23.0+37) (build )
>>> # Java VM: OpenJDK 64-Bit Server VM (23+37-2369, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, serial gc, linux-aarch64)
>>> # Problematic frame:
>>> # j  java.lang.System.registerNatives()V+0 java.base@23
>>> #
>>> # Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /usr/share/elasticsearch/core.1627)
>>> #
>>> # An error report file with more information is saved as:
>>> # /usr/share/elasticsearch/hs_err_pid1627.log
>>> [0.007s][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.
>>> #
>>> /var/tmp/rpm-tmp.ErwOMr: line 27:  1627 Aborted                 (core dumped) /usr/share/elasticsearch/bin/elasticsearch-keystore create
>>>
>>> Stop post-transaction scriptlet: elasticsearch-0:8.16.1-1.aarch64
Complete!```

Also in AWS ec2 instances:

uname -a
Linux ip-172-31-26-166.ec2.internal 5.14.0-511.el9.aarch64 #1 SMP PREEMPT_DYNAMIC Thu Sep 19 07:04:53 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux

Install:

sudo yum install -y --enablerepo=elasticsearch elasticsearch
CentOS Stream 9 - BaseOS                                                                                                                                        11 MB/s | 9.5 MB     00:00
CentOS Stream 9 - AppStream                                                                                                                                     20 MB/s |  19 MB     00:00
CentOS Stream 9 - Extras packages                                                                                                                               91 kB/s |  19 kB     00:00
Elasticsearch repository for 8.x packages                                                                                                                       17 MB/s |  80 MB     00:04
Killed

Ignore aws that worked with increased mem and el8

Same for Docker on Macbook m4:

docker run --name es01 --net elastic -p 9200:9200 -it -m 1GB docker.elastic.co/elasticsearch/elasticsearch:8.16.1
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0x0000ffff7bd400a8, pid=7, tid=16
#
# JRE version:  (23.0+37) (build )
# Java VM: OpenJDK 64-Bit Server VM (23+37-2369, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, serial gc, linux-aarch64)
# Problematic frame:
# j  java.lang.System.registerNatives()V+0 java.base@23
#
# 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:
# /usr/share/elasticsearch/hs_err_pid7.log
[0.032s][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.
#

Same issue, I think it happened after updating macOS Sequoia 15.2.

Happening for me on M4 Mac running 15.2. I created an issue here: macOS 15.2 M4: Unable to launch Elasticsearch Docker container · Issue #118583 · elastic/elasticsearch · GitHub

1 Like

Did anyone find a work around? Please upvote the GitHub issue above.