-
Bug
-
Resolution: Fixed
-
P3
-
16, 17
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
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
- relates to
-
JDK-8256730 Code that uses Object.checkIndex() range checks doesn't optimize well
- Resolved