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

JDK21 serviceability_jvmti_j9_0_FAILED serviceability/jvmti/vthread/SuspendResume2/SuspendResume2.java#no-vmcontinuations Fatal error: test_vthread_resume_half: error in JVMTI ResumeThread #18735

Closed
JasonFengJ9 opened this issue Jan 10, 2024 · 10 comments

Comments

@JasonFengJ9
Copy link
Member

JasonFengJ9 commented Jan 10, 2024

Failure link

From an internal build(rhel9-aarch64-3):

java version "21.0.1" 2023-10-17 LTS
IBM Semeru Runtime Certified Edition 21.0.1.0 (build 21.0.1+12-LTS)
Eclipse OpenJ9 VM 21.0.1.0 (build openj9-0.42.0, JRE 21 Linux aarch64-64-Bit Compressed References 20231017_77 (JIT enabled, AOT enabled)
OpenJ9   - 874af12ee
OMR      - 11700e64f
JCL      - eb47ed546b0 based on jdk-21.0.1+12)

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

Optional info

Failure output (captured from console output)

[2024-01-09T22:17:57.929Z] variation: Mode150
[2024-01-09T22:17:57.929Z] JVM_OPTIONS:  -XX:+UseCompressedOops 

[2024-01-09T22:30:01.523Z] TEST: serviceability/jvmti/vthread/SuspendResume2/SuspendResume2.java#no-vmcontinuations

[2024-01-09T22:30:01.529Z] STDERR:
[2024-01-09T22:30:01.529Z] 
[2024-01-09T22:30:01.529Z] Fatal error: test_vthread_resume_half: error in JVMTI ResumeThread

[2024-01-09T22:30:01.530Z] TEST RESULT: Failed. Unexpected exit from test [exit code: 87]
[2024-01-09T22:30:01.530Z] --------------------------------------------------
[2024-01-09T22:31:02.052Z] Test results: passed: 155; failed: 1

[2024-01-09T22:31:13.212Z] serviceability_jvmti_j9_0_FAILED

50x internal grinder - 1 failure reproduced, 1 timeout failure same as #18675

@pshipton
Copy link
Member

This is a dup of #18675

@JasonFengJ9
Copy link
Member Author

It might be related, the failing test is the same, this is Fatal error: test_vthread_resume_half: error in JVMTI ResumeThread, the other was java timed out.

@pshipton
Copy link
Member

2 failures in the grinder, but only one a repeat of this failure
in https://hyc-runtimes-jenkins.swg-devops.com/job/Grinder_iteration_4/2453 on rhel9-aarch64-5

@JasonFengJ9
Copy link
Member Author

JasonFengJ9 commented Feb 28, 2024

JDK21 x86-64_mac(macx64rt6)

java version "21.0.3-beta" 2024-04-16
IBM Semeru Runtime Certified Edition 21.0.3+4-202402241606 (build 21.0.3-beta+4-202402241606)
Eclipse OpenJ9 VM 21.0.3+4-202402241606 (build master-6bdd7e4b0, JRE 21 Mac OS X amd64-64-Bit Compressed References 20240224_111 (JIT enabled, AOT enabled)
OpenJ9   - 6bdd7e4b0
OMR      - b399f9e8c
JCL      - 5e5b133ab based on jdk-21.0.3+4)

[2024-02-24T17:14:42.817Z] variation: Mode650
[2024-02-24T17:14:42.817Z] JVM_OPTIONS:  -XX:-UseCompressedOops -Xverbosegclog 

[2024-02-24T17:15:53.470Z] TEST: serviceability/jvmti/vthread/SuspendResume2/SuspendResume2.java#default

[2024-02-24T17:15:53.472Z] STDERR:
[2024-02-24T17:15:53.472Z] 
[2024-02-24T17:15:53.472Z] Fatal error: test_vthread_resume_half: error in JVMTI ResumeThread

