JDK-8044763 : com/sun/crypto/provider/KeyFactory/TestProviderLeak.java failed in JDK9
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.crypto
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows
  • Submitted: 2014-06-04
  • Updated: 2019-02-11
  • Resolved: 2014-06-06
Related Reports
Duplicate :  
Relates :  
Description
TESTFAIL:com/sun/crypto/provider/KeyFactory/TestProviderLeak.java

com/sun/crypto/provider/KeyFactory/TestProviderLeak.java have not failed in same Binaries run from B1-B13 since JDK-8027624 fixed.

this test failed again in JDK9/b14 Regression Tests Same Binaries Run at windows-amd64 platform, failed in all 88 times run. detail please refer comments:

----------System.err:(29/1709)----------
java.lang.OutOfMemoryError: Java heap space
	at java.io.WinNTFileSystem.list(Native Method)
	at java.io.File.list(File.java:1122)
	at javax.crypto.JarVerifier.getSystemEntropy(JarVerifier.java:785)
	at javax.crypto.JarVerifier.testSignatures(JarVerifier.java:706)
	at javax.crypto.JarVerifier.access$400(JarVerifier.java:34)
	at javax.crypto.JarVerifier$1.run(JarVerifier.java:183)
	at javax.crypto.JarVerifier$1.run(JarVerifier.java:149)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.crypto.JarVerifier.<clinit>(JarVerifier.java:148)
	at javax.crypto.JceSecurity.loadPolicies(JceSecurity.java:316)
	at javax.crypto.JceSecurity.setupJurisdictionPolicies(JceSecurity.java:261)
	at javax.crypto.JceSecurity.access$000(JceSecurity.java:48)
	at javax.crypto.JceSecurity$1.run(JceSecurity.java:81)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.crypto.JceSecurity.<clinit>(JceSecurity.java:78)
	at javax.crypto.SecretKeyFactory.getInstance(SecretKeyFactory.java:204)
	at TestProviderLeak.main(TestProviderLeak.java:94)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:484)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:745)

JavaTest Message: Test threw exception: java.lang.OutOfMemoryError: Java heap space
JavaTest Message: shutting down test

 
Comments
Yes, clean up temp dir, test pass. I'm closing this bug as dup of JDK-7176176
06-06-2014

Is this always run on the same windows system, and does it have a huge number of files in the temp directory? If so, then please remove the files, and the problem should go away. Then this can be closed as a duplicate of JDK-7176176, which is currently being worked on.
04-06-2014