eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.27k stars 721 forks source link

cmdLineTester_criu_jitPostRestore Testing: Test -Xjit:exclude={*} AOT load and compilation disabled post restore #20233

Open pshipton opened 2 hours ago

pshipton commented 2 hours ago

https://openj9-jenkins.osuosl.org/job/Test_openjdk23_j9_sanity.functional_aarch64_linux_Nightly/72/ https://openj9-jenkins.osuosl.org/job/Test_openjdk21_j9_sanity.functional_aarch64_linux_Nightly/314/ https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.functional_aarch64_linux_Nightly/777/ https://openj9-jenkins.osuosl.org/job/Test_openjdk11_j9_sanity.functional_aarch64_linux_Nightly_testList_0/736/ cmdLineTester_criu_jitPostRestore_3 https://openj9-jenkins.osuosl.org/job/Test_openjdk11_j9_sanity.functional_aarch64_linux_Nightly_testList_1/735/ cmdLineTester_criu_jitPostRestore_4

01:18:16  Testing: Test -Xjit:exclude={*}
01:18:16  Test start time: 2024/09/25 05:18:13 Coordinated Universal Time
01:18:16  Running command: bash /home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_aarch64_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/functional/cmdLineTests/criu/criuScript.sh /home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_aarch64_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/functional/cmdLineTests/criu /home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_aarch64_linux_Nightly_testList_1/jdkbinary/j2sdk-image/bin/java " -XX:+DebugOnRestore -Xjit:count=0 " org.openj9.criu.OptionsFileTest "JitOptionsTest -Xjit:exclude={*}" 1 false false
01:18:16  Time spent starting: 2 milliseconds
01:18:43  Time spent executing: 26301 milliseconds
01:18:43  Test result: FAILED
01:18:43  Output from test:
01:18:43   [OUT] start running script
01:18:43   [OUT] export GLIBC_TUNABLES=glibc.cpu.hwcaps=-XSAVEC,-XSAVE,-AVX2,-ERMS,-AVX,-AVX_Fast_Unaligned_Load
01:18:43   [OUT] export LD_BIND_NOT=on
01:18:43   [OUT] /home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_aarch64_linux_Nightly_testList_1/jdkbinary/j2sdk-image/bin/java -XX:+EnableCRIUSupport  -XX:+DebugOnRestore -Xjit:count=0  -cp /home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_aarch64_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/functional/cmdLineTests/criu/criu.jar org.openj9.criu.OptionsFileTest JitOptionsTest -Xjit:exclude={*} 1
01:18:43   [OUT] Pre-checkpoint
01:18:43   [OUT] main: Wed Sep 25 05:18:27 UTC 2024, Performing CRIUSupport.checkpointJVM(), System.currentTimeMillis(): 1727241507513, System.nanoTime(): 516570529100577
01:18:43   [OUT] JVMJITM043W AOT load and compilation disabled post restore.
01:18:43   [OUT] JVMJITM044W Some or all compiled code in the code cache invalidated post restore.
01:18:43   [OUT] Post-checkpoint
01:18:43   [OUT] initiate restore
01:18:43   [OUT] Removed test output files
01:18:43   [OUT] finished script
01:18:43   [ERR] /home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_aarch64_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/functional/cmdLineTests/criu/criuScript.sh: line 41: 2726733 Killed                  $2 -XX:+EnableCRIUSupport $3 -cp "$1/criu.jar" $4 $5 $6 > testOutput 2>&1
01:18:43  >> Success condition was found: [Output match: Killed]
01:18:43  >> Required condition was found: [Output match: Pre-checkpoint]
01:18:43  >> Success condition was found: [Output match: Post-checkpoint]
01:18:43  >> Failure condition was not found: [Output match: CRIU is not enabled]
01:18:43  >> Failure condition was not found: [Output match: Operation not permitted]
01:18:43  >> Success condition was found: [Output match: Some or all compiled code in the code cache invalidated post restore.]
01:18:43  >> Failure condition was not found: [Output match: JIT compilation disabled post restore.]
01:18:43  >> Failure condition was found: [Output match: AOT load and compilation disabled post restore.]
01:18:43  >> Success condition was not found: [Output match: Thread pid mismatch]
01:18:43  >> Success condition was not found: [Output match: do not match expected]
01:18:43  >> Success condition was not found: [Output match: Unable to create a thread:]
01:18:43  >> Failure condition was not found: [Output match: User requested Java dump using]

https://github.com/eclipse-openj9/openj9/compare/16ab797349b...ecab2f6c958 https://github.com/eclipse-openj9/openj9-omr/compare/611c142075f...9b3e65e264a https://github.com/ibmruntimes/openj9-openjdk-jdk17/compare/7dbd3e52715...764b7257fe9

pshipton commented 2 hours ago

Looks related to https://github.com/eclipse-openj9/openj9/pull/19754 @JasonFengJ9 @tajila

hangshao0 commented 1 hour ago

Or maybe related to https://github.com/eclipse-openj9/openj9/pull/20047 ? @dsouzai

dsouzai commented 1 hour ago

I think it's an issue independent of both (see https://github.com/eclipse-openj9/openj9/pull/20047#issuecomment-2368155668).

tajila commented 1 hour ago

The tests should be updated if this is expected