[2024-02-24T17:15:53.472Z] TEST RESULT: Failed. Unexpected exit from test [exit code: 87]
[2024-02-24T17:15:53.472Z] --------------------------------------------------
[2024-02-24T17:16:15.244Z] Test results: passed: 155; failed: 1
[2024-02-24T17:16:20.493Z] Report written to /Users/jenkins/workspace/Test_openjdk21_j9_extended.openjdk_x86-64_mac/jvmtest/openjdk/report/html/report.html
[2024-02-24T17:16:20.493Z] Results written to /Users/jenkins/workspace/Test_openjdk21_j9_extended.openjdk_x86-64_mac/aqa-tests/TKG/output_17087947694989/serviceability_jvmti_j9_1/work
[2024-02-24T17:16:20.493Z] Error: Some tests failed or other problems occurred.
[2024-02-24T17:16:20.493Z] -----------------------------------
[2024-02-24T17:16:20.493Z] serviceability_jvmti_j9_1_FAILED

50x grinder - the error wasn't reproduced, two timeout like #18675, others are infra errors.

@babsingh
Copy link
Contributor

babsingh commented Mar 4, 2024

fyi @fengxue-IS, This failure is highly intermittent. It might be fixed by Avoiding unsteady states during JVMTI Suspend and Resume All VThreads #18504. JVMTI ResumeThread intermittently fails if the thread was not suspended correctly. A thread might fail to suspend if it is in an unsteady state.

In #19031, a similar failure was also seen in serviceability/jvmti/vthread/SelfSuspendDisablerTest/SelfSuspendDisablerTest.java.

@JasonFengJ9
Copy link
Member Author

JDK21 aarch64_linux(ubu20-aarch64-2)

[2024-03-14T01:13:45.545Z] variation: Mode650
[2024-03-14T01:13:45.545Z] JVM_OPTIONS:  -XX:-UseCompressedOops -Xverbosegclog 

[2024-03-14T01:18:30.001Z] TEST: serviceability/jvmti/vthread/SuspendResume2/SuspendResume2.java#default

[2024-03-14T01:18:30.003Z] STDERR:
[2024-03-14T01:18:30.003Z] 
[2024-03-14T01:18:30.003Z] Fatal error: test_vthread_resume_half: error in JVMTI ResumeThread

[2024-03-14T01:18:30.003Z] TEST RESULT: Failed. Unexpected exit from test [exit code: 87]
[2024-03-14T01:18:30.003Z] --------------------------------------------------
[2024-03-14T01:18:54.416Z] Test results: passed: 155; failed: 1
[2024-03-14T01:19:05.364Z] Report written to /home/jenkins/workspace/Test_openjdk21_j9_extended.openjdk_aarch64_linux_testList_1/jvmtest/openjdk/report/html/report.html
[2024-03-14T01:19:05.364Z] Results written to /home/jenkins/workspace/Test_openjdk21_j9_extended.openjdk_aarch64_linux_testList_1/aqa-tests/TKG/output_1710378823239/serviceability_jvmti_j9_1/work
[2024-03-14T01:19:05.364Z] Error: Some tests failed or other problems occurred.
[2024-03-14T01:19:05.364Z] -----------------------------------
[2024-03-14T01:19:05.364Z] serviceability_jvmti_j9_1_FAILED

@pshipton
Copy link
Member

pshipton commented Mar 15, 2024

We've hit the M2 date for 0.44, moving out to Java 22. We can consider if we want to make the change in 0.44 once it's ready.

@babsingh
Copy link
Contributor

babsingh commented Mar 19, 2024

#19076 has been merged. @fengxue-IS Can you please verify if SelfSuspendDisablerTest and SuspendResume2 are fixed, and then close this issue?

@fengxue-IS
Copy link
Contributor

#19076 has been merged. @fengxue-IS Can you please verify if SelfSuspendDisablerTest and SuspendResume2 are fixed, and then close this issue?

I am unable to reproduce failure withSelfSuspendDisablerTest after the fix is merged, SuspendResume2 now fails intermittently on different issue tracked by #18675

@babsingh
Copy link
Contributor

Closing this issue since the failures reported in this issue have been resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants