-
Type:
Bug
-
Resolution: Not an Issue
-
Priority:
P4
-
Affects Version/s: 25, 26
-
Component/s: hotspot
-
generic
-
linux
The jdk/internal/platform/docker and hs containers/docker tests fail when running with ubsan enabled binaries and the host has docker installed.
The docker container however misses ubsan and runs into
[STDOUT]
/jdk/bin/java: error while loading shared libraries: libubsan.so.1: cannot open shared object file: No such file or directory
We already try to install the ubsan package into the container
https://github.com/openjdk/jdk/blob/0a963b612d0fcbfe002340098341862096650945/test/lib/jdk/test/lib/containers/docker/DockerTestUtils.java#L356
template += "RUN apt-get update && apt-get install -y libubsan1\n";
but for some reason this does not help.
In the docker build - part of the jtr logfile I do not see the installation of the libubsan1 package .
[COMMAND]
docker build --no-cache --tag jdk-internal:test-containers-docker-DockerBasicTest-basic jdk-internal-test-containers-docker-DockerBasicTest-basic
[2025-11-22T11:54:54.560569174Z] Gathering output for process 991227
[ELAPSED: 14079 ms]
[STDERR]
#0 building with "default" instance using docker driver
#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 116B done
#1 DONE 0.0s
#2 [internal] load metadata for docker.io/arm64v8/ubuntu:latest
#2 DONE 0.0s
#3 [internal] load .dockerignore
#3 transferring context: 2B done
#3 DONE 0.0s
#4 [1/2] FROM docker.io/arm64v8/ubuntu:latest
#4 CACHED
#5 [internal] load build context
#5 transferring context: 1.23GB 5.0s
#5 transferring context: 1.44GB 5.9s done
#5 DONE 5.9s
#6 [2/2] COPY /jdk /jdk
#6 DONE 4.3s
#7 exporting to image
#7 exporting layers
#7 exporting layers 3.5s done
#7 writing image sha256:d8bd47f103366f9cda6a83f446798cf59a4bb45b69daecc5143a21bf317c8d1b done
#7 naming to docker.io/library/jdk-internal:test-containers-docker-DockerBasicTest-basic done
#7 DONE 3.5s
The docker container however misses ubsan and runs into
[STDOUT]
/jdk/bin/java: error while loading shared libraries: libubsan.so.1: cannot open shared object file: No such file or directory
We already try to install the ubsan package into the container
https://github.com/openjdk/jdk/blob/0a963b612d0fcbfe002340098341862096650945/test/lib/jdk/test/lib/containers/docker/DockerTestUtils.java#L356
template += "RUN apt-get update && apt-get install -y libubsan1\n";
but for some reason this does not help.
In the docker build - part of the jtr logfile I do not see the installation of the libubsan1 package .
[COMMAND]
docker build --no-cache --tag jdk-internal:test-containers-docker-DockerBasicTest-basic jdk-internal-test-containers-docker-DockerBasicTest-basic
[2025-11-22T11:54:54.560569174Z] Gathering output for process 991227
[ELAPSED: 14079 ms]
[STDERR]
#0 building with "default" instance using docker driver
#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 116B done
#1 DONE 0.0s
#2 [internal] load metadata for docker.io/arm64v8/ubuntu:latest
#2 DONE 0.0s
#3 [internal] load .dockerignore
#3 transferring context: 2B done
#3 DONE 0.0s
#4 [1/2] FROM docker.io/arm64v8/ubuntu:latest
#4 CACHED
#5 [internal] load build context
#5 transferring context: 1.23GB 5.0s
#5 transferring context: 1.44GB 5.9s done
#5 DONE 5.9s
#6 [2/2] COPY /jdk /jdk
#6 DONE 4.3s
#7 exporting to image
#7 exporting layers
#7 exporting layers 3.5s done
#7 writing image sha256:d8bd47f103366f9cda6a83f446798cf59a4bb45b69daecc5143a21bf317c8d1b done
#7 naming to docker.io/library/jdk-internal:test-containers-docker-DockerBasicTest-basic done
#7 DONE 3.5s