Re: openjdk8 crash on aarch64; guarantee(val < (1U << nbits)) failed: Field too big for insn

Ronald Klop <[email protected]>
Newsgroups gmane.os.freebsd.devel.java,gmane.os.freebsd.devel.arm
Message-ID <[email protected]>
On 1/27/22 10:37, Ronald Klop wrote:
> On 1/27/22 10:22, Andrew Haley wrote:
>> On 1/27/22 09:03, Ronald Klop wrote:
>>> I can reproduce this on my rpi4 and it is "fixed" if I compile openjdk8 using llvm12 from ports instead of llvm13 from base.
>>> Is anybody looking into this? Should I file a PR?
>>
>> I can't reach ampere2.nyi.freebsd.org
>>
>> Please send me the hs_err_pidXXX.log; or post it here.
>>
> 
> 
> Hi, this makes the log available on ipv4.
> 
> http://www.ipv6proxy.net/go.php?u=http%3A%2F%2Fampere2.nyi.freebsd.org%2Fdata%2Fmain-arm64-default%2Fpd8f8cc3a8823_s4f0e50b293%2Flogs%2Ferrors%2Fjacop-4.8.0.log&b=0&f=norefer
> 
> I can't get the hs_err_pidXXX.log from that server either. I will try to reproduce the error locally today.
> 
> Regards,
> Ronald.
> 
> 

It was easier to reproduce than I thought. Just java -version on my rpi4/14-CURRENT.

Let's see if the attachment comes through in the ML.

Regards,
Ronald.
hs_err_pid54456.log (text/plain, 4.5 KB)
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (assembler_aarch64.hpp:237), pid=54456, tid=0x000000000004869e
#  guarantee(val < (1U << nbits)) failed: Field too big for insn
#
# JRE version:  (8.0_312-b07) (build )
# Java VM: OpenJDK 64-Bit Server VM (25.312-b07 mixed mode bsd-aarch64 compressed oops)
# 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 (0x000045b00639b000):  JavaThread "Unknown thread" [_thread_in_vm, id=296606, stack(0x0000000000003000,0x0000000000203000)]

Stack: [0x0000000000003000,0x0000000000203000],  sp=0x00000000002020b0,  free space=2044k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0xac5600]  JVM_handle_bsd_signal+0x169a80
V  [libjvm.so+0x5811a4]
[error occurred during error reporting (printing native stack), id 0xe0000000]


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

Java Threads: ( => current thread )

Other Threads:

=>0x000045b00639b000 (exited) JavaThread "Unknown thread" [_thread_in_vm, id=296606, stack(0x0000000000003000,0x0000000000203000)]

VM state:not at safepoint (not fully initialized)

VM Mutex/Monitor currently owned by a thread: None


[error occurred during error reporting (printing compressed oops mode, id 0xb]

Deoptimization events (0 events):
No events

Classes redefined (0 events):
No events

Internal exceptions (0 events):
No events

Events (0 events):
No events


Dynamic libraries:
0x000045afba360000 	/usr/local/openjdk8/bin/java
0x000045affa9f7000 	/usr/local/openjdk8/bin/../lib/aarch64/jli/libjli.so
0x000045affaa53000 	/lib/libz.so.6
0x000045affbcec000 	/lib/libthr.so.3
0x000045affc7f3000 	/lib/libc.so.7
0x000045b001e00000 	/usr/local/openjdk8/jre/lib/aarch64/server/libjvm.so
0x000045afffae6000 	/lib/libm.so.5
0x000045b000a5c000 	/lib/libc++.so.1
0x000045b00186d000 	/lib/libcxxrt.so.1
0x000045b00410e000 	/lib/libgcc_s.so.1
0x000045b007f1c000 	/usr/local/openjdk8/jre/lib/aarch64/libverify.so
0x000045b00910f000 	/usr/local/openjdk8/jre/lib/aarch64/libjava.so
0x000045b0094ff000 	/usr/local/openjdk8/jre/lib/aarch64/libzip.so
0x000057406ff39000 	/libexec/ld-elf.so.1

VM Arguments:
java_command: <unknown>
java_class_path (initial): .
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=/usr/local/openjdk8
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
SHELL=/usr/local/bin/bash

Signal Handlers:
SIGSEGV: [libjvm.so+0xac62b4], sa_mask[0]=11111111111111111111111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGBUS: [libjvm.so+0xac62b4], sa_mask[0]=11111111111111111111111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGFPE: [libjvm.so+0x9587f4], sa_mask[0]=11111111111111111111111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGPIPE: [libjvm.so+0x9587f4], sa_mask[0]=11111111111111111111111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGXFSZ: [libjvm.so+0x9587f4], sa_mask[0]=11111111111111111111111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGILL: [libjvm.so+0x9587f4], sa_mask[0]=11111111111111111111111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGUSR2: [libjvm.so+0x9592f4], sa_mask[0]=00000000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO
SIGHUP: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=SA_RESTART
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 14.0-CURRENT FreeBSD 14.0-CURRENT #19 main-c72e914cf1: Wed Jan 12 03:34:04 CET 2022     ronald@rpi4:/home/ronald/dev/obj/home/ronald/dev/freebsd/arm64.aarch64/sys/GENERIC-NODEBUG arm64
rlimit: STACK 1048576k, CORE infinity, NPROC 12070, NOFILE 231129, AS infinity
load average:0.15 0.20 0.18

CPU:total 4 (initial active 4) 

Memory: 4k page, physical 8218088k(1049140k free), swap 0k(4294859460k free)

vm_info: OpenJDK 64-Bit Server VM (25.312-b07) for bsd-aarch64 JRE (1.8.0_312-b07), built on Jan  1 2022 09:47:38 by "root" with gcc FreeBSD Clang 13.0.0 ([email protected]:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303)

time: Thu Jan 27 11:07:23 2022
timezone: CET
elapsed time: 0.128114 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.