JDK-8129780 : Test closed/java/awt/font/LocaleTests/getallfonts.sh and closed/java/awt/font/LocaleTests/preferlocalefonts.sh fail with EmptyStackException in Solaris
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris
  • CPU: generic
  • Submitted: 2015-06-24
  • Updated: 2016-04-13
  • Resolved: 2015-09-10
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 9
9Resolved
Related Reports
Duplicate :  
Relates :  
Description
Test name(s) : closed/java/awt/font/LocaleTests/getallfonts.sh
closed/java/awt/font/LocaleTests/preferlocalefonts.sh 

JDK tested: 9b68 , 9b69
OS tested: Windows , Solaris 11 
Is it a regression? NO 
Is it platform specific? Yes( test passes in windows) 
The is failure reproduced: always 
            
General description: 

----------System.out:(17/593)----------
C
ar
zh
zh_CN.UTF-8
zh_CN.GBK
zh_CN.GB18030
Error occurred during initialization of VM
java.util.EmptyStackException
	at java.util.Stack.peek(Stack.java:102)
	at java.lang.ClassLoader$NativeLibrary.getFromClass(ClassLoader.java:1737)
	at java.lang.ClassLoader$NativeLibrary.findBuiltinLib(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1866)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1840)
	at java.lang.Runtime.loadLibrary0(Runtime.java:874)
	at java.lang.System.loadLibrary(System.java:1111)
	at java.lang.System.initializeSystemClass(System.java:1186)

----------System.err:(0/0)----------
Comments
Duplicate of https://bugs.openjdk.java.net/browse/JDK-8087161 EmptyStackException problem is fixed in jdk9b69 but it causes ExceptionInitializerError in ServiceLoader of hotspot. >> loading of the extended charsets has been delegated to ServiceLoader. But ServiceLoader calls ClassLoader.getBootstrapResources() which calls sun.misc.Launcher.getBootstrapClassPath(). This leads to another problem during class initialization of sun.misc.Launcher if running on an unsupported locale. This is reexamined and will be fixed by CCC for https://bugs.openjdk.java.net/browse/JDK-8038310
25-06-2015

It seems zh_CN.GB18030, zh_HK.BIG5HK and th_TH locales are causing EmptyStackException. It seems 1st 2 are part of extended charset while th_TH is not supported.
25-06-2015

Test fails for 9b68 and 9b69 also for Solaris 11 and passes in Windows
24-06-2015

Machine to reproduce :- spb23265.ru.oracle.com,spb23350.ru.oracle.com RULE closed/java/awt/font/LocaleTests/getallfonts.sh Exception java.util.EmptyStackException RULE closed/java/awt/font/LocaleTests/getallfonts.sh ExitCode 1 RULE closed/java/awt/font/LocaleTests/preferlocalefonts.sh Exception java.util.EmptyStackException RULE closed/java/awt/font/LocaleTests/preferlocalefonts.sh ExitCode 1 http://scaaa008.us.oracle.com:9502/runs/00968/968658.ManualSubmit/968658.ManualSubmit-1/workDir/closed/java/awt/font/LocaleTests/getallfonts.jtr http://scaaa008.us.oracle.com:9502/runs/00968/968658.ManualSubmit/968658.ManualSubmit-1/workDir/closed/java/awt/font/LocaleTests/preferlocalefonts.jtr
24-06-2015