RFR: JDK-8302320: AsyncGetCallTrace obtains too few frames in sanity test [v2]

David Holmes dholmes at openjdk.org
Fri Feb 17 03:10:27 UTC 2023


On Thu, 16 Feb 2023 14:25:15 GMT, Johannes Bechberger <duke at 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

There are crashes in stack walking with this change. Try e.g.

vmTestbase/vm/mlvm/indy/func/jvmti/stepBreakPopReturn/INDIFY_Test.java

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (c:\sb\prod\1676562544\workspace\open\src\hotspot\share\code/codeCache.inline.hpp:49), pid=55852, tid=36120
#  assert(cb != nullptr) failed: must be

Stack: [0x0000001077100000,0x0000001077200000]
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0xbf7311]  os::win32::platform_print_native_stack+0xf1  (os_windows_x86.cpp:236)
V  [jvm.dll+0xe705d0]  VMError::report+0x10c0  (vmError.cpp:813)
V  [jvm.dll+0xe7220e]  VMError::report_and_die+0x6ce  (vmError.cpp:1593)
V  [jvm.dll+0xe72954]  VMError::report_and_die+0x64  (vmError.cpp:1352)
V  [jvm.dll+0x576ef6]  report_vm_error+0x96  (debug.cpp:181)
V  [jvm.dll+0x3fb595]  frame::sender_for_compiled_frame+0x515  (frame_x86.inline.hpp:441)
V  [jvm.dll+0x3fb85d]  frame::sender_raw+0x1dd  (frame_x86.inline.hpp:386)
V  [jvm.dll+0x524f4f]  vframeStreamCommon::next+0x52f  (vframe.inline.hpp:103)
V  [jvm.dll+0x7d7350]  java_lang_Throwable::fill_in_stack_trace+0x810  (javaClasses.cpp:2589)
V  [jvm.dll+0x7d6b16]  java_lang_Throwable::fill_in_stack_trace+0x86  (javaClasses.cpp:2649)
V  [jvm.dll+0x8b723d]  JVM_FillInStackTrace+0x1ad  (jvm.cpp:505)
C  [java.dll+0x7162]

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

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


More information about the serviceability-dev mailing list