On Thu, 16 Feb 2023 14:25:15 GMT, Johannes Bechberger <d...@openjdk.org> wrote:

>> Extends the existing AsyncGetCallTrace test case and fixes the issue by 
>> modifying `MethodHandles` code.
>
> Johannes Bechberger has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   Implement addptr suggestion by @JohnVernee and @reinrich

Java stack


#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000000000000315, pid=41551, tid=41572
#
# JRE version: OpenJDK Runtime Environment (21.0) (fastdebug build 
21-internal-adhoc.openjdk.jdk-dev)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 
21-internal-adhoc.openjdk.jdk-dev, mixed mode, sharing, tiered, compressed 
oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  0x00000000e755a950
#
# Core dump will be written. Default location: 
.../jtreg_hotspot_tier4_work/JTwork/scratch/0
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
#

---------------  S U M M A R Y ------------

Command Line: -Dtest.vm.opts=-Xmx768m -Djava.awt.headless=true 
-Djava.util.prefs.userRoot=.../jtreg_hotspot_tier4_work/tmp 
-Djava.io.tmpdir=.../jtreg_hotspot_tier4_work/tmp 
-Dtest.getfreeport.max.tries=40 -ea -esa -Dtest.tool.vm.opts=-J-Xmx768m 
-J-Djava.awt.headless=true 
-J-Djava.util.prefs.userRoot=.../jtreg_hotspot_tier4_work/tmp 
-J-Djava.io.tmpdir=.../jtreg_hotspot_tier4_work/tmp 
-J-Dtest.getfreeport.max.tries=40 -J-ea -J-esa -Dtest.compiler.opts= 
-Dtest.java.opts= -Dtest.jdk=.../sapjvm_21 -Dcompile.jdk=.../sapjvm_21 
-Dtest.timeout.factor=6.0 
-Dtest.nativepath=.../grmpf/testdata/jtreg/jtreg_test_21/test/hotspot/jtreg/native
 -Dtest.root=.../grmpf/testdata/jtreg/jtreg_test_21/test/hotspot/jtreg 
-Dtest.name=vmTestbase/vm/mlvm/indy/func/jvmti/stepBreakPopReturn/INDIFY_Test.java
 
-Dtest.file=.../grmpf/testdata/jtreg/jtreg_test_21/test/hotspot/jtreg/vmTestbase/vm/mlvm/indy/func/jvmti/stepBreakPopReturn/INDIFY_Test.java
 -Dtest.src=.../grmpf/testdata/jtreg/jtreg_test_21/test/hotspot/jtreg/
 vmTestbase/vm/mlvm/indy/func/jvmti/stepBreakPopReturn 
-Dtest.src.path=.../grmpf/testdata/jtreg/jtreg_test_21/test/hotspot/jtreg/vmTestbase/vm/mlvm/indy/func/jvmti/stepBreakPopReturn:.../grmpf/testdata/jtreg/jtreg_test_21/test/hotspot/jtreg/vmTestbase:.../grmpf/testdata/jtreg/jtreg_test_21/test/lib
 
-Dtest.classes=.../jtreg_hotspot_tier4_work/JTwork/classes/vmTestbase/vm/mlvm/indy/func/jvmti/stepBreakPopReturn/INDIFY_Test.d
 
-Dtest.class.path=.../jtreg_hotspot_tier4_work/JTwork/classes/vmTestbase/vm/mlvm/indy/func/jvmti/stepBreakPopReturn/INDIFY_Test.d:.../jtreg_hotspot_tier4_work/JTwork/classes/vmTestbase:.../jtreg_hotspot_tier4_work/JTwork/classes/test/lib
 
-Dtest.class.path.prefix=.../jtreg_hotspot_tier4_work/JTwork/classes/vmTestbase/vm/mlvm/indy/func/jvmti/stepBreakPopReturn/INDIFY_Test.d:.../grmpf/testdata/jtreg/jtreg_test_21/test/hotspot/jtreg/vmTestbase/vm/mlvm/indy/func/jvmti/stepBreakPopReturn:.../jtreg_hotspot_tier4_work/JTwork/classes/vmTestbase:.../jtreg_hotspot_tier4_work/
 JTwork/classes/test/lib -Xmx768m -Djava.awt.headless=true 
