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/stress/StackTrace/Suspended/GetStackTraceSuspendedStressTest.java Fatal error: Error in GetStackTrace #17871

Closed
JasonFengJ9 opened this issue Jul 27, 2023 · 4 comments
Labels

Comments

@JasonFengJ9
Copy link
Member

Failure link

From an internal grinder build(paix825) - launched at #17865

08:08:05  openjdk version "21-internal" 2023-09-19
08:08:05  OpenJDK Runtime Environment (build 21-internal-adhoc.jenkins.BuildJDK21ppc64aixPersonal)
08:08:05  Eclipse OpenJ9 VM (build master-c9a98669642, JRE 21 AIX ppc64-64-Bit Compressed References 20230726_28 (JIT enabled, AOT enabled)
08:08:05  OpenJ9   - c9a98669642
08:08:05  OMR      - 436bad3c438
08:08:05  JCL      - 78015256cbd based on jdk-21+31)

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

Optional info

Failure output (captured from console output)

12:11:51  variation: Mode150
12:11:51  JVM_OPTIONS:  -XX:+UseCompressedOops 

12:17:33  TEST: serviceability/jvmti/stress/StackTrace/Suspended/GetStackTraceSuspendedStressTest.java

12:17:33  check_jvmti_status: JVMTI function returned error: JVMTI_ERROR_THREAD_NOT_ALIVE (15)
12:17:33  VThread-Consumer-12: finished
12:17:33  VThread-Consumer-52: finished
12:17:33  VThread-Consumer-10: finished
12:17:33  VThread-Consumer-35: finished
12:17:33  VThread-Producer-47: finished
12:17:33  STDERR:
12:17:33  
12:17:33  Fatal error: Error in GetStackTrace

12:17:33  TEST RESULT: Failed. Unexpected exit from test [exit code: 87]
12:17:33  --------------------------------------------------
12:21:28  Test results: passed: 122; failed: 1
12:21:33  Report written to /home/jenkins/workspace/Grinder_iteration_0/jvmtest/openjdk/report/html/report.html
12:21:33  Results written to /home/jenkins/workspace/Grinder_iteration_0/aqa-tests/TKG/output_16904743107050/serviceability_jvmti_j9_0/work
12:21:33  Error: Some tests failed or other problems occurred.
12:21:33  -----------------------------------
12:21:33  serviceability_jvmti_j9_0_FAILED

50x internal grinder - 2/50 failing rate

FYI @babsingh

@JasonFengJ9
Copy link
Member Author

JasonFengJ9 commented Aug 15, 2023

JDK21 x86-64_linux(ubu22x86-svl-rt11-1)

12:32:15  variation: Mode150
12:32:15  JVM_OPTIONS:  -XX:+UseCompressedOops 

12:35:20  TEST: serviceability/jvmti/stress/StackTrace/Suspended/GetStackTraceSuspendedStressTest.java

