jlink fails due to unexpected hash of java.* modules

Bug #1869869 reported by Sebastian Stenzel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openjdk-lts (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Basically the same bug as I reported earlier in https://bugs.launchpad.net/ubuntu/+source/openjdk-14/+bug/1868699, however it also affects the latest LTS build:

/usr/lib/jvm/java-11-openjdk-amd64/bin/jlink \
> --output myRuntimeImage \
> --no-header-files \
> --no-man-pages \
> --strip-debug \
> --compress=2 \
> --verbose \
> --add-modules java.base,java.logging,java.xml,java.sql,java.management,java.security.sasl,java.naming,java.datatransfer,java.security.jgss,java.rmi,java.scripting,java.prefs,java.desktop,jdk.security.auth,jdk.unsupported,java.net.http,jdk.crypto.ec
Error: Hash of java.rmi (ccefd4d0a51f66cd65f3b648c4a74a67202a3069035b27038b32b26ab601ce8b) differs to expected hash (e5f988d0fe0cb2e35b244771b92cadab4df78eae2cbfc7c60de8cddcbaec5025) recorded in java.base

I'm not sure, if bugs on the openjdk-14 package are even seen by anyone, so I decided to re-report this here.

This build of OpenJDK tampers with the jmods without fixing the hashes, making the new packaging tools useless for PPAs.

Revision history for this message
Sebastian Stenzel (sebastian-stenzel) wrote :

I also asked in the openjdk mailing list and they suggested that this is probably caused by patches applied by Ubuntu's builds https://mail.openjdk.java.net/pipermail/jigsaw-dev/2020-March/014398.html

Revision history for this message
Francivan Bezerra (fba-rio) wrote :

I can confirm the issue on OpenJDK 11, 13 and 14 on Ubuntu 20.04 LTS. I had to download a build from the OpenJDK website.

Revision history for this message
Vladimir Petko (vpa1977) wrote :

The issue is no longer reproducible:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic
$ java -version
openjdk version "11.0.19" 2023-04-18
OpenJDK Runtime Environment (build 11.0.19+7-post-Ubuntu-0ubuntu118.04.1)
OpenJDK 64-Bit Server VM (build 11.0.19+7-post-Ubuntu-0ubuntu118.04.1, mixed mode, sharing)
bsp@bsp-Standard-PC-Q35-ICH9-2009:~/SmartBear/SoapUI-5.7.1/bin$

Closing as invalid

Changed in openjdk-lts (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.