-
Bug
-
Resolution: Fixed
-
P3
-
17, 19
-
b25
-
linux_ubuntu
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8287999 | 17.0.5-oracle | Ioi Lam | P3 | Resolved | Fixed | b01 |
JDK-8288100 | 17.0.5 | Severin Gehwolf | P3 | Resolved | Fixed | b01 |
JDK-8299117 | 11.0.19-oracle | PAWAN CHAWDHARY | P3 | Resolved | Fixed | b01 |
JDK-8292963 | 11.0.17 | Severin Gehwolf | P3 | Resolved | Fixed | b05 |
JDK-8301362 | openjdk8u372 | Severin Gehwolf | P3 | Resolved | Fixed | b02 |
JDK-8302718 | 8u381 | Ivan Bereziuk | P3 | Resolved | Fixed | b01 |
-------------
cat /proc/self/cgroup
1:freezer:/
0::/user.slice/user-1001.slice/session-85.scope
-------------
(See comments below for setting up such an environment).
Reproducible: always (or almost always)
Tests that fail: a variety of tests in tier1 (details below)
Failure type: Assertion
---------------- sample call stack
Caused by: java.lang.AssertionError
at java.base/jdk.internal.platform.CgroupSubsystemFactory.setCgroupV2Path(CgroupSubsystemFactory.java:226)
at java.base/jdk.internal.platform.CgroupSubsystemFactory.lambda$determineType$1(CgroupSubsystemFactory.java:195)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1921)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
at java.base/jdk.internal.platform.CgroupSubsystemFactory.determineType(CgroupSubsystemFactory.java:200)
at java.base/jdk.internal.platform.CgroupSubsystemFactory.create(CgroupSubsystemFactory.java:84)
at java.base/jdk.internal.platform.CgroupMetrics.getInstance(CgroupMetrics.java:177)
at java.base/jdk.internal.platform.SystemMetrics.instance(SystemMetrics.java:29)
at java.base/jdk.internal.platform.Metrics.systemMetrics(Metrics.java:58)
at java.base/jdk.internal.platform.Container.metrics(Container.java:43)
at jdk.management/com.sun.management.internal.OperatingSystemImpl.<init>(OperatingSystemImpl.java:183)
at jdk.management/com.sun.management.internal.PlatformMBeanProviderImpl.getOperatingSystemMXBean(PlatformMBeanProviderImpl.java:280)
...
==========================================
Simple reproducer:
$ cat ManagementFactoryTest.java
public class ManagementFactoryTest {
public static void main(String args[]) {
System.out.println(java.lang.management.ManagementFactory.getOperatingSystemMXBean());
}
}
$ ./jdk/bin/java -esa ManagementFactoryTest.java
- backported by
-
JDK-8287999 CgroupSubsystemFactory.setCgroupV2Path asserts with freezer controller
- Resolved
-
JDK-8288100 CgroupSubsystemFactory.setCgroupV2Path asserts with freezer controller
- Resolved
-
JDK-8292963 CgroupSubsystemFactory.setCgroupV2Path asserts with freezer controller
- Resolved
-
JDK-8299117 CgroupSubsystemFactory.setCgroupV2Path asserts with freezer controller
- Resolved
-
JDK-8301362 CgroupSubsystemFactory.setCgroupV2Path asserts with freezer controller
- Resolved
-
JDK-8302718 CgroupSubsystemFactory.setCgroupV2Path asserts with freezer controller
- Resolved
- relates to
-
JDK-8287741 Fix of JDK-8287107 (unused cgv1 freezer controller) was incomplete
- Resolved
- links to
-
Commit openjdk/jdk8u-dev/36f6f17a
-
Commit openjdk/jdk11u-dev/81c29583
-
Commit openjdk/jdk17u-dev/0d0e4fbc
-
Commit openjdk/jdk/704b9a66
-
Review openjdk/jdk8u-dev/218
-
Review openjdk/jdk11u-dev/1340
-
Review openjdk/jdk17u-dev/443
-
Review openjdk/jdk/8858