JDK-8280056 : gtest/LargePageGtests.java#use-large-pages failed "os.release_one_mapping_multi_commits_vm"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 17,18,20,21,22
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux_ubuntu
  • CPU: ppc,x86_64
  • Submitted: 2022-01-16
  • Updated: 2024-05-20
  • Resolved: 2024-01-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17 JDK 21 JDK 23
17.0.12Fixed 21.0.4Fixed 23 b06Fixed
Related Reports
Relates :  
Relates :  
Description
The following test failed in my stress testing of jdk-18+31:

gtest/LargePageGtests.java#use-large-pages

Here's a snippet from the log file:

[ RUN      ] os.release_one_mapping_multi_commits_vm
A
Range [7f129cc2e000-7f129dc2e000) contains: 7f129cc2e000-7f129d02e000 rw-p 00000000 00:00 0
7f129d02e000-7f129d42e000 ---p 00000000 00:00 0
7f129d42e000-7f129d82e000 rw-p 00000000 00:00 0
7f129d82e000-7f129dc2e000 ---p 00000000 00:00 0

B
Range [7f129cc2e000-7f129dc2e000) contains: nothing.
open/test/hotspot/gtest/runtime/test_os.cpp:504: Failure
Expected equality of these values:
  p2
    Which is: NULL
  p
    Which is: 0x7f129cc2e000
[  FAILED  ] os.release_one_mapping_multi_commits_vm (49 ms)
Comments
Fix request [17u.21u] I backport this because we see it failing in our CI. No risk, only a test change. Clean backport. Test passes. SAP nightly testing passed.
26-03-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/2325 Date: 2024-03-25 14:26:31 +0000
25-03-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u-dev/pull/406 Date: 2024-03-25 14:25:20 +0000
25-03-2024

We observed a similar failure in jdk21 on Linux ppc64le recently; is it planned (and would it help) to backport the fix to 21 ?
25-03-2024

Changeset: 66520be7 Author: Afshin Zafari <azafari@openjdk.org> Date: 2024-01-12 08:21:42 +0000 URL: https://git.openjdk.org/jdk/commit/66520be7a752ebade6c88d164bc87c4bfcfce40a
12-01-2024

Here's the log from my jdk-22+20 stress run sighting on linux-x64: $ unzip -l jdk-22+20_linux-x64.8280056.zip Archive: jdk-22+20_linux-x64.8280056.zip Length Date Time Name --------- ---------- ----- ---- 32853 2023-10-22 13:11 jdk-22+20_3/failures.linux-x86_64/LargePageGtests_use-large-pages.jtr.release --------- ------- 32853 1 file
23-10-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/16240 Date: 2023-10-18 10:07:46 +0000
18-10-2023

Issue is still present in JDK20/21.
04-04-2023

