<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Package: nvidia-openjdk-8-jre
<div>Version: 9.+8u312-b07-1~11.2.2-3+deb11u1</div>
<div><br>
</div>
<div>Hello,</div>
<div><br>
</div>
<div>When using the latest version of the nvidia-openjdk-8-jre package in Debian Bullseye (9.+8u312-b07-1~11.2.2-3+deb11u1) I receive the following error when executing the "java" command:</div>
<div><br>
</div>
<div>debian@hostname:~$ java -version</div>
<div>Error: dl failure on line 894</div>
<div>Error: failed /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so, because /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so)</div>
<div><br>
</div>
<div><br>
</div>
<div>The above error message hints that the java binary now depends on GLIBC_2.32. However, when looking at the package dependencies it lists a dependency in libc6 >= 2.29:</div>
<div><br>
</div>
<div><br>
</div>
<div>debian@hostname:~$ dpkg --status nvidia-openjdk-8-jre</div>
<div>Package: nvidia-openjdk-8-jre</div>
<div>Status: install ok installed</div>
<div>Priority: optional</div>
<div>Section: non-free/java</div>
<div>Installed-Size: 100973</div>
<div>Maintainer: Debian NVIDIA Maintainers <pkg-nvidia-devel@lists.alioth.debian.org></div>
<div>Architecture: amd64</div>
<div>Source: nvidia-cuda-toolkit (11.2.2-3+deb11u1)</div>
<div>Version: 9.+8u312-b07-1~11.2.2-3+deb11u1</div>
<div>Replaces: openjdk-8-jre, openjdk-8-jre-headless</div>
<div>Depends: libasound2 (>= 1.0.16), libc6 (>= 2.29), libfreetype6 (>= 2.3.5), libgcc-s1 (>= 3.0), libgif7 (>= 5.1), libjpeg62-turbo (>= 1.3.1), liblcms2-2 (>= 2.2+git20110628), libpcsclite1 (>= 1.3.0), libpng16-16 (>= 1.6.2-1), libpulse0 (>= 0.99.1), libstdc++6
(>= 4.1.1), libx11-6, libxext6, libxi6, libxrender1, libxtst6, zlib1g (>= 1:1.1.4)</div>
<div>Conflicts: openjdk-8-jre, openjdk-8-jre-headless</div>
<div>Description: Obsolete OpenJDK Java runtime, for NVIDIA applications</div>
<div> Full Java runtime environment - needed for executing Java GUI and Webstart</div>
<div> programs, using Hotspot JIT.</div>
<div> .</div>
<div> This package provides OpenJDK-8 JRE binaries built on Debian for use with</div>
<div> the NVIDIA CUDA Toolkit. This obsolete version is needed for</div>
<div> nvidia-visual-profiler.</div>
<div>Homepage: https://developer.nvidia.com/cuda-zone</div>
<div><br>
</div>
<div>I am currently running an up-to-date Debian Bullseye installation:</div>
<div><br>
</div>
<div>debian@hostname:~$ sudo apt-get update</div>
<div>Hit:1 http://security.debian.org/debian-security bullseye-security InRelease</div>
<div>Hit:2 http://deb.debian.org/debian bullseye InRelease</div>
<div>Hit:3 http://deb.debian.org/debian bullseye-updates InRelease</div>
<div>Hit:4 http://deb.debian.org/debian bullseye-backports InRelease</div>
<div>Reading package lists... Done</div>
<div>debian@hostname:~$ sudo apt-get upgrade</div>
<div>Reading package lists... Done</div>
<div>Building dependency tree... Done</div>
<div>Reading state information... Done</div>
<div>Calculating upgrade... Done</div>
<div>0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.</div>
<div>debian@hostname:~$ sudo apt-get dist-upgrade</div>
<div>Reading package lists... Done</div>
<div>Building dependency tree... Done</div>
<div>Reading state information... Done</div>
<div>Calculating upgrade... Done</div>
<div>0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.</div>
<div><br>
</div>
<div>So I am running the latest version of the libc package which appears to be 2.31:</div>
<div><br>
</div>
<div>debian@hostname:~$ ls -l /lib/*/libc.so.6</div>
<div>lrwxrwxrwx 1 root root 12 Mar 17 21:37 /lib/x86_64-linux-gnu/libc.so.6 -> libc-2.31.so</div>
<div><br>
</div>
<div><br>
</div>
<div>debian@hostname:~$ apt show libc6 | grep ^Version</div>
<div><br>
</div>
<div>WARNING: apt does not have a stable CLI interface. Use with caution in scripts.</div>
<div><br>
</div>
<div>Version: 2.31-13+deb11u3</div>
<div><br>
</div>
<div><br>
</div>
<div>For additional testing purposes, I have removed the 9.+8u312-b07-1~11.2.2-3+deb11u1 version of the package and installed a previous version (9.+8u292-b10-3~11.2.2-3) which I obtained from the Debian snapshot project using following URL: https://snapshot.debian.org/archive/debian/20210724T084841Z/pool/non-free/n/nvidia-cuda-toolkit/nvidia-openjdk-8-jre_9.%2B8u292-b10-3%7E11.2.2-3_amd64.deb</div>
<div>I know this version works as I have it still in an internal Aptly repository, however it seems that that package recently has been removed from the official Debian repositories</div>
<div><br>
</div>
<div><br>
</div>
<div>1: Running the latest version of the nvidia-openjdk-8-jre package:</div>
<div><br>
</div>
<div>debian@hostname:~$ dpkg --status nvidia-openjdk-8-jre</div>
<div>Package: nvidia-openjdk-8-jre</div>
<div>Status: install ok installed</div>
<div>Priority: optional</div>
<div>Section: non-free/java</div>
<div>Installed-Size: 100973</div>
<div>Maintainer: Debian NVIDIA Maintainers <pkg-nvidia-devel@lists.alioth.debian.org></div>
<div>Architecture: amd64</div>
<div>Source: nvidia-cuda-toolkit (11.2.2-3+deb11u1)</div>
<div>Version: 9.+8u312-b07-1~11.2.2-3+deb11u1</div>
<div>Replaces: openjdk-8-jre, openjdk-8-jre-headless</div>
<div>Depends: libasound2 (>= 1.0.16), libc6 (>= 2.29), libfreetype6 (>= 2.3.5), libgcc-s1 (>= 3.0), libgif7 (>= 5.1), libjpeg62-turbo (>= 1.3.1), liblcms2-2 (>= 2.2+git20110628), libpcsclite1 (>= 1.3.0), libpng16-16 (>= 1.6.2-1), libpulse0 (>= 0.99.1), libstdc++6
(>= 4.1.1), libx11-6, libxext6, libxi6, libxrender1, libxtst6, zlib1g (>= 1:1.1.4)</div>
<div>Conflicts: openjdk-8-jre, openjdk-8-jre-headless</div>
<div>Description: Obsolete OpenJDK Java runtime, for NVIDIA applications</div>
<div> Full Java runtime environment - needed for executing Java GUI and Webstart</div>
<div> programs, using Hotspot JIT.</div>
<div> .</div>
<div> This package provides OpenJDK-8 JRE binaries built on Debian for use with</div>
<div> the NVIDIA CUDA Toolkit. This obsolete version is needed for</div>
<div> nvidia-visual-profiler.</div>
<div>Homepage: https://developer.nvidia.com/cuda-zone</div>
<div><br>
</div>
<div>2: Verify that java is not working:</div>
<div><br>
</div>
<div>debian@hostname:~$ which java</div>
<div>/usr/bin/java</div>
<div>debian@hostname:~$ ls -alh /usr/bin/java</div>
<div>lrwxrwxrwx 1 root root 22 Mar 28 07:14 /usr/bin/java -> /etc/alternatives/java</div>
<div>debian@hostname:~$ ls -alh /etc/alternatives/java </div>
<div>lrwxrwxrwx 1 root root 42 Mar 28 07:14 /etc/alternatives/java -> /usr/lib/jvm/java-8-openjdk-amd64/bin/java</div>
<div>debian@hostname:~$ java -version</div>
<div>Error: dl failure on line 894</div>
<div>Error: failed /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so, because /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so)</div>
<div><br>
</div>
<div>3: Remove the nvidia-openjdk-8-jre package</div>
<div><br>
</div>
<div>debian@hostname:~$ sudo apt-get purge nvidia-openjdk-8-jre</div>
<div>Reading package lists... Done</div>
<div>Building dependency tree... Done</div>
<div>Reading state information... Done</div>
<div>The following packages were automatically installed and are no longer required:</div>
<div> alsa-topology-conf alsa-ucm-conf libasound2 libasound2-data libasyncns0 libflac8 libgif7 liblcms2-2 libogg0 libopus0 libpcsclite1 libpulse0 libsndfile1 libvorbis0a libvorbisenc2 libxext6 libxi6 libxrender1 libxtst6 x11-common</div>
<div>Use 'sudo apt autoremove' to remove them.</div>
<div>The following packages will be REMOVED:</div>
<div> nvidia-openjdk-8-jre*</div>
<div>0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.</div>
<div>After this operation, 103 MB disk space will be freed.</div>
<div>Do you want to continue? [Y/n] y</div>
<div>apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!</div>
<div>perl: warning: Setting locale failed.</div>
<div>perl: warning: Please check that your locale settings:</div>
<div>LANGUAGE = (unset),</div>
<div>LC_ALL = (unset),</div>
<div>LC_TIME = "en_GB.UTF-8",</div>
<div>LC_MONETARY = "en_GB.UTF-8",</div>
<div>LC_ADDRESS = "en_GB.UTF-8",</div>
<div>LC_TELEPHONE = "en_GB.UTF-8",</div>
<div>LC_NAME = "en_GB.UTF-8",</div>
<div>LC_MEASUREMENT = "en_GB.UTF-8",</div>
<div>LC_IDENTIFICATION = "en_GB.UTF-8",</div>
<div>LC_NUMERIC = "en_GB.UTF-8",</div>
<div>LC_PAPER = "en_GB.UTF-8",</div>
<div>LANG = "C.UTF-8"</div>
<div> are supported and installed on your system.</div>
<div>perl: warning: Falling back to a fallback locale ("C.UTF-8").</div>
<div>(Reading database ... 33654 files and directories currently installed.)</div>
<div>Removing nvidia-openjdk-8-jre (9.+8u312-b07-1~11.2.2-3+deb11u1) ...</div>
<div>Processing triggers for libc-bin (2.31-13+deb11u3) ...</div>
<div><br>
</div>
<div>4: Installing the previous version from the snapshot project</div>
<div><br>
</div>
<div>debian@hostname:~$ wget https://snapshot.debian.org/archive/debian/20210724T084841Z/pool/non-free/n/nvidia-cuda-toolkit/nvidia-openjdk-8-jre_9.%2B8u292-b10-3%7E11.2.2-3_amd64.deb</div>
<div>--2022-03-29 07:49:56-- https://snapshot.debian.org/archive/debian/20210724T084841Z/pool/non-free/n/nvidia-cuda-toolkit/nvidia-openjdk-8-jre_9.%2B8u292-b10-3~11.2.2-3_amd64.deb</div>
<div>Resolving snapshot.debian.org (snapshot.debian.org)... 193.62.202.27, 185.17.185.185, 2001:1af8:4020:b030:deb::185, ...</div>
<div>Connecting to snapshot.debian.org (snapshot.debian.org)|193.62.202.27|:443... connected.</div>
<div>HTTP request sent, awaiting response... 200 OK</div>
<div>Length: 28086256 (27M)</div>
<div>Saving to: 'nvidia-openjdk-8-jre_9.+8u292-b10-3~11.2.2-3_amd64.deb'</div>
<div><br>
</div>
<div>nvidia-openjdk-8-jre_9.+8u292-b10-3~11.2.2-3_amd64.deb 100%[==========================================================================================================================================================================>] 26.78M
107MB/s in 0.3s </div>
<div><br>
</div>
<div>2022-03-29 07:49:57 (107 MB/s) - 'nvidia-openjdk-8-jre_9.+8u292-b10-3~11.2.2-3_amd64.deb' saved [28086256/28086256]</div>
<div><br>
</div>
<div><br>
</div>
<div>debian@hostname:~$ sudo dpkg -i nvidia-openjdk-8-jre_9.+8u292-b10-3~11.2.2-3_amd64.deb
</div>
<div>Selecting previously unselected package nvidia-openjdk-8-jre.</div>
<div>(Reading database ... 33444 files and directories currently installed.)</div>
<div>Preparing to unpack nvidia-openjdk-8-jre_9.+8u292-b10-3~11.2.2-3_amd64.deb ...</div>
<div>Unpacking nvidia-openjdk-8-jre (9.+8u292-b10-3~11.2.2-3) ...</div>
<div>Setting up nvidia-openjdk-8-jre (9.+8u292-b10-3~11.2.2-3) ...</div>
<div>Processing triggers for libc-bin (2.31-13+deb11u3) ...</div>
<div><br>
</div>
<div>5: Verify that java is working again:</div>
<div><br>
</div>
<div>debian@hostname:~$ which java</div>
<div>/usr/bin/java</div>
<div>debian@hostname:~$ ls -alh /usr/bin/java </div>
<div>lrwxrwxrwx 1 root root 22 Mar 28 07:14 /usr/bin/java -> /etc/alternatives/java</div>
<div>debian@hostname:~$ ls -alh /etc/alternatives/java </div>
<div>lrwxrwxrwx 1 root root 42 Mar 28 07:14 /etc/alternatives/java -> /usr/lib/jvm/java-8-openjdk-amd64/bin/java</div>
<div>debian@hostname:~$ java -version</div>
<div>openjdk version "1.8.0_292"</div>
<div>OpenJDK Runtime Environment (build 1.8.0_292-8u292-b10-3-b10)</div>
<div>OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)</div>
<div><br>
</div>
<div><br>
</div>
<div>I believe that the latest version of the nvidia-openjdk-8-jre package has been compiled with a higher libc version than the one which is available in the official Debian Bullseye repositories and I suppose the fix would be to re-compile the package with
a lower libc version in order to ensure compatibility.</div>
<div><br>
</div>
<div>I hope the above provides adequate information to verify and resolve this bug. However, if additional information is required, please let me know!</div>
<div><br>
</div>
<div>Kind Regards,</div>
<div><br>
</div>
Peter<br>
</div>
</body>
</html>