Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openjdk-systemtest JLINK test failures with jdk-11.0.4+11.3 #1214

Closed
lumpfish opened this issue Aug 13, 2019 · 10 comments
Closed

openjdk-systemtest JLINK test failures with jdk-11.0.4+11.3 #1214

lumpfish opened this issue Aug 13, 2019 · 10 comments
Assignees
Labels
bug Issues that are problems in the code as reported by the community macos Issues that affect or relate to the MAC OS testing Issues that enhance or fix our test suites Waiting on OP Issues that are awaiting a response from the original author of the ticket
Milestone

Comments

@lumpfish
Copy link
Contributor

Platform:

MacOS

Architecture:

x64

The openjdk-systemtest JLINK tests have started failing with messages like:

09:25:34  STF 01:25:34.054 - Monitoring processes: JLNK
09:25:35  JLNK stderr Resources tree, invalid data structure, skipping /java.base/
09:25:35  JLNK stderr Resources tree, invalid data structure, skipping /java.base/META-INF/services/
09:25:35  JLNK stderr Resources tree, invalid data structure, skipping /java.base/META-INF/services/java.nio.file.spi.FileSystemProvider
09:25:35  JLNK stderr Resources tree, invalid data structure, skipping /java.base/META-INF/services/java.nio.file.spi.FileSystemProvider
09:25:35  JLNK stderr Resources tree, invalid data structure, skipping /java.base/apple/security/
09:25:35  JLNK stderr Resources tree, invalid data structure, skipping /java.base/apple/security/AppleProvider$1.class
09:25:35  JLNK stderr Resources tree, invalid data structure, skipping /java.base/apple/security/AppleProvider$1.class

This started with the packaging changes introduced in jdk-11.0.3+11.3 to address notarization requirements and enabling the loading of unsigned dylibs.

Tests are now failing on all nightly builds - e.g. https://ci.adoptopenjdk.net/job/Test_openjdk11_hs_sanity.system_x86-64_mac/29/console

@karianna karianna added this to the August 2019 milestone Aug 13, 2019
@karianna karianna added the bug Issues that are problems in the code as reported by the community label Aug 13, 2019
@karianna
Copy link
Contributor

Probably related to code signing...

@sxa
Copy link
Member

sxa commented Dec 31, 2019

Notarization / signing so tagging #1130 to link them together

@karianna karianna modified the milestones: January 2020, February 2020 Feb 3, 2020
@sxa
Copy link
Member

sxa commented Mar 3, 2020

@lumpfish Can you verify whether the latest JDK11 nightly builds do not have this problem?

@karianna karianna modified the milestones: February 2020, March 2020 Mar 6, 2020
@karianna karianna added the Waiting on OP Issues that are awaiting a response from the original author of the ticket label Mar 15, 2020
@karianna karianna removed this from the March 2020 milestone Apr 2, 2020
@karianna karianna added this to the April 2020 milestone Apr 2, 2020
@karianna karianna modified the milestones: April 2020, May 2020 May 4, 2020
@karianna karianna modified the milestones: May 2020, June 2020 Jun 1, 2020
@karianna karianna modified the milestones: June 2020, July 2020 Jul 1, 2020
@adamfarley
Copy link
Contributor

Could this be connected?

