-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
P4
-
Affects Version/s: 26
-
Component/s: core-libs
-
Environment:
+ hostname -I
172.18.226.152 172.17.0.1
+ uname -a
Linux KP57 4.19.90-89.11.v2401.ky10.aarch64 #1 SMP Thu Apr 25 18:20:10 CST 2024 aarch64 aarch64 aarch64 GNU/Linux
+ cat /etc/os-release
NAME="Kylin Linux Advanced Server"
VERSION="V10 (Halberd)"
ID="kylin"
VERSION_ID="V10"
PRETTY_NAME="Kylin Linux Advanced Server V10 (Halberd)"
ANSI_COLOR="0;31"+ free -h
total used free shared buff/cache available
Mem: 509Gi 11Gi 374Gi 61Mi 123Gi 485Gi
Swap: 4.0Gi 269Mi 3.7Gi
+ lscpu
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 128
On-line CPU(s) list: 0-127
Thread(s) per core: 1
Core(s) per socket: 64
Socket(s): 2
NUMA node(s): 4
Vendor ID: HiSilicon
Model: 0
Model name: Kunpeng-920
Stepping: 0x1
BogoMIPS: 200.00
L1d cache: 8 MiB
L1i cache: 8 MiB
L2 cache: 64 MiB
L3 cache: 256 MiB
NUMA node0 CPU(s): 0-31
NUMA node1 CPU(s): 32-63
NUMA node2 CPU(s): 64-95
NUMA node3 CPU(s): 96-127
Vulnerability Gather data sampling: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec store bypass: Vulnerable
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Not affected
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Not affected
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma dcpop asimddp asimdfhm
+ ldd --version
ldd (GNU libc) 2.28
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
+ ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 2087979
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 655350
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
+ java -version
openjdk version "25.0.2-internal" 2026-01-20
OpenJDK Runtime Environment (build 25.0.2-internal-a7cdb534)
OpenJDK 64-Bit Server VM (build 25.0.2-internal-a7cdb534, mixed mode, sharing)
+ java -Xinternalversion
OpenJDK 64-Bit Server VM (25.0.2-internal-a7cdb534) for linux-aarch64 JRE (25.0.2-internal-a7cdb534), built on 2025-08-26T01:47:27Z with gcc 10.3.0
+ jtreg -version
No java executable at /home/yansendao/git/jdk/build/linux-aarch64-server-release/images/jdk/bin/java
+ git remote -v
origin git@github.com:openjdk/jdk.git (fetch)
origin git@github.com:openjdk/jdk.git (push)
+ git branch- (HEAD detached at 1cdd241ff3e)
master
+ head -n 1
+ git log -n 1
commit 1cdd241ff3ed57a4df4bac54b2659d68d161b53c
+ git status
HEAD detached at 1cdd241ff3e
Untracked files:
(use "git add <file>..." to include in what will be committed)
Test.java
make/server.log
make/server.log.1
test.log
nothing added to commit but untracked files present (use "git add" to track)
+ git diff+ hostname -I 172.18.226.152 172.17.0.1 + uname -a Linux KP57 4.19.90-89.11.v2401.ky10.aarch64 #1 SMP Thu Apr 25 18:20:10 CST 2024 aarch64 aarch64 aarch64 GNU/Linux + cat /etc/os-release NAME="Kylin Linux Advanced Server" VERSION="V10 (Halberd)" ID="kylin" VERSION_ID="V10" PRETTY_NAME="Kylin Linux Advanced Server V10 (Halberd)" ANSI_COLOR="0;31" + free -h total used free shared buff/cache available Mem: 509Gi 11Gi 374Gi 61Mi 123Gi 485Gi Swap: 4.0Gi 269Mi 3.7Gi + lscpu Architecture: aarch64 CPU op-mode(s): 64-bit Byte Order: Little Endian CPU(s): 128 On-line CPU(s) list: 0-127 Thread(s) per core: 1 Core(s) per socket: 64 Socket(s): 2 NUMA node(s): 4 Vendor ID: HiSilicon Model: 0 Model name: Kunpeng-920 Stepping: 0x1 BogoMIPS: 200.00 L1d cache: 8 MiB L1i cache: 8 MiB L2 cache: 64 MiB L3 cache: 256 MiB NUMA node0 CPU(s): 0-31 NUMA node1 CPU(s): 32-63 NUMA node2 CPU(s): 64-95 NUMA node3 CPU(s): 96-127 Vulnerability Gather data sampling: Not affected Vulnerability Itlb multihit: Not affected Vulnerability L1tf: Not affected Vulnerability Mds: Not affected Vulnerability Meltdown: Not affected Vulnerability Mmio stale data: Not affected Vulnerability Retbleed: Not affected Vulnerability Spec store bypass: Vulnerable Vulnerability Spectre v1: Mitigation; __user pointer sanitization Vulnerability Spectre v2: Not affected Vulnerability Srbds: Not affected Vulnerability Tsx async abort: Not affected Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma dcpop asimddp asimdfhm + ldd --version ldd (GNU libc) 2.28 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Roland McGrath and Ulrich Drepper. + ulimit -a core file size (blocks, -c) unlimited data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 2087979 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 655350 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) unlimited virtual memory (kbytes, -v) unlimited file locks (-x) unlimited + java -version openjdk version "25.0.2-internal" 2026-01-20 OpenJDK Runtime Environment (build 25.0.2-internal-a7cdb534) OpenJDK 64-Bit Server VM (build 25.0.2-internal-a7cdb534, mixed mode, sharing) + java -Xinternalversion OpenJDK 64-Bit Server VM (25.0.2-internal-a7cdb534) for linux-aarch64 JRE (25.0.2-internal-a7cdb534), built on 2025-08-26T01:47:27Z with gcc 10.3.0 + jtreg -version No java executable at /home/yansendao/git/jdk/build/linux-aarch64-server-release/images/jdk/bin/java + git remote -v origin git@github.com:openjdk/jdk.git (fetch) origin git@github.com:openjdk/jdk.git (push) + git branch (HEAD detached at 1cdd241ff3e) master + head -n 1 + git log -n 1 commit 1cdd241ff3ed57a4df4bac54b2659d68d161b53c + git status HEAD detached at 1cdd241ff3e Untracked files: (use "git add <file>..." to include in what will be committed) Test.java make/server.log make/server.log.1 test.log nothing added to commit but untracked files present (use "git add" to track) + git diff - (HEAD detached at 1cdd241ff3e)
-
aarch64
-
linux
[COMMAND]
docker ps
[2025-11-13T07:56:04.154009465Z] Gathering output for process 3741348
[ELAPSED: 31 ms]
[STDERR]
[STDOUT]
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f522bb0f7f1d jdk-build:11 "bash" 30 hours ago Up 30 hours jdk-build-yansendao
Full child process STDOUT was saved to docker-stdout-3741348.log
[2025-11-13T07:56:04.176537901Z] Waiting for completion for process 3741348
[2025-11-13T07:56:04.176636082Z] Waiting for completion finished for process 3741348
[2025-11-13T07:56:04.178029641Z] Gathering output for process 3741360
[2025-11-13T07:56:04.178321793Z] Waiting for completion for process 3741360
[2025-11-13T07:56:04.187852969Z] Waiting for completion finished for process 3741360
docker --version returning: Docker version 26.1.4, build 5650f9b
[COMMAND]
docker info -f {{.Host.Security.Rootless}}
[2025-11-13T07:56:04.189193919Z] Gathering output for process 3741372
[ELAPSED: 15 ms]
[STDERR]
template: :1:7: executing "" at <.Host.Security.Rootless>: can't evaluate field Host in type system.dockerInfo
[STDOUT]
Full child process STDOUT was saved to docker-stdout-3741372.log
[COMMAND]
docker info -f {{.SecurityOptions}}
[2025-11-13T07:56:04.205090629Z] Gathering output for process 3741390
[ELAPSED: 15 ms]
[STDERR]
[STDOUT]
[name=seccomp,profile=builtin]
Full child process STDOUT was saved to docker-stdout-3741390.log
DockerfileConfig: using custom image name: jdk-build
DockerfileConfig: using custom image version: 11
[COMMAND]
docker build --no-cache --tag jdk-internal:test-containers-docker-TestMemoryInvisibleParent-invisible-parent jdk-internal-test-containers-docker-TestMemoryInvisibleParent-invisible-parent
[2025-11-13T07:56:04.514995107Z] Gathering output for process 3741407
[ELAPSED: 7759 ms]
[STDERR]
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
[STDOUT]
Sending build context to Docker daemon 1.216GB
Step 1/4 : FROM jdk-build:11
---> bca9183be6c6
Step 2/4 : COPY /jdk /jdk
---> 0d71902abbf6
Step 3/4 : ENV JAVA_HOME=/jdk
---> Running in 1d4c80863b3c
---> Removed intermediate container 1d4c80863b3c
---> 2a65a75df232
Step 4/4 : CMD ["/bin/bash"]
---> Running in 73f049a9f286
---> Removed intermediate container 73f049a9f286
---> a4c4702c93ab
Successfully built a4c4702c93ab
Successfully tagged jdk-internal:test-containers-docker-TestMemoryInvisibleParent-invisible-parent
Full child process STDOUT was saved to docker-stdout-3741407.log
[2025-11-13T07:56:12.274000714Z] Waiting for completion for process 3741407
[2025-11-13T07:56:12.274086964Z] Waiting for completion finished for process 3741407
========== NEW TEST CASE: Cgroup V1 hidden parent memory limit: 104857600
[2025-11-13T07:56:12.277434917Z] Gathering output for process 3741424
[2025-11-13T07:56:12.277776590Z] Waiting for completion for process 3741424
[2025-11-13T07:56:12.278028522Z] Waiting for completion finished for process 3741424
[2025-11-13T07:56:12.279077669Z] Gathering output for process 3741427
[2025-11-13T07:56:12.279375561Z] Waiting for completion for process 3741427
[2025-11-13T07:56:12.279644063Z] Waiting for completion finished for process 3741427
[COMMAND]
docker rmi --force jdk-internal:test-containers-docker-TestMemoryInvisibleParent-invisible-parent
[2025-11-13T07:56:12.280602929Z] Gathering output for process 3741430
[ELAPSED: 42 ms]
[STDERR]
[STDOUT]
Untagged: jdk-internal:test-containers-docker-TestMemoryInvisibleParent-invisible-parent
Deleted: sha256:a4c4702c93abe65f58972bcc733a85c504cb8f6835a977ceeaa5fc5620b234a7
Deleted: sha256:2a65a75df232fc31b8019039c78bd29470af6c897044dc827cc34e61fe260a03
Deleted: sha256:0d71902abbf68eedaa59cbaf7ad619e78a6d96ffaeac2216896349dc98f88be8
Deleted: sha256:a753fbfdc25be2c60bac8289167727feaa6a8894047c92d0b102c8c9b95f432c
Full child process STDOUT was saved to docker-stdout-3741430.log
STDERR:
java.nio.file.AccessDeniedException: /sys/fs/cgroup/memory/hidden-parent-TestMemoryInvisibleParent26/memory.limit_in_bytes
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:108)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:113)
at java.base/sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:214)
at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:245)
at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:426)
at java.base/java.nio.file.Files.newOutputStream(Files.java:215)
at java.base/java.nio.file.Files.write(Files.java:3174)
at java.base/java.nio.file.Files.writeString(Files.java:3368)
at java.base/java.nio.file.Files.writeString(Files.java:3315)
at TestMemoryInvisibleParent.setParentWithLimit(TestMemoryInvisibleParent.java:111)
at TestMemoryInvisibleParent.testMemoryLimitHiddenParent(TestMemoryInvisibleParent.java:99)
at TestMemoryInvisibleParent.main(TestMemoryInvisibleParent.java:71)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1474)
- relates to
-
JDK-8370966 Create regression test for the hierarchical memory limit fix in JDK-8370572
-
- Resolved
-
- links to
-
Review(master)
openjdk/jdk/28286