-
Bug
-
Resolution: Not an Issue
-
P3
-
11, 17, 21, 24, 25
ADDITIONAL SYSTEM INFORMATION :
OS:
Operating System Name: Linux
Operating System Architecture: amd64
Operating System Version: 4.15.0-45-generic
Operating System Distribution: Ubuntu 22.04.4 LTS
OpenJDK version:
java version "11.0.26" 2025-01-21 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.26+7-LTS-187)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.26+7-LTS-187, mixed mode)
A DESCRIPTION OF THE PROBLEM :
We found that calling `FontScaler.getScaler((Font2D)null, 3, false, 3);` causes Hotspot to report a crash. Below is the specific content from the JVM output:
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f93887d6fbe, pid=4391, tid=4393
#
# JRE version: Java(TM) SE Runtime Environment 18.9 (11.0.26+7) (build 11.0.26+7-LTS-187)
# Java VM: Java HotSpot(TM) 64-Bit Server VM 18.9 (11.0.26+7-LTS-187, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x8dafbe] jni_CallIntMethod+0xde
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P %E" (or dumping to /home/share/classValid/Main/core.4391)
#
# An error report file with more information is saved as:
# /home/share/classValid/Main/hs_err_pid4391.log
#
# 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 :
javac --add-exports java.desktop/sun.font=ALL-UNNAMED /your_path/RunSystemGC.java
java -cp /your_path/ RunSystemGC
ACTUAL -
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f93887d6fbe, pid=4391, tid=4393
#
# JRE version: Java(TM) SE Runtime Environment 18.9 (11.0.26+7) (build 11.0.26+7-LTS-187)
# Java VM: Java HotSpot(TM) 64-Bit Server VM 18.9 (11.0.26+7-LTS-187, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x8dafbe] jni_CallIntMethod+0xde
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P %E" (or dumping to /home/share/classValid/Main/core.4391)
#
# An error report file with more information is saved as:
# /home/share/classValid/Main/hs_err_pid4391.log
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
---------- BEGIN SOURCE ----------
import sun.font.Font2D;
import sun.font.FontScaler;
class RunSystemGC {
RunSystemGC() {
}
public static void main(String[] var0) throws Exception {
FontScaler var1 = FontScaler.getScaler((Font2D)null, 3, false, 3);
}
}
---------- END SOURCE ----------
OS:
Operating System Name: Linux
Operating System Architecture: amd64
Operating System Version: 4.15.0-45-generic
Operating System Distribution: Ubuntu 22.04.4 LTS
OpenJDK version:
java version "11.0.26" 2025-01-21 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.26+7-LTS-187)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.26+7-LTS-187, mixed mode)
A DESCRIPTION OF THE PROBLEM :
We found that calling `FontScaler.getScaler((Font2D)null, 3, false, 3);` causes Hotspot to report a crash. Below is the specific content from the JVM output:
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f93887d6fbe, pid=4391, tid=4393
#
# JRE version: Java(TM) SE Runtime Environment 18.9 (11.0.26+7) (build 11.0.26+7-LTS-187)
# Java VM: Java HotSpot(TM) 64-Bit Server VM 18.9 (11.0.26+7-LTS-187, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x8dafbe] jni_CallIntMethod+0xde
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P %E" (or dumping to /home/share/classValid/Main/core.4391)
#
# An error report file with more information is saved as:
# /home/share/classValid/Main/hs_err_pid4391.log
#
# 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 :
javac --add-exports java.desktop/sun.font=ALL-UNNAMED /your_path/RunSystemGC.java
java -cp /your_path/ RunSystemGC
ACTUAL -
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f93887d6fbe, pid=4391, tid=4393
#
# JRE version: Java(TM) SE Runtime Environment 18.9 (11.0.26+7) (build 11.0.26+7-LTS-187)
# Java VM: Java HotSpot(TM) 64-Bit Server VM 18.9 (11.0.26+7-LTS-187, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x8dafbe] jni_CallIntMethod+0xde
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P %E" (or dumping to /home/share/classValid/Main/core.4391)
#
# An error report file with more information is saved as:
# /home/share/classValid/Main/hs_err_pid4391.log
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
---------- BEGIN SOURCE ----------
import sun.font.Font2D;
import sun.font.FontScaler;
class RunSystemGC {
RunSystemGC() {
}
public static void main(String[] var0) throws Exception {
FontScaler var1 = FontScaler.getScaler((Font2D)null, 3, false, 3);
}
}
---------- END SOURCE ----------