JDK-8198819 : tools/jimage/JImageExtractTest.java, fails intermittently at testExtract (macos)
  • Type: Bug
  • Component: tools
  • Sub-Component: jlink
  • Affected Version: 11
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-02-28
  • Updated: 2018-07-17
  • Resolved: 2018-07-04
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 11 JDK 12
11 b22Fixed 12Fixed
Related Reports
Relates :  
Relates :  
Description
tools/jimage/JImageExtractTest.java fails intermittently at testExtract (osx-x64, run with -conc:6)

----------System.out:(6/320)----------
Invoking testExtractToDir
jimage [extract, --dir, ./JImageExtractTest2369491764840834267, /Users/aurora/sandbox_keepme/jdk/lib/modules]
Invoking testExtractNotAnImage
jimage [extract, ./JImageExtractTest2759577580748474434not_an_image]
Invoking testExtract
jimage [extract, /Users/aurora/sandbox_keepme/jdk/lib/modules]
----------System.err:(24/1672)----------
java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at JImageCliTest.runTests(JImageCliTest.java:111)
	at JImageExtractTest.main(JImageExtractTest.java:183)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
	at java.base/java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.RuntimeException: There are no exploded modules with missing 'module-info.class': expected [./JImageExtractTest2369491764840834267, ./JImageExtractTest2759577580748474434not_an_image, .] to equal [.]
	at jdk.test.lib.Asserts.fail(Asserts.java:594)
	at jdk.test.lib.Asserts.assertEquals(Asserts.java:205)
	at JImageExtractTest.verifyExplodedImage(JImageExtractTest.java:178)
	at JImageExtractTest.testExtract(JImageExtractTest.java:55)
	... 12 more

JavaTest Message: Test threw exception: java.lang.reflect.InvocationTargetException
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.reflect.InvocationTargetException

Comments
assertEquals(badModules, new HashSet<Path>() {{ add(imagePath); }}, is likely random change test to look for empty set.
27-06-2018