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

JTReg test failure serviceability/jvmti/vthread/ThreadStateTest/ThreadStateTest.java #18054

Closed
fengxue-IS opened this issue Aug 30, 2023 · 1 comment · Fixed by adoptium/aqa-tests#4781
Assignees
Labels
comp:jvmti jdk21 project:loom Used to track Project Loom related work test failure

Comments

@fengxue-IS
Copy link
Contributor

Failure output (captured from console output)

[2023-08-29T18:40:53.894Z] Agent_OnLoad: started
[2023-08-29T18:40:53.894Z] Agent_OnLoad: finished
[2023-08-29T18:40:53.894Z] FAILED: 0x10d016688: pool-1-thread-1: thread state: 5 expected state: 91
[2023-08-29T18:40:53.894Z] check_jvmti_status: JVMTI function returned error: JVMTI_ERROR_WRONG_PHASE (112)
[2023-08-29T18:40:53.894Z] check_jvmti_status: JVMTI function returned error: JVMTI_ERROR_WRONG_PHASE (112)
[2023-08-29T18:40:53.894Z] check_jvmti_status: JVMTI function returned error: JVMTI_ERROR_WRONG_PHASE (112)
[2023-08-29T18:40:53.894Z] check_jvmti_status: JVMTI function returned error: JVMTI_ERROR_WRONG_PHASE (112)
[2023-08-29T18:40:53.894Z] check_jvmti_status: JVMTI function returned error: JVMTI_ERROR_WRONG_PHASE (112)
[2023-08-29T18:40:53.894Z] check_jvmti_status: JVMTI function returned error: JVMTI_ERROR_WRONG_PHASE (112)
[2023-08-29T18:40:53.894Z] check_jvmti_status: JVMTI function returned error: JVMTI_ERROR_WRONG_PHASE (112)
[2023-08-29T18:40:53.894Z] STDERR:
[2023-08-29T18:40:53.894Z] 
[2023-08-29T18:40:53.894Z] Fatal error: Failed: unexpected carrier thread state from JVMTI GetThreadState
[2023-08-29T18:40:53.894Z] 
[2023-08-29T18:40:53.894Z] Fatal error: jvmti_common get_carrier_thread: Error in JVMTI extension GetCarrierThread
[2023-08-29T18:40:53.894Z] 
[2023-08-29T18:40:53.894Z] Fatal error: jvmti_common get_carrier_thread: Error in JVMTI extension GetCarrierThread
[2023-08-29T18:40:53.894Z] 
[2023-08-29T18:40:53.894Z] Fatal error: jvmti_common get_carrier_thread: Error in JVMTI extension GetCarrierThread
[2023-08-29T18:40:53.894Z] 
[2023-08-29T18:40:53.894Z] Fatal error: jvmti_common get_carrier_thread: Error in JVMTI extension GetCarrierThread
[2023-08-29T18:40:53.894Z] 
[2023-08-29T18:40:53.894Z] Fatal error: jvmti_common get_carrier_thread: Error in JVMTI extension GetCarrierThread
[2023-08-29T18:40:53.894Z] 
[2023-08-29T18:40:53.894Z] Fatal error: jvmti_common get_carrier_thread: Error in JVMTI extension GetCarrierThread
[2023-08-29T18:40:53.894Z] 
[2023-08-29T18:40:53.894Z] Fatal error: jvmti_common get_carrier_thread: Error in JVMTI extension GetCarrierThread

This is likely related to #16168.

fengxue-IS added a commit to fengxue-IS/aqa-tests that referenced this issue Aug 30, 2023
java/lang/Thread/virtual/CarrierThreadWaits.java#id0 eclipse-openj9/openj9#18051
java/lang/Thread/virtual/GetStackTrace.java eclipse-openj9/openj9#18052
serviceability/jvmti/vthread/FollowReferences/VThreadStackRefTest.java#default eclipse-openj9/openj9#18053
serviceability/jvmti/vthread/ThreadStateTest/ThreadStateTest.java eclipse-openj9/openj9#18054

Signed-off-by: Jack Lu <[email protected]>
@babsingh babsingh added this to the Java 21 (0.42) milestone Aug 30, 2023
fengxue-IS added a commit to fengxue-IS/aqa-tests that referenced this issue Aug 31, 2023
java/lang/Thread/virtual/CarrierThreadWaits.java#id0 eclipse-openj9/openj9#18051
java/lang/Thread/virtual/GetStackTrace.java eclipse-openj9/openj9#18052
serviceability/jvmti/vthread/FollowReferences/VThreadStackRefTest.java#default eclipse-openj9/openj9#18053
serviceability/jvmti/vthread/ThreadStateTest/ThreadStateTest.java eclipse-openj9/openj9#18054

Signed-off-by: Jack Lu <[email protected]>
fengxue-IS added a commit to fengxue-IS/aqa-tests that referenced this issue Aug 31, 2023
java/lang/Thread/virtual/CarrierThreadWaits.java#id0 eclipse-openj9/openj9#18051
java/lang/Thread/virtual/GetStackTrace.java eclipse-openj9/openj9#18052
serviceability/jvmti/vthread/FollowReferences/VThreadStackRefTest.java#default eclipse-openj9/openj9#18053
serviceability/jvmti/vthread/ThreadStateTest/ThreadStateTest.java eclipse-openj9/openj9#18054

Signed-off-by: Jack Lu <[email protected]>
karianna pushed a commit to adoptium/aqa-tests that referenced this issue Sep 1, 2023
java/lang/Thread/virtual/CarrierThreadWaits.java#id0 eclipse-openj9/openj9#18051
java/lang/Thread/virtual/GetStackTrace.java eclipse-openj9/openj9#18052
serviceability/jvmti/vthread/FollowReferences/VThreadStackRefTest.java#default eclipse-openj9/openj9#18053
serviceability/jvmti/vthread/ThreadStateTest/ThreadStateTest.java eclipse-openj9/openj9#18054

Signed-off-by: Jack Lu <[email protected]>
@babsingh babsingh self-assigned this Sep 7, 2023
@fengxue-IS fengxue-IS added the project:loom Used to track Project Loom related work label Sep 16, 2023
babsingh added a commit to babsingh/openj9 that referenced this issue Sep 20, 2023
If a virtual thread is mounted on a carrier thread, then the carrier
thread is considered implicitly parked.

We match the RI behaviour and pass vthread/ThreadStateTest with these
changes.

Related: eclipse-openj9#18054

Signed-off-by: Babneet Singh <[email protected]>
@babsingh
Copy link
Contributor

The test was re-enabled via adoptium/aqa-tests#4781.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:jvmti jdk21 project:loom Used to track Project Loom related work test failure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants