Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmdLineTester_criu_jitserverPostRestore Test SSL Failure Case with mismatched certificate - Error (criu/protobuf.c:72): Unexpected EOF on (empty-image #18140

Closed
pshipton opened this issue Sep 14, 2023 · 2 comments · Fixed by #18225
Labels
criu Used to track CRIU snapshot related work test failure

Comments

@pshipton
Copy link
Member

pshipton commented Sep 14, 2023

https://openj9-jenkins.osuosl.org/job/Test_openjdk21_j9_sanity.functional_s390x_linux_Nightly_testList_0/55 - ub20-390-2
cmdLineTester_criu_jitserverPostRestore_0

Testing: Test SSL Failure Case with mismatched certificate
Test start time: 2023/09/13 23:52:12 Coordinated Universal Time
Running command: bash /home/jenkins/workspace/Test_openjdk21_j9_sanity.functional_s390x_linux_Nightly_testList_0/aqa-tests/TKG/../../jvmtest/functional/cmdLineTests/criu/criuJitServerScript.sh /home/jenkins/workspace/Test_openjdk21_j9_sanity.functional_s390x_linux_Nightly_testList_0/aqa-tests/TKG/../../jvmtest/functional/cmdLineTests/criu /home/jenkins/workspace/Test_openjdk21_j9_sanity.functional_s390x_linux_Nightly_testList_0/openjdkbinary/j2sdk-image/bin " -Xjit " org.openj9.criu.OptionsFileTest "JitOptionsTest -XX:+UseJITServer -XX:JITServerSSLRootCerts=wrongCert.pem -Xjit:verbose={compilePerformance},verbose={CheckpointRestore},verbose={JITServer},verbose={JITServerConns},vlog=sslVlog2" 1 false true
Time spent starting: 5 milliseconds
Time spent executing: 10098 milliseconds
Test result: FAILED
Output from test:
 [OUT] start running script
 [OUT] export GLIBC_TUNABLES=glibc.cpu.hwcaps=-XSAVEC,-XSAVE,-AVX2,-ERMS,-AVX,-AVX_Fast_Unaligned_Load
 [OUT] export LD_BIND_NOT=on
 [OUT] Generate SSL certificates
 [OUT] Certificates generated
 [OUT] Starting /home/jenkins/workspace/Test_openjdk21_j9_sanity.functional_s390x_linux_Nightly_testList_0/openjdkbinary/j2sdk-image/bin/jitserver -XX:JITServerPort=46276 -XX:JITServerSSLKey=key.pem -XX:JITServerSSLCert=cert.pem -Xjit:verbose={JITServer}
 [OUT] 2093821 ?        00:00:00 jitserver
 [OUT] JITSERVER EXISTS
 [OUT] Pre-checkpoint
 [OUT] Performing CRIUSupport.checkpointJVM(), current thread name: main, Wed Sep 13 23:52:16 UTC 2023, System.currentTimeMillis(): 1694649136999, System.nanoTime(): 1694649136997015315
 [OUT] Error (criu/protobuf.c:72): Unexpected EOF on (empty-image)
 [OUT] Error (criu/arch/s390/crtools.c:762): Cannot open core for virt pid 2093912: No such file or directory
 [OUT] Error (criu/cr-restore.c:2131): Restoring regs for 2093912 failed: No such file or directory
 [OUT] Error (criu/cr-restore.c:2509): Killing processes because of failure on restore.
 [OUT] The Network was unlocked so some data or a connection may have been lost.
 [OUT] Error (criu/cr-restore.c:2536): Restoring FAILED.
 [OUT] 2093821 ?        00:00:00 jitserver
 [OUT] JITSERVER STILL EXISTS
 [OUT] Terminating /home/jenkins/workspace/Test_openjdk21_j9_sanity.functional_s390x_linux_Nightly_testList_0/openjdkbinary/j2sdk-image/bin/jitserver -XX:JITServerPort=46276 -XX:JITServerSSLKey=key.pem -XX:JITServerSSLCert=cert.pem -Xjit:verbose={JITServer}
 [OUT] finished script
 [ERR] Generating RSA private key, 2048 bit long modulus (2 primes)
 [ERR] ..........................................................................................................................................................................................+++++
 [ERR] ...............................................+++++
 [ERR] e is 65537 (0x010001)
 [ERR] Generating a RSA private key
 [ERR] ...............................................+++++
 [ERR] ...................................................................................................................................+++++
 [ERR] writing new private key to 'wrongKey.pem'
 [ERR] -----
 [ERR] JITServer is currently a technology preview. Its use is not yet supported.
 [ERR] #JITServer: JITServer version: 1.51.0
 [ERR] #JITServer: JITServer Server Mode. Port: 46276. Connection Timeout 30000ms
 [ERR] #JITServer: Built against (OpenSSL 3.0.11-dev ); Loaded with (OpenSSL 1.1.1f  31 Mar 2020)
 [ERR] 
 [ERR] #JITServer: Started JITServer listener thread: 000000000021B700 
 [ERR] #INFO:  StartTime: Sep 13 23:52:15 2023
 [ERR] #INFO:  TimeZone: UTC (UTC)
 [ERR] #JITServer: Successfully initialized SSL context (OpenSSL 1.1.1f  31 Mar 2020)
 [ERR] 
 [ERR] 
 [ERR] JITServer is ready to accept incoming requests
 [ERR] /home/jenkins/workspace/Test_openjdk21_j9_sanity.functional_s390x_linux_Nightly_testList_0/aqa-tests/TKG/../../jvmtest/functional/cmdLineTests/criu/criuJitServerScript.sh: line 113: 2093900 Killed                  $TEST_JDK_BIN/java -XX:+EnableCRIUSupport -XX:JITServerPort=$JITSERVER_PORT $JVM_OPTIONS -cp "$TEST_ROOT/criu.jar" $MAINCLASS $APP_ARGS -XX:JITServerPort=$JITSERVER_PORT $NUM_CHECKPOINT > testOutput 2>&1
 [ERR] /home/jenkins/workspace/Test_openjdk21_j9_sanity.functional_s390x_linux_Nightly_testList_0/aqa-tests/TKG/../../jvmtest/functional/cmdLineTests/criu/criuJitServerScript.sh: line 113: 2093821 Killed                  $TEST_JDK_BIN/jitserver $JITSERVER_OPTIONS
>> Success condition was found: [Output match: Killed]
>> Required condition was found: [Output match: Pre-checkpoint]
>> Success condition was not found: [Output match: Post-checkpoint]
>> Failure condition was not found: [Output match: CRIU is not enabled]
>> Failure condition was not found: [Output match: Operation not permitted]
>> Required condition was found: [Output match: Successfully initialized SSL context]
>> Required condition was not found: [Output match: certificate verify failed]
>> Success condition was not found: [Output match: Thread pid mismatch]
>> Success condition was not found: [Output match: do not match expected]
>> Success condition was not found: [Output match: Unable to create a thread:]
>> Success condition was found: [Output match: JITSERVER EXISTS]
>> Success condition was found: [Output match: JITSERVER STILL EXISTS]
>> Failure condition was not found: [Output match: JITSERVER DOES NOT EXIST]
>> Failure condition was not found: [Output match: JITSERVER NO LONGER EXISTS]
@pshipton pshipton added test failure criu Used to track CRIU snapshot related work labels Sep 14, 2023
@pshipton
Copy link
Member Author

@TobiAjila

@dsouzai
Copy link
Contributor

dsouzai commented Sep 25, 2023

@SajinaKandy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
criu Used to track CRIU snapshot related work test failure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants