JDK-8247766 : AArch64: guarantee(val < (1U << nbits)) failed: Field too big for insn
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 8,11,15,16
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: aarch64
  • Submitted: 2020-06-17
  • Updated: 2022-06-17
  • Resolved: 2020-07-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 16 JDK 8 Other
11.0.11-oracleFixed 16 b08Fixed 8u291Fixed na,openjdk8u332Resolved
Related Reports
Relates :  
Description
open/test/hotspot/jtreg/vmTestbase/vm/mlvm/anonloader/stress/byteMutation/Test.java

----------System.out:(28/2635)----------
### TRACE 1: RNG seed = -3711439522195719720 (0xcc7e516b2a2db9d8)
For random generator using seed: -3711439522195719720
To re-run test with same seed value please add "-Djdk.test.lib.random.seed=-3711439522195719720" to command line.
### TRACE 1: If the JVM crashes then the class file causing the crash is saved as *_*__AnonkTestee01.class
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc:  SuppressErrorAt=/assembler_aarch64.hpp:232
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/opt/mach5/mesos/work_dir/slaves/4728e7c1-7e67-490e-be0f-6bbf2a2f33db-S61/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/70b0669d-5e9c-4ddd-94e6-e0a4bd1f53bd/runs/29e31a5f-cfc2-4cf2-b396-48c5fdce7d16/workspace/open/src/hotspot/cpu/aarch64/assembler_aarch64.hpp:232), pid=8182, tid=8197
#  guarantee(val < (1U << nbits)) failed: Field too big for insn
#
# JRE version: Java(TM) SE Runtime Environment (16.0) (fastdebug build 16-internal+0-2020-06-17-0914171.patric.hedlin.jdk)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 16-internal+0-2020-06-17-0914171.patric.hedlin.jdk, compiled mode, tiered, compressed oops, g1 gc, linux-aarch64)
# Problematic frame:
# V  [libjvm.so+0x334c54]  Instruction_aarch64::f(unsigned int, int, int)+0xac
#
# Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /scratch/opt/mach5/mesos/work_dir/slaves/805146e6-8fdb-4552-bf9e-385b73cf7129-S557/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/254dfa90-fe61-4586-848b-5e9f8e72fb27/runs/afd45016-acc8-41a7-8923-bd6169d7afd6/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_mlvm/scratch/2/core.8182)
#
# An error report file with more information is saved as:
# /scratch/opt/mach5/mesos/work_dir/slaves/805146e6-8fdb-4552-bf9e-385b73cf7129-S557/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/254dfa90-fe61-4586-848b-5e9f8e72fb27/runs/afd45016-acc8-41a7-8923-bd6169d7afd6/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_mlvm/scratch/2/hs_err_pid8182.log
#
# Compiler replay data is saved as:
# /scratch/opt/mach5/mesos/work_dir/slaves/805146e6-8fdb-4552-bf9e-385b73cf7129-S557/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/254dfa90-fe61-4586-848b-5e9f8e72fb27/runs/afd45016-acc8-41a7-8923-bd6169d7afd6/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_mlvm/scratch/2/replay_pid8182.log
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
#
Comments
[~zgu] I'll hold off on approving this for 8u until the build issue of JDK-8248901 is resolved. See: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2021-August/014171.html Edit: Build issue resolved. See JDK-8272214.
16-08-2021

Fix Request (8u) I would like to backport this Oracle 8u291 parity patch to openjdk8u. jdk11u patch applies cleanly. Somehow, original patch was corrupted, missing some of changes. jdk11u backport fixed the issues (see 11u code review thread for details).
13-07-2021

Fix Request Should get backported for parity with 11.0.11-oracle. Doesn't apply cleanly. Review thread: http://mail.openjdk.java.net/pipermail/jdk-updates-dev/2020-December/004530.html
23-12-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/40c07de877ab User: phedlin Date: 2020-07-27 16:54:31 +0000
27-07-2020

Also seen here: open/test/jdk/java/lang/invoke/BigArityTest.java Reproduced by: make run-test TEST="jtreg:java/lang/invoke/BigArityTest.java" JTREG="VM_OPTIONS=-Xcomp"
09-07-2020

Stack access code does not handle large offsets.
22-06-2020