The issue still occurs ~every month as well in our internal tests. 2 Examples from JDK20 / 21 : example JDK20, linux x86_64 Ubuntu22 : ---------------------------------------------------------------------------- java.lang.AssertionError: gtest execution failed; exit code = 2. the failed tests: [os::release_one_mapping_multi_commits_vm] at GTestWrapper.main(GTestWrapper.java:98) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:578) at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312) at java.base/java.lang.Thread.run(Thread.java:1623) stdout: A Range [7f48254d4000-7f48254da000) contains: 7f48254d4000-7f48254d5000 rwxp 00000000 00:00 0 7f48254d5000-7f48254d6000 rw-p 00000000 00:00 0 7f48254d6000-7f48254d7000 rwxp 00000000 00:00 0 7f48254d7000-7f48254d8000 rw-p 00000000 00:00 0 7f48254d8000-7f48254d9000 rwxp 00000000 00:00 0 7f48254d9000-7f48254da000 rw-p 00000000 00:00 0 B Range [7f48254d4000-7f48254da000) contains: 7f48254d4000-7f48254d5000 rwxp 00000000 00:00 0 7f48254d9000-7f48254da000 rw-p 00000000 00:00 0 C Range [7f48254d4000-7f48254da000) contains: 7f48254d4000-7f48254d5000 rwxp 00000000 00:00 0 7f48254d5000-7f48254d9000 ---p 00000000 00:00 0 7f48254d9000-7f48254da000 rw-p 00000000 00:00 0 [ OK ] os.release_multi_mappings_vm (2 ms) [ RUN ] os.release_one_mapping_multi_commits_vm A Range [7f47f88fe000-7f47f98fe000) contains: 7f47f88fe000-7f47f8cfe000 rw-p 00000000 00:00 0 7f47f8cfe000-7f47f90fe000 ---p 00000000 00:00 0 7f47f90fe000-7f47f94fe000 rw-p 00000000 00:00 0 7f47f94fe000-7f47f98fe000 ---p 00000000 00:00 0 B Range [7f47f88fe000-7f47f98fe000) contains: nothing. test/hotspot/gtest/runtime/test_os.cpp:566: Failure Expected equality of these values: p2 Which is: NULL p Which is: 0x7f47f88fe000 [ FAILED ] os.release_one_mapping_multi_commits_vm (1 ms) example JDK21, linux aarch64 RHEL 9.1 --------------------------------------------------------------------- java.lang.AssertionError: gtest execution failed; exit code = 2. the failed tests: [os::release_one_mapping_multi_commits_vm] at GTestWrapper.main(GTestWrapper.java:98) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:578) at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312) at java.base/java.lang.Thread.run(Thread.java:1623) stdout : A Range [ffffaeb1c000-ffffaeb22000) contains: ffffaeb1c000-ffffaeb1d000 rwxp 00000000 00:00 0 ffffaeb1d000-ffffaeb1e000 rw-p 00000000 00:00 0 ffffaeb1e000-ffffaeb1f000 rwxp 00000000 00:00 0 ffffaeb1f000-ffffaeb20000 rw-p 00000000 00:00 0 ffffaeb20000-ffffaeb21000 rwxp 00000000 00:00 0 ffffaeb21000-ffffaeb22000 rw-p 00000000 00:00 0 B Range [ffffaeb1c000-ffffaeb22000) contains: ffffaeb1c000-ffffaeb1d000 rwxp 00000000 00:00 0 ffffaeb21000-ffffaeb22000 rw-p 00000000 00:00 0 C Range [ffffaeb1c000-ffffaeb22000) contains: ffffaeb1c000-ffffaeb1d000 rwxp 00000000 00:00 0 ffffaeb1d000-ffffaeb21000 ---p 00000000 00:00 0 ffffaeb21000-ffffaeb22000 rw-p 00000000 00:00 0 [ OK ] os.release_multi_mappings_vm (0 ms) [ RUN ] os.release_one_mapping_multi_commits_vm A Range [ffff518bf000-ffff528bf000) contains: ffff518bf000-ffff51cbf000 rw-p 00000000 00:00 0 ffff51cbf000-ffff520bf000 ---p 00000000 00:00 0 ffff520bf000-ffff524bf000 rw-p 00000000 00:00 0 ffff524bf000-ffff528bf000 ---p 00000000 00:00 0 B Range [ffff518bf000-ffff528bf000) contains: nothing. test/hotspot/gtest/runtime/test_os.cpp:566: Failure Expected equality of these values: p2 Which is: NULL p Which is: 0xffff518bf000 [ FAILED ] os.release_one_mapping_multi_commits_vm (0 ms)
04-04-2023

Runtime Triage: did not see this issue since JDK 19, closing as CNR
09-01-2023

Added logs for a sighting in my jdk-19+12 stress testing: gtest/LargePageGtests.java#use-large-pages-sysV $ unzip -l jdk-19+12_linux.8280056.zip Archive: jdk-19+12_linux.8280056.zip Length Date Time Name --------- ---------- ----- ---- 23719 2022-03-03 23:02 jdk-19+12_1/failures.linux-x86_64/LargePageGtests_use-large-pages-sysV.jtr.release --------- ------- 23719 1 file
06-03-2022

ILW = MLM = P4
18-01-2022