-Djava.util.prefs.userRoot=.../jtreg_hotspot_tier4_work/tmp 
-Djava.io.tmpdir=.../jtreg_hotspot_tier4_work/tmp 
-Dtest.getfreeport.max.tries=40 -ea -esa 
-Djava.library.path=.../grmpf/testdata/jtreg/jtreg_test_21/test/hotspot/jtreg/native
 -agentlib:stepBreakPopReturn=verbose= 
com.sun.javatest.regtest.agent.MainWrapper 
.../jtreg_hotspot_tier4_work/JTwork/vmTestbase/vm/mlvm/indy/func/jvmti/stepBreakPopReturn/INDIFY_Test.d/main.0.jta

Host: ..., Intel(R) Xeon(R) Platinum 8260M CPU @ 2.40GHz, 8 cores, 23G, SUSE 
Linux Enterprise Server 15 SP3
Time: Fri Feb 17 01:34:06 2023 CET elapsed time: 2.781186 seconds (0d 0h 0m 2s)

---------------  T H R E A D  ---------------

Current thread (0x00007fbc94422600):  JavaThread "MainThread" [_thread_in_Java, 
id=41572, stack(0x00007fbc6af26000,0x00007fbc6b027000)]

Stack: [0x00007fbc6af26000,0x00007fbc6b027000],  sp=0x00007fbc6b025118,  free 
space=1020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  0x00000000e755a950
j  
java.lang.invoke.LambdaForm$MH+0x0000000801018400.linkToTargetMethod(Ljava/lang/Object;Ljava/lang/Object;ILjava/lang/Object;)I+7
 java.base@21-internal
j  vm.mlvm.indy.func.jvmti.stepBreakPopReturn.INDIFY_Test.run()Z+52
j  
vm.mlvm.share.MlvmTestExecutor.runMlvmTestInstance(Lvm/mlvm/share/MlvmTest;)Z+82
j  
vm.mlvm.share.MlvmTestExecutor.runMlvmTest(Ljava/lang/Class;[Ljava/lang/Object;)Z+21
j  
vm.mlvm.share.MlvmTestExecutor.launch(Ljava/lang/Class;[Ljava/lang/Object;)V+28
j  vm.mlvm.share.MlvmTestExecutor.launch([Ljava/lang/Object;)V+20
j  
vm.mlvm.share.MlvmTestExecutor.launch([Ljava/lang/String;[Ljava/lang/Object;)V+5
j  vm.mlvm.share.MlvmTest.launch([Ljava/lang/String;)V+2
j  
vm.mlvm.indy.func.jvmti.stepBreakPopReturn.INDIFY_Test.main([Ljava/lang/String;)V+1
j  
java.lang.invoke.LambdaForm$DMH+0x0000000801001800.invokeStatic(Ljava/lang/Object;Ljava/lang/Object;)V+10
 java.base@21-internal
j  
java.lang.invoke.LambdaForm$MH+0x0000000801002c00.invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+33
 java.base@21-internal
j  
java.lang.invoke.Invokers$Holder.invokeExact_MT(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+20
 java.base@21-internal
j  
jdk.internal.reflect.DirectMethodHandleAccessor.invokeImpl(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+55
 java.base@21-internal
j  
jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+23
 java.base@21-internal
j  
java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+102
 java.base@21-internal
j  com.sun.javatest.regtest.agent.MainWrapper$MainThread.run()V+134
j  java.lang.Thread.runWith(Ljava/lang/Object;Ljava/lang/Runnable;)V+5 
java.base@21-internal
j  java.lang.Thread.run()V+19 java.base@21-internal
v  ~StubRoutines::call_stub 0x00007fbc8417fd21
V  [libjvm.so+0xeec41a]  JavaCalls::call_helper(JavaValue*, methodHandle 
const&, JavaCallArguments*, JavaThread*)+0x4da  (javaCalls.cpp:415)
V  [libjvm.so+0xeeca90]  JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, 
Symbol*, JavaCallArguments*, JavaThread*)+0x290  (javaCalls.cpp:329)

-------------

PR: https://git.openjdk.org/jdk/pull/12535

Reply via email to