JDK-8300028 : Crash during OSR C2 compilation of a method from JRUBY | OpenJDK(17.0.4+8)
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 17.0.4
  • Priority: P3
  • Status: Closed
  • Resolution: Incomplete
  • OS: generic
  • CPU: generic
  • Submitted: 2023-01-09
  • Updated: 2023-08-21
  • Resolved: 2023-03-13
Related Reports
Relates :  
Description
A DESCRIPTION OF THE PROBLEM :
This problem seems to occur in the past please see https://bugs.openjdk.org/browse/JDK-8277738
later on when using version of java 17.0.2 this problem stopped to show up. We installed new version of java 17.0.4 in September as in hs_err_pid file attached and suddenly one week ago (28 of December) as well as today (9 of January) jvm crashed at seems the same code in jvm.

Current CompileTask:
C2:166495528 3820245 %     4       org.jruby.lexer.LexingCommon::parser_magic_comment @ 408 (585 bytes)

please see hs_err_pid for further details.

REGRESSION : Last worked in version 17

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Not sure how to reproduce it as in the past it shows up randomly, however always with the same OSR compilation of C2 compiler at the same very specific byte as in hs err pid files.


CUSTOMER SUBMITTED WORKAROUND :
I guess I will have to remove this particular method from compilation and have a hope that it helps in the same way as it helped in the past when using 17.0.1

FREQUENCY : occasionally



Comments
There is no response from submitter in long time , closing this as incomplete. This bug can be reopened once we get any additional information from submitter.
21-08-2023

From the crash logs, issue is reproduced on debian openjdk version. As mentioned in the crash snapshot, issue should be reported https://bugs.debian.org/openjdk-1 # JRE version: OpenJDK Runtime Environment (17.0.4+8) (build 17.0.4+8-Debian-1deb11u1) # Java VM: OpenJDK 64-Bit Server VM (17.0.4+8-Debian-1deb11u1, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64) # Problematic frame: # V [libjvm.so+0xabc453] # # Core dump will be written. Default location: /home/ldb/ldb-ruby-versions/releases/release_20221223_085744_master2312/core # # If you would like to submit a bug report, please visit: # https://bugs.debian.org/openjdk-1
25-01-2023

The crash is in # Problematic frame: # V [libjvm.so+0xabc453] and the current compiler thread is Current CompileTask: C2:166495528 3820245 % 4 org.jruby.lexer.LexingCommon::parser_magic_comment @ 408 (585 bytes) Crash is reported on Debian OpenJDK build JRE version: OpenJDK Runtime Environment (17.0.4+8) (build 17.0.4+8-Debian-1deb11u1) Moving it to JDK for further analysis
12-01-2023