Elasticsearch / OpenJDK8 fails to start on 13.0-RELEASE on arm64

Adrian Maliszewski <[email protected]>
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <CAATK+TauSX7hcPfe0yfbikhvmtCXzSUmeROtZwwWPEV9dHNhgA@mail.gmail.com>
Hello freebsd-arm,

Trying to start elasticsearch installed from packages on 13.0-release arm64

FreeBSD devbox 13.0-RELEASE-p4 FreeBSD 13.0-RELEASE-p4 #0: Tue Aug 24
07:38:07 UTC 2021
[email protected]:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC
 arm64

results in message from openjdk8


[root@develk /usr/ports/java/openjdk8]# service elasticsearch onestart
Starting elasticsearch.
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0x000000004224b9a0, pid=14774, tid=0x0000000000018807
#
# JRE version:  (8.0_302-b08) (build )
# Java VM: OpenJDK 64-Bit Server VM (25.302-b08 mixed mode bsd-aarch64
compressed oops)
# Problematic frame:
# v  ~BufferBlob::native signature handlers
#
# Core dump written. Default location: //java.core
#
# An error report file with more information is saved as:
# /tmp/hs_err_pid14774.log
#
# If you would like to submit a bug report, please visit:
#   https://bugs.freebsd.org/bugzilla/enter_bug.cgi?product=Ports%20%26%20Packages&component=Individual%20Port(s)&short_desc=java/openjdk8%3A%20
#
/usr/local/lib/elasticsearch/bin/elasticsearch-env: line 88: 14774
Abort trap              "$JAVA" "$XSHARE" -cp "$ES_CLASSPATH"
org.elasticsearch.tools.java_version_checker.JavaVersionChecker
/usr/local/etc/rc.d/elasticsearch: WARNING: failed to start elasticsearch

Best regards, happy new year,
AM
hs_err_pid14774.log (application/octet-stream, 14 KB)
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0x000000004224b9a0, pid=14774, tid=0x0000000000018807
#
# JRE version:  (8.0_302-b08) (build )
# Java VM: OpenJDK 64-Bit Server VM (25.302-b08 mixed mode bsd-aarch64 compressed oops)
# Problematic frame:
# v  ~BufferBlob::native signature handlers
#
# Core dump written. Default location: //java.core
#
# If you would like to submit a bug report, please visit:
#   https://bugs.freebsd.org/bugzilla/enter_bug.cgi?product=Ports%20%26%20Packages&component=Individual%20Port(s)&short_desc=java/openjdk8%3A%20
#

---------------  T H R E A D  ---------------

Current thread (0x0000000042061000):  JavaThread "main" [_thread_in_Java, id=100359, stack(0x0000ffffbfdfe000,0x0000ffffbfffe000)]

siginfo: si_signo: 4 (SIGILL), si_code: 4 (ILL_ILLTRP), si_addr: 0x0000000041800000

