JDK-8323686 : assert failed: object must be null or locked, and unbiased
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11.0.21
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux_ubuntu
  • CPU: x86_64
  • Submitted: 2024-01-09
  • Updated: 2024-01-15
  • Resolved: 2024-01-15
Related Reports
Duplicate :  
Description
ADDITIONAL SYSTEM INFORMATION :
# JRE version: OpenJDK Runtime Environment (11.0.22) (fastdebug build 11.0.22-internal+0-adhoc.jdk11u)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 11.0.22-internal+0-adhoc.jdk11u, compiled mode, tiered, compressed oops, g1 gc, linux-amd64)

A DESCRIPTION OF THE PROBLEM :
I conducted a modified regression test using JDK 11.0.22 (mainline) and discovered that the JVM crashes. I've searched existing issues but found no similar problems. The original test case corresponds to bug JDK-8032011. Although I lack access to the detailed bug report, I reviewed the related commit information on GitHub and noticed that the crash location differs from that in the bug. Consequently, I believe this is a new bug.

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/data/jdk11u/src/hotspot/share/runtime/vframeArray.cpp:96), pid=1261809, tid=1261810
#  assert(monitor->owner() == __null || (!monitor->owner()->is_unlocked() && !monitor->owner()->has_bias_pattern())) failed: object must be null or locked, and unbiased
#
# JRE version: OpenJDK Runtime Environment (11.0.22) (fastdebug build 11.0.22-internal+0-adhoc.jdk11u)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 11.0.22-internal+0-adhoc.jdk11u, compiled mode, tiered, compressed oops, g1 gc, linux-amd64)
# 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 /data/JVM-Tesing-by-Anti-Optimization/toreport/TestLockEliminatedAtDeopt_01_09_03_20_10/core.1261809)
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
#


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
java  -Xcomp  -XX:CompileCommand="compileonly,compiler.uncommontrap.TestLockEliminatedAtDeopt::m1" compiler.uncommontrap.TestLockEliminatedAtDeopt

ACTUAL -
CompileCommand: compileonly compiler/uncommontrap/TestLockEliminatedAtDeopt.m1
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc:  SuppressErrorAt=/vframeArray.cpp:96
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/data/jdk11u/src/hotspot/share/runtime/vframeArray.cpp:96), pid=1261809, tid=1261810
#  assert(monitor->owner() == __null || (!monitor->owner()->is_unlocked() && !monitor->owner()->has_bias_pattern())) failed: object must be null or locked, and unbiased
#
# JRE version: OpenJDK Runtime Environment (11.0.22) (fastdebug build 11.0.22-internal+0-adhoc.jdk11u)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 11.0.22-internal+0-adhoc.jdk11u, compiled mode, tiered, compressed oops, g1 gc, linux-amd64)
# 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 /data/toreport/TestLockEliminatedAtDeopt_01_09_03_20_10/core.1261809)
#
# An error report file with more information is saved as:
# /data/toreport/TestLockEliminatedAtDeopt_01_09_03_20_10/hs_err_pid1261809.log
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
#
Current thread is 1261810
Dumping core ...
./replay.sh: line 5: 1261809 Aborted                 (core dumped) /data/jdk11u/build/linux-x86_64-normal-server-fastdebug/jdk/bin/java -Xcomp -XX:CompileCommand="compileonly,compiler.uncommontrap.TestLockEliminatedAtDeopt::m1" -cp "6/" compiler.uncommontrap.TestLockEliminatedAtDeopt

---------- BEGIN SOURCE ----------
The source code file and hs_err file are available at the URL:
https://drive.google.com/file/d/1awLqkVGpJwvxKI_m9T1H60VOl6bSg4RI/view?usp=sharing
---------- END SOURCE ----------

FREQUENCY : always



Comments
Similar to JDK-8323507 from the same reporter, this looks like another duplicate of JDK-8322743. [~kvn], could you please confirm?
15-01-2024

Moving to compiler team as this seems to relate to lock elimination and deopt.
14-01-2024

Replicated with 11.0.22 fastdebug: Testing with jdk1.8.0_391/fastdebug java version "1.8.0_391-fastdebug" Java(TM) SE Runtime Environment (build 1.8.0_391-fastdebug-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.391-b13-fastdebug, mixed mode) RESULT: PASSED Testing with jdk-11.0.15.1.2 java version "11.0.15.1.2" 2022-05-27 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.15.1.2+1-LTS-3) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.15.1.2+1-LTS-3, mixed mode) RESULT: PASSED Testing with jdk-11.0.22/fastdebug java version "11.0.22" 2024-01-16 LTS Java(TM) SE Runtime Environment 18.9 (fastdebug build 11.0.22+9-LTS-219) Java HotSpot(TM) 64-Bit Server VM 18.9 (fastdebug build 11.0.22+9-LTS-219, mixed mode) RESULT: FAILED Testing with jdk-17.0.8 java version "17.0.8" 2023-07-18 LTS Java(TM) SE Runtime Environment (build 17.0.8+9-LTS-211) Java HotSpot(TM) 64-Bit Server VM (build 17.0.8+9-LTS-211, mixed mode, sharing) RESULT: PASSED Testing with ojdk-17/fastdebug java version "17-ea" 2021-09-14 LTS Java(TM) SE Runtime Environment (fastdebug build 17-ea+1-LTS-11) Java HotSpot(TM) 64-Bit Server VM (fastdebug build 17-ea+1-LTS-11, mixed mode, sharing) RESULT: PASSED Testing with jdk-21.0.1 java version "21.0.1" 2023-10-17 LTS Java(TM) SE Runtime Environment (build 21.0.1+11-LTS-27) Java HotSpot(TM) 64-Bit Server VM (build 21.0.1+11-LTS-27, mixed mode, sharing) RESULT: PASSED ILW = crash, always, no workaround = HHH = P1 Moving to dev for further analysis.
12-01-2024