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_keepCheckpoint_0_FAILED Error (criu/proc_parse.c:474): Can't open map_files: Permission denied #19073

Open JasonFengJ9 opened 6 months ago

JasonFengJ9 commented 6 months ago

From an internal build(sles12x86-rtp-rt5-1):

java version "17.0.11-beta" 2024-04-16
IBM Semeru Runtime Certified Edition 17.0.11+5-202403021534 (build 17.0.11-beta+5-202403021534)
Eclipse OpenJ9 VM 17.0.11+5-202403021534 (build master-5726a9c57, JRE 17 Linux amd64-64-Bit Compressed References 20240302_621 (JIT enabled, AOT enabled)
OpenJ9   - 5726a9c57
OMR      - 53e909c41
JCL      - 8507349ca3 based on jdk-17.0.11+5)

Rerun in Grinder - Change TARGET to run only the failed test targets.

Optional info

Failure output (captured from console output)

[2024-03-02T16:37:17.926Z] variation: -Xjit
[2024-03-02T16:37:17.926Z] JVM_OPTIONS:  -Xjit 

[2024-03-02T16:37:18.385Z] TESTING:
[2024-03-02T16:37:18.944Z] *** Starting test suite: J9 Criu Command-Line Option Tests ***
[2024-03-02T16:37:18.944Z] Testing: Create Criu Checkpoint Image without Restore
[2024-03-02T16:37:19.370Z] Test start time: 2024/03/02 08:37:18 Pacific Standard Time
[2024-03-02T16:37:19.370Z] Running command: bash /home/jenkins/workspace/Test_openjdk17_j9_sanity.functional_x86-64_linux_testList_1/aqa-tests/TKG/../../jvmtest/functional/cmdLineTests/criu/criuScript.sh /home/jenkins/workspace/Test_openjdk17_j9_sanity.functional_x86-64_linux_testList_1/aqa-tests/TKG/../../jvmtest/functional/cmdLineTests/criu /home/jenkins/workspace/Test_openjdk17_j9_sanity.functional_x86-64_linux_testList_1/jdkbinary/j2sdk-image/bin/java " -Xjit " org.openj9.criu.CRIUSimpleTest 1 1 true true
[2024-03-02T16:37:19.370Z] Time spent starting: 90 milliseconds
[2024-03-02T16:37:21.557Z] Time spent executing: 2138 milliseconds
[2024-03-02T16:37:21.557Z] Test result: FAILED
[2024-03-02T16:37:21.557Z] Output from test:

[2024-03-02T16:37:21.561Z]  [OUT] (00.062494) Error (criu/proc_parse.c:474): Can't open map_files: Permission denied
[2024-03-02T16:37:21.561Z]  [OUT] (00.062514) Error (criu/proc_parse.c:694): Can't open 15971's mapfile link 7f79ec309000: Permission denied
[2024-03-02T16:37:21.561Z]  [OUT] (00.062534) Error (criu/cr-dump.c:1558): Collect mappings (pid: 15971) failed with -1
[2024-03-02T16:37:21.561Z]  [OUT] (00.062739) net: Unlock network
[2024-03-02T16:37:21.561Z]  [OUT] (00.062759) Unfreezing tasks into 1
[2024-03-02T16:37:21.561Z]  [OUT] (00.062769)   Unseizing 15971 into 1
[2024-03-02T16:37:21.561Z]  [OUT] (00.063324) Error (criu/cr-dump.c:2093): Dumping FAILED.
[2024-03-02T16:37:21.561Z]  [OUT] -------------- End of checkpoint criu.log -------------
[2024-03-02T16:37:21.561Z]  [OUT] Exception in thread "main" org.eclipse.openj9.criu.SystemCheckpointException: Could not dump the JVM processes, err=-52
[2024-03-02T16:37:21.561Z]  [OUT]   at openj9.criu/org.eclipse.openj9.criu.CRIUSupport.checkpointJVM(CRIUSupport.java:536)
[2024-03-02T16:37:21.561Z]  [OUT]   at org.openj9.criu.CRIUTestUtils.checkPointJVM(CRIUTestUtils.java:92)
[2024-03-02T16:37:21.561Z]  [OUT]   at org.openj9.criu.CRIUTestUtils.checkPointJVM(CRIUTestUtils.java:80)
[2024-03-02T16:37:21.561Z]  [OUT]   at org.openj9.criu.CRIUTestUtils.checkPointJVM(CRIUTestUtils.java:76)
[2024-03-02T16:37:21.561Z]  [OUT]   at org.openj9.criu.CRIUSimpleTest.checkpoints(CRIUSimpleTest.java:59)
[2024-03-02T16:37:21.561Z]  [OUT]   at org.openj9.criu.CRIUSimpleTest.main(CRIUSimpleTest.java:38)
[2024-03-02T16:37:21.561Z]  [OUT] Caused by: openj9.internal.criu.SystemCheckpointException: Could not dump the JVM processes, err=-52
[2024-03-02T16:37:21.561Z]  [OUT]   at java.base/openj9.internal.criu.InternalCRIUSupport.checkpointJVMImpl(Native Method)
[2024-03-02T16:37:21.561Z]  [OUT]   at java.base/openj9.internal.criu.InternalCRIUSupport.checkpointJVM(InternalCRIUSupport.java:961)
[2024-03-02T16:37:21.561Z]  [OUT]   at openj9.criu/org.eclipse.openj9.criu.CRIUSupport.checkpointJVM(CRIUSupport.java:530)
[2024-03-02T16:37:21.561Z]  [OUT]   ... 5 more
[2024-03-02T16:37:21.561Z]  [OUT] finished script
[2024-03-02T16:37:21.561Z]  [ERR] cat: criuOutput: No such file or directory
[2024-03-02T16:37:21.561Z] >> Success condition was not found: [Output match: Killed]
[2024-03-02T16:37:21.561Z] >> Required condition was found: [Output match: Pre-checkpoint]
[2024-03-02T16:37:21.561Z] >> Failure condition was not found: [Output match: Post-checkpoint]
[2024-03-02T16:37:21.561Z] >> Failure condition was not found: [Output match: CRIU is not enabled]
[2024-03-02T16:37:21.561Z] >> Failure condition was not found: [Output match: Removed testOutput file]
[2024-03-02T16:37:21.561Z] >> Failure condition was found: [Output match: Operation not permitted]
[2024-03-02T16:37:21.561Z] >> Failure condition was not found: [Output match: ERR]
[2024-03-02T16:37:21.561Z] >> Failure condition was not found: [Output match: Could not dump the JVM processes, err=-70]
[2024-03-02T16:37:21.561Z] >> Failure condition was not found: [Output match: User requested Java dump using]
[2024-03-02T16:37:21.561Z] 
[2024-03-02T16:37:21.561Z] 
[2024-03-02T16:37:21.561Z] ---TEST RESULTS---
[2024-03-02T16:37:21.561Z] Number of PASSED tests: 0 out of 1
[2024-03-02T16:37:21.561Z] Number of FAILED tests: 1 out of 1
[2024-03-02T16:37:21.561Z] 
[2024-03-02T16:37:21.561Z] ---SUMMARY OF FAILED TESTS---
[2024-03-02T16:37:21.561Z] Create Criu Checkpoint Image without Restore
[2024-03-02T16:37:21.561Z] -----------------------------
[2024-03-02T16:37:21.561Z] 
[2024-03-02T16:37:21.561Z] -----------------------------------
[2024-03-02T16:37:21.561Z] cmdLineTester_criu_keepCheckpoint_0_FAILED

50x internal grinder - passed

pshipton commented 6 months ago

Seems like a machine problem.

cjjdespres commented 3 weeks ago

Also seen in https://hyc-runtimes-jenkins.swg-devops.com/job/Test_openjdk17_j9_sanity.functional_s390x_linux_jit_Personal_testList_1/945/, on sles15s390x-svl-rt10-1, if this is a machine issue.