JDK-8253688 : tools/jlink/JLinkReproducible3Test.java fails with "RuntimeException: jlink producing inconsistent result in modules. Mismatch in modules file"
  • Type: Bug
  • Component: tools
  • Sub-Component: jlink
  • Affected Version: 16
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • OS: linux
  • CPU: aarch64
  • Submitted: 2020-09-26
  • Updated: 2022-05-03
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.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Description
The following test fails in the JDK16 CI:

tools/jlink/JLinkReproducible3Test.java

Here's a snippet from the log file:

----------System.err:(12/811)----------
java.lang.RuntimeException: jlink producing inconsistent result in modules. Mismatch in modules file occurred at byte position 394681
	at JLinkReproducible3Test.main(JLinkReproducible3Test.java:81)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	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.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.base/java.lang.Thread.run(Thread.java:832)

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

result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: jlink producing inconsistent result in modules. Mismatch in modules file occurred at byte position 394681

Starting this bug as a P3 since this is a Tier2 failure.

tools/jlink/JLinkReproducible3Test.java is a new start
that was integrated with this fix:

    JDK-8252730 jlink does not create reproducible builds on different servers
Comments
I believe this issue has been fixed a while back through https://bugs.openjdk.java.net/browse/JDK-8275509. In fact, the test being noted in this JBS title was problem listed before that fix and we removed it from the problem list after the fix through https://bugs.openjdk.java.net/browse/JDK-8276688. I haven't seen this fail after that change. So I think this issue can be closed.
03-05-2022

I would have to suspect this is the same underlying issue as JDK-8217166, even if the test itself is new.
28-09-2020