Registers:
R0 =0x000000004202c980 is an unknown value
R1 =0x0000000000000000 is an unknown value
R2 =0x0000000000000018 is an unknown value
R3 =0x0000000000000000 is an unknown value
R4 =0x0000000042253a18 is at code_begin+24 in 
[CodeBlob (0x0000000042253990)]
Framesize: 0
BufferBlob (0x0000000042253990) used for Signature Handler Temp Buffer
R5 =0x000000004224b9b8 is at code_begin+56 in 
[CodeBlob (0x000000004224b910)]
Framesize: 0
BufferBlob (0x000000004224b910) used for native signature handlers
R6 =0xf85f830291000301 is an unknown value
R7 =0xf2a84420d2817e00 is an unknown value
R8 =0x0000000000000000 is an unknown value
R9 =0xee1fb66e0742b468 is an unknown value
R10=0x0000000000000007 is an unknown value
R11=0x0000000000000006 is an unknown value
R12={method} {0x000000004be30740} 'setPriority0' '(I)V' in 'java/lang/Thread'
R13=0xd65f03c0f2c00000 is an unknown value
R14=0x000000004206f100 is an unknown value
R15=0x000000004be2be20 is pointing into metadata
R16=0x0000000041bb6728: gHotSpotVMLongConstants+0xaa8 in /usr/local/openjdk8/jre/lib/aarch64/server/libjvm.so at 0x0000000041000000
R17=0x000000004224b9a0 is at code_begin+32 in 
[CodeBlob (0x000000004224b910)]
Framesize: 0
BufferBlob (0x000000004224b910) used for native signature handlers
R18=0x0000ffffbfffc2f8 is pointing into the stack for thread: 0x0000000042061000
R19=0x00000000000000b7 is an unknown value
R20=0x0000ffffbfffd760 is pointing into the stack for thread: 0x0000000042061000
R21=0x0000000041c02230: gHotSpotVMLongConstants+0x4c5b0 in /usr/local/openjdk8/jre/lib/aarch64/server/libjvm.so at 0x0000000041000000
R22=0x0000000000000000 is an unknown value
R23=0x000000004220037c is at begin+0 in a stub
StubRoutines::call_stub [0x000000004220037c, 0x000000004220048c[ (272 bytes)
R24=0x0000ffffbfffd7d8 is pointing into the stack for thread: 0x0000000042061000
R25=0x0000ffffbfffdda8 is pointing into the stack for thread: 0x0000000042061000
R26=0x000000004beb68c0 is pointing into metadata
R27=0x0000000000000000 is an unknown value
R28=0x0000000042061000 is a thread
R29=0x0000ffffbfffd7b0 is pointing into the stack for thread: 0x0000000042061000

Top of Stack: (sp=0x0000ffffbfffd760)
0x0000ffffbfffd760:   0000000042214eec 000000004be30740
0x0000ffffbfffd770:   0000ffffbfffd770 0000000000000000
0x0000ffffbfffd780:   0000ffffbfffd7d8 000000004beb68c0
0x0000ffffbfffd790:   0000000000000000 000000004be30740
0x0000ffffbfffd7a0:   0000000000000000 0000ffffbfffd7a0
0x0000ffffbfffd7b0:   0000ffffbfffd820 0000000042208498
0x0000ffffbfffd7c0:   0000000000000000 0000000000000000
0x0000ffffbfffd7d0:   0000000000000005 00000000f5805d38
0x0000ffffbfffd7e0:   0000ffffbfffd7e0 000000004be2f0a4
0x0000ffffbfffd7f0:   0000ffffbfffd848 000000004beb68c0
0x0000ffffbfffd800:   0000000000000000 000000004be2f0b8
0x0000ffffbfffd810:   0000ffffbfffd7d0 0000ffffbfffd810
0x0000ffffbfffd820:   0000ffffbfffd890 0000000042208498
0x0000ffffbfffd830:   0000ffffbfffd890 00000000f5805838
0x0000ffffbfffd840:   0000000000000005 00000000f5805d38
0x0000ffffbfffd850:   0000ffffbfffd850 000000004be2dcf4
0x0000ffffbfffd860:   0000ffffbfffd8e8 000000004beb68c0
0x0000ffffbfffd870:   0000000000000000 000000004be2dd48
0x0000ffffbfffd880:   0000ffffbfffd840 0000ffffbfffd890
0x0000ffffbfffd890:   0000ffffbfffd930 0000000042208498
0x0000ffffbfffd8a0:   0000000000000000 00000000f5805d38
0x0000ffffbfffd8b0:   0000000000000001 0000000000000000
0x0000ffffbfffd8c0:   0000000000000000 0000000000000000
0x0000ffffbfffd8d0:   00000000f5805eb0 0000000000000000
0x0000ffffbfffd8e0:   00000000f5805838 00000000f5805d38
0x0000ffffbfffd8f0:   0000ffffbfffd8f0 000000004be2dbb0
0x0000ffffbfffd900:   0000ffffbfffd968 000000004beb68c0
0x0000ffffbfffd910:   0000000000000000 000000004be2dbc0
0x0000ffffbfffd920:   0000ffffbfffd8b0 0000ffffbfffd920
0x0000ffffbfffd930:   0000ffffbfffd9b0 0000000042208498
0x0000ffffbfffd940:   0000000000000000 0000000042208498
0x0000ffffbfffd950:   00000000f5805eb0 0000000000000000 

Instructions: (pc=0x000000004224b9a0)
0x000000004224b980:   00 7e 81 d2 20 44 a8 f2 00 00 c0 f2 c0 03 5f d6
0x000000004224b990:   80 7f 81 d2 20 44 a8 f2 00 00 c0 f2 c0 03 5f d6
0x000000004224b9a0:   01 03 00 91 02 83 5f f8 00 7e 81 d2 20 44 a8 f2
0x000000004224b9b0:   00 00 c0 f2 c0 03 5f d6 00 00 00 00 00 00 00 00 

Register to memory mapping:

R0=0x000000004202c980
R1=0x0000000000000000
R2=0x0000000000000018
R3=0x0000000000000000
R4=0x0000000042253a18
R5=0x000000004224b9b8
R6=0xf85f830291000301
R7=0xf2a84420d2817e00
R8=0x0000000000000000
R9=0xee1fb66e0742b468
R10=0x0000000000000007
R11=0x0000000000000006
R12=0x000000004be30740
R13=0xd65f03c0f2c00000
R14=0x000000004206f100
R15=0x000000004be2be20
R16=0x0000000041bb6728
R17=0x000000004224b9a0
R18=0x0000ffffbfffc2f8
R19=0x00000000000000b7
R20=0x0000ffffbfffd760
R21=0x0000000041c02230
R22=0x0000000000000000
R23=0x000000004220037c
R24=0x0000ffffbfffd7d8
R25=0x0000ffffbfffdda8
R26=0x000000004beb68c0
R27=0x0000000000000000
R28=0x0000000042061000
R29=0x0000ffffbfffd7b0


Stack: [0x0000ffffbfdfe000,0x0000ffffbfffe000],  sp=0x0000ffffbfffd760,  free space=2045k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
v  ~BufferBlob::native signature handlers
j  java.lang.Thread.setPriority(I)V+52
j  java.lang.Thread.init(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;JLjava/security/AccessControlContext;Z)V+172
j  java.lang.Thread.init(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;J)V+8
j  java.lang.Thread.<init>(Ljava/lang/ThreadGroup;Ljava/lang/String;)V+45
v  ~StubRoutines::call_stub
V  [libjvm.so+0x6cb3fc]  AsyncGetCallTrace+0xdfef4
V  [libjvm.so+0x6c9f58]  AsyncGetCallTrace+0xdea50
V  [libjvm.so+0x6ca320]  AsyncGetCallTrace+0xdee18
V  [libjvm.so+0xa71d84]  JVM_handle_bsd_signal+0x11c2d8
V  [libjvm.so+0x739810]  JNI_CreateJavaVM+0x88
C  [libjli.so+0x15f34]  JLI_Launch+0x1764
C  [libthr.so.3+0x1efe0]  pthread_create+0x82c
C  [libthr.so.3+0x1eb38]  pthread_create+0x384


---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
=>0x0000000042061000 JavaThread "main" [_thread_in_Java, id=100359, stack(0x0000ffffbfdfe000,0x0000ffffbfffe000)]

Other Threads:
  0x000000004202a800 VMThread [stack: 0x0000ffffbf3f9000,0x0000ffffbf5f9000] [id=100364]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

heap address: 0x00000000e0600000, size: 506 MB, Compressed Oops mode: 32-bit
Narrow klass base: 0x0000000000000000, Narrow klass shift: 3
Compressed class space size: 1073741824 Address: 0x0000000100000000

Heap:
 PSYoungGen      total 8192K, used 122K [0x00000000f5800000, 0x00000000f6200000, 0x0000000100000000)
  eden space 6144K, 2% used [0x00000000f5800000,0x00000000f581eb90,0x00000000f5e00000)
  from space 2048K, 0% used [0x00000000f6000000,0x00000000f6000000,0x00000000f6200000)
  to   space 2048K, 0% used [0x00000000f5e00000,0x00000000f5e00000,0x00000000f6000000)
 ParOldGen       total 22528K, used 0K [0x00000000e0600000, 0x00000000e1c00000, 0x00000000f5800000)
  object space 22528K, 0% used [0x00000000e0600000,0x00000000e0600000,0x00000000e1c00000)
 Metaspace       used 834K, capacity 4480K, committed 4480K, reserved 1056768K
  class space    used 83K, capacity 384K, committed 384K, reserved 1048576K

Card table byte_map: [0x000000004a400000,0x000000004a4fe000] byte_map_base: 0x0000000049cfd000

Marking Bits: (ParMarkBitMap*) 0x0000000041bfb778
 Begin Bits: [0x000000004a800000, 0x000000004afe8000)
 End Bits:   [0x000000004afe8000, 0x000000004b7d0000)

Polling page: 0x0000000040137000

CodeCache: size=131072Kb used=337Kb max_used=337Kb free=130734Kb
 bounds [0x0000000042200000, 0x0000000042600000, 0x000000004a200000]
 total_blobs=75 nmethods=0 adapters=52
 compilation: enabled

Compilation events (0 events):
No events

GC Heap History (0 events):
No events

Deoptimization events (0 events):
No events

Classes redefined (0 events):
No events

Internal exceptions (0 events):
No events

Events (10 events):
Event: 0.022 loading class java/lang/RuntimePermission
Event: 0.022 loading class java/security/BasicPermission
Event: 0.022 loading class java/security/Permission
Event: 0.022 loading class java/security/Guard
Event: 0.022 loading class java/security/Guard done
Event: 0.022 loading class java/security/Permission done
Event: 0.022 loading class java/security/BasicPermission done
Event: 0.022 loading class java/lang/RuntimePermission done
Event: 0.022 loading class java/security/AccessController
Event: 0.022 loading class java/security/AccessController done


Dynamic libraries:
0x0000000000100000 	/usr/local/openjdk8/bin/java
0x000000004019c000 	/usr/local/openjdk8/bin/../lib/aarch64/jli/libjli.so
0x00000000401d8000 	/lib/libz.so.6
0x000000004021e000 	/lib/libthr.so.3
0x000000004027a000 	/lib/libc.so.7
0x0000000041000000 	/usr/local/openjdk8/jre/lib/aarch64/server/libjvm.so
0x0000000040692000 	/lib/libm.so.5
0x00000000406fd000 	/usr/lib/libc++.so.1
0x0000000041c23000 	/lib/libcxxrt.so.1
0x0000000041c6f000 	/lib/libgcc_s.so.1
0x0000000041cfa000 	/usr/local/openjdk8/jre/lib/aarch64/libverify.so
0x0000000041d38000 	/usr/local/openjdk8/jre/lib/aarch64/libjava.so
0x0000000041d8e000 	/usr/local/openjdk8/jre/lib/aarch64/libzip.so
0x0000000040130000 	/libexec/ld-elf.so.1

VM Arguments:
jvm_args: -Xshare:auto 
java_command: org.elasticsearch.tools.java_version_checker.JavaVersionChecker
java_class_path (initial): /usr/local/lib/elasticsearch/lib/elasticsearch-7.14.0.jar:/usr/local/lib/elasticsearch/lib/elasticsearch-cli-7.14.0.jar:/usr/local/lib/elasticsearch/lib/elasticsearch-core-7.14.0.jar:/usr/local/lib/elasticsearch/lib/elasticsearch-geo-7.14.0.jar:/usr/local/lib/elasticsearch/lib/elasticsearch-launchers-7.14.0.jar:/usr/local/lib/elasticsearch/lib/elasticsearch-plugin-classloader-7.14.0.jar:/usr/local/lib/elasticsearch/lib/elasticsearch-secure-sm-7.14.0.jar:/usr/local/lib/elasticsearch/lib/jna-0.0.0.jar:/usr/local/lib/elasticsearch/lib/joda-time-2.10.10.jar:/usr/local/lib/elasticsearch/lib/lucene-analyzers-common-8.9.0.jar:/usr/local/lib/elasticsearch/lib/lucene-backward-codecs-8.9.0.jar:/usr/local/lib/elasticsearch/lib/lucene-core-8.9.0.jar:/usr/local/lib/elasticsearch/lib/elasticsearch-x-content-7.14.0.jar:/usr/local/lib/elasticsearch/lib/hppc-0.8.1.jar:/usr/local/lib/elasticsearch/lib/jackson-core-2.10.4.jar:/usr/local/lib/elasticsearch/lib/jackson-dataformat-cbor-2.10.4.jar:/usr/local/lib/elasticsearch/lib/jackson-dataformat-smile-2.10.4.jar:/usr/local/lib/elasticsearch/lib/jackson-dataformat-yaml-2.10.4.jar:/usr/local/lib/elasticsearch/lib/java-version-checker-7.14.0.jar:/usr/local/lib/elasticsearch/lib/jopt-simple-5.0.2.jar:/usr/local/lib/elasticsearch/lib/jts-core-1.15.0.jar:/usr/local/lib/elasticsearch/lib/log4j-api-2.11.1.jar:/usr/local/lib/elasticsearch/lib/log4j-core-2.11.1.jar:/usr/local/lib/elasticsearch/lib/lucene-join-8.9.0.jar:/usr/local/lib/elasticsearch/lib/lucene-memory-8.9.0.jar:/usr/local/lib/elasticsearch/lib/lucene-misc-8.9.0.jar:/usr/local/lib/elasticsearch/lib/lucene-queries-8.9.0.jar:/usr/local/lib/elasticsearch/lib/lucene-queryparser-8.9.0.jar:/usr/local/lib/elasticsearch/lib/lucene-suggest-8.9.0.jar:/usr/local/lib/elasticsearch/lib/snakeyaml-1.26.jar:/usr/local/lib/elasticsearch/lib/spatial4j-0.7.jar:/usr/local/lib/elasticsearch/lib/t-digest-3.2.jar:/usr/local/lib/elasticsearch/lib/HdrHistogram-2.1.9.jar:/usr/loca
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin://bin
HOSTTYPE=FreeBSD
OSTYPE=FreeBSD
MACHTYPE=unknown

Signal Handlers:
SIGSEGV: [libjvm.so+0xac9bc0], sa_mask[0]=11111111111111111111111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGBUS: [libjvm.so+0xac9bc0], sa_mask[0]=11111111111111111111111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGFPE: [libjvm.so+0x952880], sa_mask[0]=11111111111111111111111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGPIPE: [libjvm.so+0x952880], sa_mask[0]=11111111111111111111111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGXFSZ: [libjvm.so+0x952880], sa_mask[0]=11111111111111111111111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGILL: [libjvm.so+0x952880], sa_mask[0]=11111111111111111111111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=SA_RESTART
SIGUSR2: [libjvm.so+0x953398], sa_mask[0]=00000000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO
SIGHUP: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGINT: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGTERM: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGQUIT: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none


---------------  S Y S T E M  ---------------

OS:BSD
uname:FreeBSD 13.0-RELEASE-p4 FreeBSD 13.0-RELEASE-p4 #0: Tue Aug 24 07:38:07 UTC 2021     [email protected]:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64
rlimit: STACK 1048576k, CORE infinity, NPROC 6670, NOFILE 58212, AS infinity
load average:0.11 0.23 0.21

CPU:total 4 (initial active 4) 

Memory: 4k page, physical 2070016k(1527792k free), swap 1048576k(1048576k free)

vm_info: OpenJDK 64-Bit Server VM (25.302-b08) for bsd-aarch64 JRE (1.8.0_302-b08), built on Nov  6 2021 05:32:32 by "root" with gcc FreeBSD Clang 11.0.1 ([email protected]:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe)

time: Sun Jan  2 01:23:14 2022
timezone: EST
elapsed time: 0.024373 seconds (0d 0h 0m 0s)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.