The following test failed in an adhoc Tier4 job that is testing:
JDK-8315880 Change LockingMode default from LM_LEGACY to LM_LIGHTWEIGHT
Here's a snippet from the log file:
#section:main
----------messages:(6/357)----------
command: main -agentlib:GetStackTraceSuspendedStress GetStackTraceSuspendedStressTest
reason: User specified action: run main/othervm/native -agentlib:GetStackTraceSuspendedStress GetStackTraceSuspendedStressTest
started: Sat Sep 16 04:08:42 UTC 2023
Mode: othervm [/othervm specified]
finished: Sat Sep 16 04:09:13 UTC 2023
elapsed time (seconds): 30.654
----------configuration:(0/0)----------
----------System.out:(87/7889)----------
Agent_OnLoad started
Agent_OnLoad finished
Synchronization point checkStatus(0) called.
Data 0xffffa801fac0 0xffffa801ff10
Agent: waiting to start
Agent: started
VThread-Producer-3: started
VThread-Producer-0: started
VThread-Producer-1: started
VThread-Consumer-0: started
VThread-Consumer-3: started
VThread-Consumer-2: started
VThread-Consumer-1: started
VThread-Producer-2: started
VThread-Producer-5: started
VThread-Producer-7: started
Agent: Got SingleStep event:
JVMTI Stack Trace for thread VThread-Producer-5: frame count: 28
0: java/lang/invoke/BoundMethodHandle$Species_LL: make(Ljava/lang/invoke/MethodType;Ljava/lang/invoke/LambdaForm;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/invoke/BoundMethodHandle;
1: java/lang/invoke/DirectMethodHandle$Holder: invokeStatic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
2: java/lang/invoke/BoundMethodHandle$Species_L: copyWithExtendL(Ljava/lang/invoke/MethodType;Ljava/lang/invoke/LambdaForm;Ljava/lang/Object;)Ljava/lang/invoke/BoundMethodHandle;
3: java/lang/invoke/LambdaFormEditor: bindArgumentL(Ljava/lang/invoke/BoundMethodHandle;ILjava/lang/Object;)Ljava/lang/invoke/BoundMethodHandle;
4: java/lang/invoke/BoundMethodHandle: bindArgumentL(ILjava/lang/Object;)Ljava/lang/invoke/BoundMethodHandle;
5: java/lang/invoke/MethodHandles: insertArguments(Ljava/lang/invoke/MethodHandle;I[Ljava/lang/Object;)Ljava/lang/invoke/MethodHandle;
6: java/lang/invoke/StringConcatFactory: prepender(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
7: java/lang/invoke/StringConcatFactory: prepender(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
8: java/lang/invoke/StringConcatFactory: prepender(I[Ljava/lang/String;[Ljava/lang/Class;I)Ljava/lang/invoke/MethodHandle;
9: java/lang/invoke/StringConcatFactory: filterInPrependers(Ljava/lang/invoke/MethodHandle;[Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
10: java/lang/invoke/StringConcatFactory: generateMHInlineCopy(Ljava/lang/invoke/MethodType;[Ljava/lang/String;)Ljava/lang/invoke/MethodHandle;
11: java/lang/invoke/StringConcatFactory: makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;
12: java/lang/invoke/DirectMethodHandle$Holder: invokeStatic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
13: java/lang/invoke/DelegatingMethodHandle$Holder: delegate(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
14: java/lang/invoke/Invokers$Holder: invokeExact_MT(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
15: java/lang/invoke/BootstrapMethodInvoker: invoke(Ljava/lang/Class;Ljava/lang/invoke/MethodHandle;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
16: java/lang/invoke/CallSite: makeSite(Ljava/lang/invoke/MethodHandle;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/invoke/CallSite;
17: java/lang/invoke/MethodHandleNatives: linkCallSiteImpl(Ljava/lang/Class;Ljava/lang/invoke/MethodHandle;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/invoke/MemberName;
18: java/lang/invoke/MethodHandleNatives: linkCallSite(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/invoke/MemberName;
19: GetStackTraceSuspendedStressTest: producer(Ljava/lang/String;)V
20: GetStackTraceSuspendedStressTest: producer()V
21: GetStackTraceSuspendedStressTest: lambda$static$0()V
22: GetStackTraceSuspendedStressTest$$Lambda.0x000001e801001c00: run()V
23: java/lang/Thread: runWith(Ljava/lang/Object;Ljava/lang/Runnable;)V
24: java/lang/VirtualThread: run(Ljava/lang/Runnable;)V
25: java/lang/VirtualThread$VThreadContinuation$1: run()V
26: jdk/internal/vm/Continuation: enter0()V
27: jdk/internal/vm/Continuation: enter(Ljdk/internal/vm/Continuation;Z)V
JVMTI Stack Trace for thread ForkJoinPool-1-worker-2: frame count: 9
0: jdk/internal/vm/Continuation: run()V
1: java/lang/VirtualThread: runContinuation()V
2: java/lang/VirtualThread$$Lambda.0x000001e8010502e0: run()V
3: java/util/concurrent/ForkJoinTask$RunnableExecuteAction: exec()Z
4: java/util/concurrent/ForkJoinTask: doExec()I
5: java/util/concurrent/ForkJoinPool$WorkQueue: topLevelExec(Ljava/util/concurrent/ForkJoinTask;Ljava/util/concurrent/ForkJoinPool$WorkQueue;)V
6: java/util/concurrent/ForkJoinPool: scan(Ljava/util/concurrent/ForkJoinPool$WorkQueue;II)I
7: java/util/concurrent/ForkJoinPool: runWorker(Ljava/util/concurrent/ForkJoinPool$WorkQueue;)V
8: java/util/concurrent/ForkJoinWorkerThread: run()V
FATAL ERROR in native method: SingleStep event is NOT expected
at java.lang.invoke.BoundMethodHandle$Species_LL.make(java.base@22-internal/java/lang/invoke/BoundMethodHandle$Species_LL)
at java.lang.invoke.DirectMethodHandle$Holder.invokeStatic(java.base@22-internal/DirectMethodHandle$Holder)
at java.lang.invoke.BoundMethodHandle$Species_L.copyWithExtendL(java.base@22-internal/BoundMethodHandle.java:236)
at java.lang.invoke.LambdaFormEditor.bindArgumentL(java.base@22-internal/LambdaFormEditor.java:524)
at java.lang.invoke.BoundMethodHandle.bindArgumentL(java.base@22-internal/BoundMethodHandle.java:72)
at java.lang.invoke.MethodHandles.insertArguments(java.base@22-internal/MethodHandles.java:5278)
at java.lang.invoke.StringConcatFactory.prepender(java.base@22-internal/StringConcatFactory.java:708)
at java.lang.invoke.StringConcatFactory.prepender(java.base@22-internal/StringConcatFactory.java:777)
at java.lang.invoke.StringConcatFactory.prepender(java.base@22-internal/StringConcatFactory.java:789)
at java.lang.invoke.StringConcatFactory.filterInPrependers(java.base@22-internal/StringConcatFactory.java:621)
at java.lang.invoke.StringConcatFactory.generateMHInlineCopy(java.base@22-internal/StringConcatFactory.java:549)
at java.lang.invoke.StringConcatFactory.makeConcatWithConstants(java.base@22-internal/StringConcatFactory.java:365)
at java.lang.invoke.DirectMethodHandle$Holder.invokeStatic(java.base@22-internal/DirectMethodHandle$Holder)
at java.lang.invoke.DelegatingMethodHandle$Holder.delegate(java.base@22-internal/DelegatingMethodHandle$Holder)
at java.lang.invoke.Invokers$Holder.invokeExact_MT(java.base@22-internal/Invokers$Holder)
at java.lang.invoke.BootstrapMethodInvoker.invoke(java.base@22-internal/BootstrapMethodInvoker.java:102)
at java.lang.invoke.CallSite.makeSite(java.base@22-internal/CallSite.java:316)
at java.lang.invoke.MethodHandleNatives.linkCallSiteImpl(java.base@22-internal/MethodHandleNatives.java:275)
at java.lang.invoke.MethodHandleNatives.linkCallSite(java.base@22-internal/MethodHandleNatives.java:265)
at GetStackTraceSuspendedStressTest.producer(GetStackTraceSuspendedStressTest.java:50)
at GetStackTraceSuspendedStressTest.producer(GetStackTraceSuspendedStressTest.java:57)
at GetStackTraceSuspendedStressTest.lambda$static$0(GetStackTraceSuspendedStressTest.java:78)
at GetStackTraceSuspendedStressTest$$Lambda/0x000001e801001c00.run(Unknown Source)
at java.lang.Thread.runWith(java.base@22-internal/Thread.java:1583)
at java.lang.VirtualThread.run(java.base@22-internal/VirtualThread.java:311)
at java.lang.VirtualThread$VThreadContinuation$1.run(java.base@22-internal/VirtualThread.java:190)
at jdk.internal.vm.Continuation.enter0(java.base@22-internal/Continuation.java:320)
at jdk.internal.vm.Continuation.enter(java.base@22-internal/Continuation.java:312)
----------System.err:(0/0)----------
----------rerun:(44/8807)*----------
<snip>
result: Failed. Unexpected exit from test [exit code: 134]
I don't see any indicators that this failure is related toJDK-8315880
but I have not seen any sightings of this test failing like this in
the Oracle CIs. This is a JVM/TI stress test so I'm starting this
bug off in hotspot/jvmti for initial triage. There is also Loom
related code in the stack trace above the failure point so I've
added the 'loom' tag.
Here's a snippet from the log file:
#section:main
----------messages:(6/357)----------
command: main -agentlib:GetStackTraceSuspendedStress GetStackTraceSuspendedStressTest
reason: User specified action: run main/othervm/native -agentlib:GetStackTraceSuspendedStress GetStackTraceSuspendedStressTest
started: Sat Sep 16 04:08:42 UTC 2023
Mode: othervm [/othervm specified]
finished: Sat Sep 16 04:09:13 UTC 2023
elapsed time (seconds): 30.654
----------configuration:(0/0)----------
----------System.out:(87/7889)----------
Agent_OnLoad started
Agent_OnLoad finished
Synchronization point checkStatus(0) called.
Data 0xffffa801fac0 0xffffa801ff10
Agent: waiting to start
Agent: started
VThread-Producer-3: started
VThread-Producer-0: started
VThread-Producer-1: started
VThread-Consumer-0: started
VThread-Consumer-3: started
VThread-Consumer-2: started
VThread-Consumer-1: started
VThread-Producer-2: started
VThread-Producer-5: started
VThread-Producer-7: started
Agent: Got SingleStep event:
JVMTI Stack Trace for thread VThread-Producer-5: frame count: 28
0: java/lang/invoke/BoundMethodHandle$Species_LL: make(Ljava/lang/invoke/MethodType;Ljava/lang/invoke/LambdaForm;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/invoke/BoundMethodHandle;
1: java/lang/invoke/DirectMethodHandle$Holder: invokeStatic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
2: java/lang/invoke/BoundMethodHandle$Species_L: copyWithExtendL(Ljava/lang/invoke/MethodType;Ljava/lang/invoke/LambdaForm;Ljava/lang/Object;)Ljava/lang/invoke/BoundMethodHandle;
3: java/lang/invoke/LambdaFormEditor: bindArgumentL(Ljava/lang/invoke/BoundMethodHandle;ILjava/lang/Object;)Ljava/lang/invoke/BoundMethodHandle;
4: java/lang/invoke/BoundMethodHandle: bindArgumentL(ILjava/lang/Object;)Ljava/lang/invoke/BoundMethodHandle;
5: java/lang/invoke/MethodHandles: insertArguments(Ljava/lang/invoke/MethodHandle;I[Ljava/lang/Object;)Ljava/lang/invoke/MethodHandle;
6: java/lang/invoke/StringConcatFactory: prepender(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
7: java/lang/invoke/StringConcatFactory: prepender(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
8: java/lang/invoke/StringConcatFactory: prepender(I[Ljava/lang/String;[Ljava/lang/Class;I)Ljava/lang/invoke/MethodHandle;
9: java/lang/invoke/StringConcatFactory: filterInPrependers(Ljava/lang/invoke/MethodHandle;[Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
10: java/lang/invoke/StringConcatFactory: generateMHInlineCopy(Ljava/lang/invoke/MethodType;[Ljava/lang/String;)Ljava/lang/invoke/MethodHandle;
11: java/lang/invoke/StringConcatFactory: makeConcatWithConstants(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;
12: java/lang/invoke/DirectMethodHandle$Holder: invokeStatic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
13: java/lang/invoke/DelegatingMethodHandle$Holder: delegate(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
14: java/lang/invoke/Invokers$Holder: invokeExact_MT(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
15: java/lang/invoke/BootstrapMethodInvoker: invoke(Ljava/lang/Class;Ljava/lang/invoke/MethodHandle;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
16: java/lang/invoke/CallSite: makeSite(Ljava/lang/invoke/MethodHandle;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/invoke/CallSite;
17: java/lang/invoke/MethodHandleNatives: linkCallSiteImpl(Ljava/lang/Class;Ljava/lang/invoke/MethodHandle;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/invoke/MemberName;
18: java/lang/invoke/MethodHandleNatives: linkCallSite(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/invoke/MemberName;
19: GetStackTraceSuspendedStressTest: producer(Ljava/lang/String;)V
20: GetStackTraceSuspendedStressTest: producer()V
21: GetStackTraceSuspendedStressTest: lambda$static$0()V
22: GetStackTraceSuspendedStressTest$$Lambda.0x000001e801001c00: run()V
23: java/lang/Thread: runWith(Ljava/lang/Object;Ljava/lang/Runnable;)V
24: java/lang/VirtualThread: run(Ljava/lang/Runnable;)V
25: java/lang/VirtualThread$VThreadContinuation$1: run()V
26: jdk/internal/vm/Continuation: enter0()V
27: jdk/internal/vm/Continuation: enter(Ljdk/internal/vm/Continuation;Z)V
JVMTI Stack Trace for thread ForkJoinPool-1-worker-2: frame count: 9
0: jdk/internal/vm/Continuation: run()V
1: java/lang/VirtualThread: runContinuation()V
2: java/lang/VirtualThread$$Lambda.0x000001e8010502e0: run()V
3: java/util/concurrent/ForkJoinTask$RunnableExecuteAction: exec()Z
4: java/util/concurrent/ForkJoinTask: doExec()I
5: java/util/concurrent/ForkJoinPool$WorkQueue: topLevelExec(Ljava/util/concurrent/ForkJoinTask;Ljava/util/concurrent/ForkJoinPool$WorkQueue;)V
6: java/util/concurrent/ForkJoinPool: scan(Ljava/util/concurrent/ForkJoinPool$WorkQueue;II)I
7: java/util/concurrent/ForkJoinPool: runWorker(Ljava/util/concurrent/ForkJoinPool$WorkQueue;)V
8: java/util/concurrent/ForkJoinWorkerThread: run()V
FATAL ERROR in native method: SingleStep event is NOT expected
at java.lang.invoke.BoundMethodHandle$Species_LL.make(java.base@22-internal/java/lang/invoke/BoundMethodHandle$Species_LL)
at java.lang.invoke.DirectMethodHandle$Holder.invokeStatic(java.base@22-internal/DirectMethodHandle$Holder)
at java.lang.invoke.BoundMethodHandle$Species_L.copyWithExtendL(java.base@22-internal/BoundMethodHandle.java:236)
at java.lang.invoke.LambdaFormEditor.bindArgumentL(java.base@22-internal/LambdaFormEditor.java:524)
at java.lang.invoke.BoundMethodHandle.bindArgumentL(java.base@22-internal/BoundMethodHandle.java:72)
at java.lang.invoke.MethodHandles.insertArguments(java.base@22-internal/MethodHandles.java:5278)
at java.lang.invoke.StringConcatFactory.prepender(java.base@22-internal/StringConcatFactory.java:708)
at java.lang.invoke.StringConcatFactory.prepender(java.base@22-internal/StringConcatFactory.java:777)
at java.lang.invoke.StringConcatFactory.prepender(java.base@22-internal/StringConcatFactory.java:789)
at java.lang.invoke.StringConcatFactory.filterInPrependers(java.base@22-internal/StringConcatFactory.java:621)
at java.lang.invoke.StringConcatFactory.generateMHInlineCopy(java.base@22-internal/StringConcatFactory.java:549)
at java.lang.invoke.StringConcatFactory.makeConcatWithConstants(java.base@22-internal/StringConcatFactory.java:365)
at java.lang.invoke.DirectMethodHandle$Holder.invokeStatic(java.base@22-internal/DirectMethodHandle$Holder)
at java.lang.invoke.DelegatingMethodHandle$Holder.delegate(java.base@22-internal/DelegatingMethodHandle$Holder)
at java.lang.invoke.Invokers$Holder.invokeExact_MT(java.base@22-internal/Invokers$Holder)
at java.lang.invoke.BootstrapMethodInvoker.invoke(java.base@22-internal/BootstrapMethodInvoker.java:102)
at java.lang.invoke.CallSite.makeSite(java.base@22-internal/CallSite.java:316)
at java.lang.invoke.MethodHandleNatives.linkCallSiteImpl(java.base@22-internal/MethodHandleNatives.java:275)
at java.lang.invoke.MethodHandleNatives.linkCallSite(java.base@22-internal/MethodHandleNatives.java:265)
at GetStackTraceSuspendedStressTest.producer(GetStackTraceSuspendedStressTest.java:50)
at GetStackTraceSuspendedStressTest.producer(GetStackTraceSuspendedStressTest.java:57)
at GetStackTraceSuspendedStressTest.lambda$static$0(GetStackTraceSuspendedStressTest.java:78)
at GetStackTraceSuspendedStressTest$$Lambda/0x000001e801001c00.run(Unknown Source)
at java.lang.Thread.runWith(java.base@22-internal/Thread.java:1583)
at java.lang.VirtualThread.run(java.base@22-internal/VirtualThread.java:311)
at java.lang.VirtualThread$VThreadContinuation$1.run(java.base@22-internal/VirtualThread.java:190)
at jdk.internal.vm.Continuation.enter0(java.base@22-internal/Continuation.java:320)
at jdk.internal.vm.Continuation.enter(java.base@22-internal/Continuation.java:312)
----------System.err:(0/0)----------
----------rerun:(44/8807)*----------
<snip>
result: Failed. Unexpected exit from test [exit code: 134]
I don't see any indicators that this failure is related to
but I have not seen any sightings of this test failing like this in
the Oracle CIs. This is a JVM/TI stress test so I'm starting this
bug off in hotspot/jvmti for initial triage. There is also Loom
related code in the stack trace above the failure point so I've
added the 'loom' tag.
- duplicates
-
JDK-8318536 GetStackTraceSuspendedStressTest.java failed with SIGFPE in SingleStep event handler
- Closed
- relates to
-
JDK-8318631 GetStackTraceSuspendedStressTest.java failed with: check_jvmti_status: JVMTI function returned error: JVMTI_ERROR_THREAD_NOT_ALIVE (15)
- Open
-
JDK-8310340 assert(_thread->is_interp_only_mode() || stub_caller) failed: expected a stub-caller
- Resolved
-
JDK-8318536 GetStackTraceSuspendedStressTest.java failed with SIGFPE in SingleStep event handler
- Closed
-
JDK-8315880 Change LockingMode default from LM_LEGACY to LM_LIGHTWEIGHT
- Closed