12:35:20  Incorrect frame count 11 while 10 expected
12:35:20  Suspended vthread 1st stack trace:
12:35:20  JVMTI Stack Trace: frame count: 10
12:35:20   0: java/lang/invoke/LambdaForm$MH.0x000000002800ad00: invoke(Ljava/lang/Object;Ljava/lang/Object;D)Ljava/lang/Object;
12:35:20   1: java/lang/invoke/LambdaForm$MH.0x0000000020012ca0: linkToTargetMethod(Ljava/lang/Object;DLjava/lang/Object;)Ljava/lang/Object;
12:35:20   2: GetStackTraceSuspendedStressTest: producer(Ljava/lang/String;)V
12:35:20   3: GetStackTraceSuspendedStressTest: producer()V
12:35:20   4: GetStackTraceSuspendedStressTest: lambda$static$0()V
12:35:20   5: GetStackTraceSuspendedStressTest$$Lambda.0x00000000960060e0: run()V
12:35:20   6: java/lang/VirtualThread: runWith(Ljava/lang/Object;Ljava/lang/Runnable;)V
12:35:20   7: java/lang/VirtualThread: run(Ljava/lang/Runnable;)V
12:35:20   8: java/lang/VirtualThread$VThreadContinuation$1: run()V
12:35:20   9: jdk/internal/vm/Continuation: enter(Ljdk/internal/vm/Continuation;)V
12:35:20  
12:35:20  Suspended vthread 2nd stack trace:
12:35:20  JVMTI Stack Trace for thread VThread-Producer-30: frame count: 11
12:35:20   0: java/lang/invoke/LambdaForm$DMH.0x000000003c02cd80: invokeStatic(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
12:35:20   1: java/lang/invoke/LambdaForm$MH.0x000000002800ad00: invoke(Ljava/lang/Object;Ljava/lang/Object;D)Ljava/lang/Object;
12:35:20   2: java/lang/invoke/LambdaForm$MH.0x0000000020012ca0: linkToTargetMethod(Ljava/lang/Object;DLjava/lang/Object;)Ljava/lang/Object;
12:35:20   3: GetStackTraceSuspendedStressTest: producer(Ljava/lang/String;)V
12:35:20   4: GetStackTraceSuspendedStressTest: producer()V
12:35:20   5: GetStackTraceSuspendedStressTest: lambda$static$0()V
12:35:20   6: GetStackTraceSuspendedStressTest$$Lambda.0x00000000960060e0: run()V
12:35:20   7: java/lang/VirtualThread: runWith(Ljava/lang/Object;Ljava/lang/Runnable;)V
12:35:20   8: java/lang/VirtualThread: run(Ljava/lang/Runnable;)V
12:35:20   9: java/lang/VirtualThread$VThreadContinuation$1: run()V
12:35:20  10: jdk/internal/vm/Continuation: enter(Ljdk/internal/vm/Continuation;)V
12:35:20  
12:35:20  Agent: Got SingleStep event:
12:35:20  check_jvmti_status: JVMTI function returned error: JVMTI_ERROR_WRONG_PHASE (112)
12:35:20  STDERR:
12:35:20  
12:35:20  Fatal error: Incorrect frame count: frame_count != count
12:35:20  
12:35:20  Fatal error: print_stack_trace: error in JVMTI GetStackTrace

12:35:20  TEST RESULT: Failed. Unexpected exit from test [exit code: 87]
12:35:20  --------------------------------------------------
12:39:18  Test results: passed: 124; failed: 1
12:39:18  Report written to /home/jenkins/workspace/Test_openjdk21_j9_extended.openjdk_x86-64_linux_Personal/jvmtest/openjdk/report/html/report.html
12:39:18  Results written to /home/jenkins/workspace/Test_openjdk21_j9_extended.openjdk_x86-64_linux_Personal/aqa-tests/TKG/output_16920306894918/serviceability_jvmti_j9_0/work
12:39:18  Error: Some tests failed or other problems occurred.
12:39:18  -----------------------------------
12:39:18  serviceability_jvmti_j9_0_FAILED

50x internal grinder - failed 18/50, failed in 4/5 child jobs
One of the failures is for serviceability/jvmti/vthread/SuspendResume1/SuspendResume1.java
check_jvmti_status: JVMTI function returned error: JVMTI_ERROR_THREAD_SUSPENDED (14)

@JasonFengJ9
Copy link
Member Author

JasonFengJ9 commented Aug 23, 2023

JDK21 aarch64_linux(ub22-aarch64-4)

16:42:33  openjdk version "21-internal" 2023-09-19
16:42:33  OpenJDK Runtime Environment (build 21-internal-adhoc.jenkins.BuildJDK21aarch64linuxPersonal)
16:42:33  Eclipse OpenJ9 VM (build master-34bcfd4e2d8, JRE 21 Linux aarch64-64-Bit Compressed References 20230822_46 (JIT enabled, AOT enabled)
16:42:33  OpenJ9   - 34bcfd4e2d8
16:42:33  OMR      - c704bb5c354
16:42:33  JCL      - c8a5053e1e5 based on jdk-21+35)

16:53:38  variation: Mode650
16:53:38  JVM_OPTIONS:  -XX:-UseCompressedOops 

17:02:48  TEST: serviceability/jvmti/vthread/SuspendResume1/SuspendResume1.java#default

17:02:48  check_jvmti_status: JVMTI function returned error: JVMTI_ERROR_THREAD_SUSPENDED (14)
17:02:48  STDERR:
17:02:48  
17:02:48  Fatal error: test_thread_suspend: error in JVMTI SuspendThread

17:02:48  TEST RESULT: Failed. Unexpected exit from test [exit code: 87]
17:02:48  --------------------------------------------------
17:02:48  Test results: passed: 124; failed: 1
17:03:06  Report written to /home/jenkins/workspace/Test_openjdk21_j9_extended.openjdk_aarch64_linux_Personal/jvmtest/openjdk/report/html/report.html
17:03:06  Results written to /home/jenkins/workspace/Test_openjdk21_j9_extended.openjdk_aarch64_linux_Personal/aqa-tests/TKG/output_16927371544631/serviceability_jvmti_j9_1/work
17:03:06  Error: Some tests failed or other problems occurred.
17:03:06  -----------------------------------
17:03:06  serviceability_jvmti_j9_1_FAILED

JDK21 ppc64le_linux

@JasonFengJ9
Copy link
Member Author

JDK21 ppc64_aix

23:22:49  variation: Mode650
23:22:49  JVM_OPTIONS:  -XX:-UseCompressedOops 

23:28:24  TEST: serviceability/jvmti/stress/StackTrace/Suspended/GetStackTraceSuspendedStressTest.java

23:28:24  STDERR:
23:28:24  
23:28:24  Fatal error: Incorrect frame count: frame_count != count

23:28:24  TEST RESULT: Failed. Unexpected exit from test [exit code: 87]
23:28:24  --------------------------------------------------
23:33:50  Test results: passed: 124; failed: 1
23:33:50  Report written to /home/jenkins/workspace/Test_openjdk21_j9_extended.openjdk_ppc64_aix_Personal/jvmtest/openjdk/report/html/report.html
23:33:50  Results written to /home/jenkins/workspace/Test_openjdk21_j9_extended.openjdk_ppc64_aix_Personal/aqa-tests/TKG/output_16934511543058/serviceability_jvmti_j9_1/work
23:33:50  Error: Some tests failed or other problems occurred.
23:33:50  -----------------------------------
23:33:50  serviceability_jvmti_j9_1_FAILED

babsingh added a commit to babsingh/openj9 that referenced this issue Sep 13, 2023
Without the J9_STACKWALK_ITERATE_FRAMES flag, the genericFrameIterator
is not invoked. If there are methods with the JvmtiMountTransition
annotation on the stack, they won't be ignored because the
genericFrameIterator (frameWalkFunction) does not get invoked.

Related: eclipse-openj9#17871

Signed-off-by: Babneet Singh <[email protected]>
@fengxue-IS fengxue-IS added the project:loom Used to track Project Loom related work label Sep 16, 2023
@babsingh
Copy link
Contributor

Closing: #18132 is the proposed fix to resolve the the stack trace mismatch from #17871 (comment).

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

No branches or pull requests

3 participants