JDK-8263971 : C2 crashes with SIGFPE with -XX:+StressGCM and -XX:+StressIGVN
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 16,17
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-03-22
  • Updated: 2022-06-07
  • Resolved: 2021-03-30
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 17
17 b16Fixed
Related Reports
Relates :  
Description
The attached fuzzer test starts to fail with SIGFPE after JDK-8256730:

To reproduce:
$ java -Xcomp -XX:-TieredCompilation -XX:CompileOnly=Test -XX:+StressGCM -XX:+StressIGVN -XX:StressSeed=886771365 Test.java
$ java -Xcomp -XX:-TieredCompilation -XX:CompileOnly=Reduce -XX:+StressIGVN -XX:StressSeed=886771365 Reduce.java

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGFPE (0x8) at pc=0x00007fdbe49eddee, pid=21405, tid=21406
#
# JRE version: Java(TM) SE Runtime Environment (17.0+14) (fastdebug build 17-ea+14-LTS-1110)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 17-ea+14-LTS-1110, compiled mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# J 3 c2 Test.mainTest([Ljava/lang/String;)V (497 bytes) @ 0x00007fdbe49eddee [0x00007fdbe49eda20+0x00000000000003ce]
............
Command Line: -Xmx1G -Xcomp -Xbatch -XX:CompileOnly=Test -XX:CompileCommand=quiet -XX:-TieredCompilation -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+StressLCM -XX:+StressGCM -XX:+StressIGVN -XX:StressSeed=886771365 Test
............
Current thread (0x00007fdbe00265c0):  JavaThread "main" [_thread_in_Java, id=21406, stack(0x00007fdbeac1a000,0x00007fdbead1b000)]

Stack: [0x00007fdbeac1a000,0x00007fdbead1b000],  sp=0x00007fdbead19900,  free space=1022k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
J 3 c2 Test.mainTest([Ljava/lang/String;)V (497 bytes) @ 0x00007fdbe49eddee [0x00007fdbe49eda20+0x00000000000003ce]
J 2 c2 Test.main([Ljava/lang/String;)V (45 bytes) @ 0x00007fdbe49ec798 [0x00007fdbe49ec5a0+0x00000000000001f8]
v  ~StubRoutines::call_stub
V  [libjvm.so+0xe521d5]  JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x595
V  [libjvm.so+0xf83e85]  jni_invoke_static(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*) [clone .constprop.1]+0x345
V  [libjvm.so+0xf87475]  jni_CallStaticVoidMethod+0x1c5
C  [libjli.so+0x47d4]  JavaMain+0xd34
C  [libjli.so+0x7db9]  ThreadJavaMain+0x9


siginfo: si_signo: 8 (SIGFPE), si_code: 1 (FPE_INTDIV), si_addr: 0x00007fdbe49eddee
Comments
Changeset: 8100a20e Author: Roland Westrelin <roland@openjdk.org> Date: 2021-03-30 07:40:49 +0000 URL: https://git.openjdk.java.net/jdk/commit/8100a20e
30-03-2021

Hi [~roland], request your help to check this task. Thank you.
24-03-2021