Test failure in TestJcmdWithSideCar.java
Yasumasa Suenaga
suenaga at oss.nttdata.com
Thu Dec 18 13:04:30 UTC 2025
Hi,
I'm working on JDK-28867 ( https://github.com/openjdk/jdk/pull/28867 ),
and @slovdahl said this PR might fix the failure in
TestJcmdWithSideCar.java which has been recorded in ProblemList.
Unfortunately this PR fix that problem, but I found the cause of
failure, so I will tell it to the maillist.
The cause is mismatch container base image and OS of build host.
I'm using Fedora 43 to build OpenJDK, however container test would use
ubuntu:latest image by default.
Thus I saw error in dynamic linker in .jtr file as following. It is why
main container wasn't started.
```
[main-container-process] Error: dl failure on line 532
[main-container-process] Error: failed /jdk/lib/server/libjvm.so,
because /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_ABI_GNU2_TLS'
not found (required by /jdk/lib/server/libjvm.so)
```
The test passed when I added both -Djdk.test.docker.image.name
-Djdk.test.docker.image.version as following.
```
make test
TEST=test/hotspot/jtreg/containers/docker/TestJcmdWithSideCar.java
JTREG="JAVA_OPTIONS=-Djdk.test.container.command=podman
-Djdk.test.docker.image.name=fedora -Djdk.test.docker.image.version=43"
```
Thus it is an environment problem. Not a bug.
Thanks,
Yasumasa
More information about the serviceability-dev
mailing list