-
Bug
-
Resolution: Unresolved
-
P3
-
26
On Linux AArch64 machine, run this test with -XX:+VerifyStack using fastdebug build:
$ make test TEST="compiler/exceptions/TestAccessErrorInCatch.java" TEST_VM_OPTS="-XX:+VerifyStack"
JVM crash message:
```
CompileCommand: compileonly IllegalAccessInCatch*.test bool compileonly = true
Wrong number of expression stack elements during deoptimization
Error occurred while verifying frame 0 (0..0, 0 is topmost)
Current code ireturn
Fabricated interpreter frame had 2 expression stack elements
Interpreter oop map had 1 expression stack elements
callee_size_of_parameters = 0
top_frame_expression_stack_adjustment = 1
exec_mode = 1
original should_reexecute = false
reexecute = true (changed)
rethrow_exception = false
cur_invoke_parameter_size = 0
Thread = 0x0000ffffa01fd700, thread ID = 3871648
Interpreted frames:
IllegalAccessInCatch/0x000007ff01042800.test()I (bci 2)
- sp: 0x0000ffff8184dcd0
- thread: "MainThread" #35 [3871648] prio=5 os_prio=0 cpu=324.88ms elapsed=0.33s tid=0x0000ffffa01fd700 nid=3871648 runnable [0x0000ffff8184d000]
java.lang.Thread.State: RUNNABLE
Thread: 0x0000ffffa01fd700 [0x3b13a0] State: _running _at_poll_safepoint 0
JavaThread state: _thread_in_Java
- frame size: 4
- interpreter_frame -> sp: 0x0000ffff8184dc60
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/home/fyang/jdk/src/hotspot/share/runtime/deoptimization.cpp:1035), pid=3871623, tid=3871648
# guarantee(false) failed: wrong number of expression stack elements during deopt
#
# JRE version: OpenJDK Runtime Environment (26.0) (fastdebug build 26-internal-adhoc.fyang.jdk)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 26-internal-adhoc.fyang.jdk, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# V [libjvm.so+0xaa567c] Deoptimization::unpack_frames(JavaThread*, int)+0xa0c
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /home/fyang/jdk/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_exceptions_TestAccessErrorInCatch_java/scratch/0/core.3871623)
#
# An error report file with more information is saved as:
# /home/fyang/jdk/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_exceptions_TestAccessErrorInCatch_java/scratch/0/hs_err_pid3871623.log
[0.559s][warning][os] Loading hsdis library failed
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
```
$ make test TEST="compiler/exceptions/TestAccessErrorInCatch.java" TEST_VM_OPTS="-XX:+VerifyStack"
JVM crash message:
```
CompileCommand: compileonly IllegalAccessInCatch*.test bool compileonly = true
Wrong number of expression stack elements during deoptimization
Error occurred while verifying frame 0 (0..0, 0 is topmost)
Current code ireturn
Fabricated interpreter frame had 2 expression stack elements
Interpreter oop map had 1 expression stack elements
callee_size_of_parameters = 0
top_frame_expression_stack_adjustment = 1
exec_mode = 1
original should_reexecute = false
reexecute = true (changed)
rethrow_exception = false
cur_invoke_parameter_size = 0
Thread = 0x0000ffffa01fd700, thread ID = 3871648
Interpreted frames:
IllegalAccessInCatch/0x000007ff01042800.test()I (bci 2)
- sp: 0x0000ffff8184dcd0
- thread: "MainThread" #35 [3871648] prio=5 os_prio=0 cpu=324.88ms elapsed=0.33s tid=0x0000ffffa01fd700 nid=3871648 runnable [0x0000ffff8184d000]
java.lang.Thread.State: RUNNABLE
Thread: 0x0000ffffa01fd700 [0x3b13a0] State: _running _at_poll_safepoint 0
JavaThread state: _thread_in_Java
- frame size: 4
- interpreter_frame -> sp: 0x0000ffff8184dc60
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/home/fyang/jdk/src/hotspot/share/runtime/deoptimization.cpp:1035), pid=3871623, tid=3871648
# guarantee(false) failed: wrong number of expression stack elements during deopt
#
# JRE version: OpenJDK Runtime Environment (26.0) (fastdebug build 26-internal-adhoc.fyang.jdk)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 26-internal-adhoc.fyang.jdk, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# V [libjvm.so+0xaa567c] Deoptimization::unpack_frames(JavaThread*, int)+0xa0c
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /home/fyang/jdk/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_exceptions_TestAccessErrorInCatch_java/scratch/0/core.3871623)
#
# An error report file with more information is saved as:
# /home/fyang/jdk/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_exceptions_TestAccessErrorInCatch_java/scratch/0/hs_err_pid3871623.log
[0.559s][warning][os] Loading hsdis library failed
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
```
- caused by
-
JDK-8367002 Missing compiled exception handler for "recursive" exception
-
- Resolved
-
- relates to
-
JDK-8370867 Crash: assert(bb->is_reachable()) failed: getting result from unreachable basicblock
-
- Open
-