01:17:18  Error: Hash of jdk.jartool (18a5f51e945686154a30d739c30067e3017f1b1dc8cdb7f27eefbe9af905798b) differs to expected hash (d6b9614f26b1a823b42af7ec40980545a3b59b71b2134b79b8f5dd5bb0eeda8e) recorded in java.base
01:17:18  java.lang.module.FindException: Hash of jdk.jartool (18a5f51e945686154a30d739c30067e3017f1b1dc8cdb7f27eefbe9af905798b) differs to expected hash (d6b9614f26b1a823b42af7ec40980545a3b59b71b2134b79b8f5dd5bb0eeda8e) recorded in java.base
01:17:18  	at java.base/java.lang.module.Resolver.findFail(Resolver.java:877)
01:17:18  	at java.base/java.lang.module.Resolver.checkHashes(Resolver.java:461)
01:17:18  	at java.base/java.lang.module.Resolver.finish(Resolver.java:360)
01:17:18  	at java.base/java.lang.module.Configuration.<init>(Configuration.java:141)
01:17:18  	at java.base/java.lang.module.Configuration.resolve(Configuration.java:424)
01:17:18  	at java.base/java.lang.module.Configuration.resolve(Configuration.java:256)
01:17:18  	at jdk.jlink/jdk.tools.jlink.internal.Jlink$JlinkConfiguration.resolve(Jlink.java:220)
01:17:18  	at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.createImageProvider(JlinkTask.java:486)
01:17:18  	at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.createImage(JlinkTask.java:396)
01:17:18  	at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.run(JlinkTask.java:272)
01:17:18  	at jdk.jlink/jdk.tools.jlink.internal.Main.run(Main.java:54)
01:17:18  	at jdk.jlink/jdk.tools.jlink.internal.Main.main(Main.java:33)

@tmancill
Copy link

tmancill commented Jul 14, 2020

Debian #944738 looks very similar but is reported against the Debian build of OpenJDK. I wonder if they have a common root cause. The bug reported there is also with jlink;

   jlink --module-path build/jmods:$JAVA_HOME/jmods \
         --strip-debug --vm=server --compress 2 --no-header-files --no-man-pages \
         --dedup-legal-notices=error-if-not-same-content --add-modules http.server \
         --output build/jre/native

   Error: Hash of jdk.httpserver (3072fe4924fdf278791460cc0f0f7cc7e693e6eca4b3564b5252792750c3bd25)
   differs to expected hash (f7140e5db2cb90e7f8f6bcf30ef0660e1496b29dd1a20f07b3c4fcc18de5d787)
   recorded in java.base

@bartduisters
Copy link

bartduisters commented Aug 8, 2020

I experience a similar issue while using jpackage on Ubuntu 20.04.1 LTS.
I have tried both with AdoptOpenJDK 14 and the default OpenJDK 14.

jpackage -n TestFX -i target --main-jar testFX-1.0-SNAPSHOT-jar-with-dependencies.jar -d output --module-path /home/barry/SDKS/javafx-sdk-14.0.2.1/lib
WARNING: Using incubator modules: jdk.incubator.jpackage

java.lang.module.FindException: Hash of jdk.management.jfr (a405f735790e653ae6ad1ef35615c78a555389cc5076c74c52f3790a13351666) differs to expected hash (06d891a3ae65eb002ec7c3adeac782a67e5c76c5f1569cbb4e9bdace4e220f23) recorded in java.base

@sblantipodi
Copy link

same exact problem of @bartduisters here.
is there a workaround for the problem?

@aahlenst
Copy link
Contributor

The original issue was about macOS and it was caused by code signing. This was fixed, so I close this issue. jpackage and Ubuntu are unrelated.

@sblantipodi and others: If your problem isn't build related, please open an issue in https://github.com/AdoptOpenJDK/openjdk-support/issues and provide as much information as possible. The information you provided is not sufficient to diagnose the problem.

@bartduisters
Copy link

bartduisters commented Aug 19, 2020

@sblantipodi You can follow the issue for our problem here: adoptium/adoptium-support#168

@tresf
Copy link

tresf commented Dec 22, 2022

The original issue was about macOS and it was caused by code signing. This was fixed, so I close this issue. jpackage and Ubuntu are unrelated.

@sblantipodi and others: If your problem isn't build related, please open an issue in https://github.com/AdoptOpenJDK/openjdk-support/issues and provide as much information as possible. The information you provided is not sufficient to diagnose the problem.

@aahlenst do you mind sharing your solution with ibmruntimes/Semeru-Runtimes#3?

@github-actions github-actions bot added the testing Issues that enhance or fix our test suites label Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that are problems in the code as reported by the community macos Issues that affect or relate to the MAC OS testing Issues that enhance or fix our test suites Waiting on OP Issues that are awaiting a response from the original author of the ticket
Projects
None yet
Development

No branches or pull requests

10 participants