JDK-8302716 : Cgroups : detection logic broken on systems with v1 controllers
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 8u361
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2023-02-17
  • Updated: 2023-07-20
  • Resolved: 2023-07-20
Related Reports
Duplicate :  
Relates :  
Relates :  
Sub Tasks
JDK-8302663 :  
JDK-8302796 :  
Description
After updating to JDK 8u361, applications may fail to start, with multiple Exceptions being thrown, ultimately identified by a java.lang.ArrayIndexOutOfBoundsException occurring at jdk.internal.platform.cgroupv2.CgroupV2Subsystem.initSubsystem.

The JVM will fail to initialize on Linux systems where /proc/self/mountinfo does not contain any mounted filesystem or controllers for cgroups. This failure occurs due to a faulty detection logic in the JVM where it incorrectly detects a cgroup v1 system, having no mounted controllers, as a cgroup v2 system.
Comments
Regression in Oracle JDK 8u361 resolved by the backports of: JDK-8239559 and JDK-8239785
17-02-2023

Fixed by backport of JDK-9239785
17-02-2023

Fixed by backport of JDK-8239559
17-02-2023