sendaoYan / riscv-port-jdk8u-ysd

https://openjdk.org/projects/riscv-port
GNU General Public License v2.0
0 stars 0 forks source link

Internal Error assembler.hpp:182 assert(is_bound() || is_unused()) failed: Label(TemplateTable::ldc2_w Done) was never bound to a location, but it was used as a jmp target #256

Open sendaoYan opened 1 month ago

sendaoYan commented 1 month ago
./riscv-jdk8u-0922-1805-slowdebug-binary/bin/java -Xint -version
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc:  SuppressErrorAt=/assembler.hpp:182
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/asm/assembler.hpp:182), pid=1694888, tid=0x0000003f8dbff180
#  assert(is_bound() || is_unused()) failed: Label was never bound to a location, but it was used as a jmp target
#
# JRE version:  (8.0_412) (build )
# Java VM: OpenJDK 64-Bit Server VM (25.412-b00-debug interpreted mode linux-riscv64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/yansendao/software/jdk/jdk8u-riscv64/0922/1808/hs_err_pid1694888.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#
Current thread is 272961106304
Dumping core ...
Aborted

254-fixed.zip

sendaoYan commented 1 month ago
Thread 2 "java" received signal SIGABRT, Aborted.
[Switching to Thread 0x3ff6bff180 (LWP 1709011)]
0x0000003ff7e96cbe in __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
44            return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;
(gdb) bt
#0  0x0000003ff7e96cbe in __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x0000003ff7e96d12 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#2  0x0000003ff7e5d9c8 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3  0x0000003ff7e4c1f6 in __GI_abort () at abort.c:79
#4  0x0000003ff7569318 in os::abort (dump_core=true) at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os/linux/vm/os_linux.cpp:1566
#5  0x0000003ff773e256 in VMError::report_and_die (this=0x3ff6bfdba8) at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/utilities/vmError.cpp:1124
#6  0x0000003ff70accf4 in report_vm_error (file=0x3ff77a1f58 "/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/asm/assembler.hpp", line=182, 
    error_msg=0x3ff77a1f28 "assert(is_bound() || is_unused()) failed", detail_msg=0x3ff77a1ee0 "Label was never bound to a location, but it was used as a jmp target")
    at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/utilities/debug.cpp:226
#7  0x0000003ff6dc9ce8 in Label::~Label (this=0x3ff6bfdc70, __in_chrg=<optimized out>) at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/asm/assembler.hpp:182
#8  0x0000003ff76c227c in TemplateTable::ldc2_w () at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/cpu/riscv/vm/templateTable_riscv.cpp:594
#9  0x0000003ff76bdfda in Template::generate (this=0x3ff7c90ef0 <TemplateTable::_template_table+640>, masm=0x3ff000e880)
    at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/interpreter/templateTable.cpp:63
#10 0x0000003ff76b5194 in TemplateInterpreterGenerator::generate_and_dispatch (this=0x3ff6bfe4f0, t=0x3ff7c90ef0 <TemplateTable::_template_table+640>, tos_out=vtos)
    at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/interpreter/templateInterpreter.cpp:545
#11 0x0000003ff76bd536 in TemplateInterpreterGenerator::set_vtos_entry_points (this=0x3ff6bfe4f0, t=0x3ff7c90ef0 <TemplateTable::_template_table+640>, 
    bep=@0x3ff6bfde80: 0x3fe1024db4 "\023\n\212\377;\005\005", cep=@0x3ff6bfde88: 0x3fe1024db4 "\023\n\212\377;\005\005", sep=@0x3ff6bfde90: 0x3fe1024db4 "\023\n\212\377;\005\005", 
    aep=@0x3ff6bfde98: 0x3fe1024d80 "\023\n\212\377#0\252", iep=@0x3ff6bfdea0: 0x3fe1024db4 "\023\n\212\377;\005\005", lep=@0x3ff6bfdea8: 0x3fe1024da4 "\023\n\n\377#4\n", 
    fep=@0x3ff6bfdeb0: 0x3fe1024d8c "\023\n\212\377' \252", dep=@0x3ff6bfdeb8: 0x3fe1024d98 "\023\n\n\377'0\252", vep=@0x3ff6bfdec0: 0x3fe1024dc0 "\003U\033")
    at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/cpu/riscv/vm/templateInterpreter_riscv.cpp:1813
#12 0x0000003ff76b4f7c in TemplateInterpreterGenerator::set_short_entry_points (this=0x3ff6bfe4f0, t=0x3ff7c90ef0 <TemplateTable::_template_table+640>, 
    bep=@0x3ff6bfde80: 0x3fe1024db4 "\023\n\212\377;\005\005", cep=@0x3ff6bfde88: 0x3fe1024db4 "\023\n\212\377;\005\005", sep=@0x3ff6bfde90: 0x3fe1024db4 "\023\n\212\377;\005\005", 
    aep=@0x3ff6bfde98: 0x3fe1024d80 "\023\n\212\377#0\252", iep=@0x3ff6bfdea0: 0x3fe1024db4 "\023\n\212\377;\005\005", lep=@0x3ff6bfdea8: 0x3fe1024da4 "\023\n\n\377#4\n", 
    fep=@0x3ff6bfdeb0: 0x3fe1024d8c "\023\n\212\377' \252", dep=@0x3ff6bfdeb8: 0x3fe1024d98 "\023\n\n\377'0\252", vep=@0x3ff6bfdec0: 0x3fe1024dc0 "\003U\033")
    at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/interpreter/templateInterpreter.cpp:513
#13 0x0000003ff76b4b3c in TemplateInterpreterGenerator::set_entry_points (this=0x3ff6bfe4f0, code=Bytecodes::_ldc2_w)
    at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/interpreter/templateInterpreter.cpp:478
#14 0x0000003ff76b4864 in TemplateInterpreterGenerator::set_entry_points_for_all_bytes (this=0x3ff6bfe4f0)
    at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/interpreter/templateInterpreter.cpp:434
#15 0x0000003ff76b479a in TemplateInterpreterGenerator::generate_all (this=0x3ff6bfe4f0) at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/interpreter/templateInterpreter.cpp:415
#16 0x0000003ff76bd584 in InterpreterGenerator::InterpreterGenerator (this=0x3ff6bfe4f0, code=0x3ff0081a60)
    at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/cpu/riscv/vm/templateInterpreter_riscv.cpp:1824
#17 0x0000003ff76b2edc in TemplateInterpreter::initialize () at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/interpreter/templateInterpreter.cpp:52
#18 0x0000003ff7269ab4 in interpreter_init () at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/interpreter/interpreter.cpp:118
#19 0x0000003ff721213c in init_globals () at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/runtime/init.cpp:109
#20 0x0000003ff76deb6c in Threads::create_vm (args=0x3ff6bfe828, canTryAgain=0x3ff6bfe78b) at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/runtime/thread.cpp:3448
#21 0x0000003ff732f27a in JNI_CreateJavaVM_inner (vm=0x3ff6bfe870, penv=0x3ff6bfe878, args=0x3ff6bfe828) at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/prims/jni.cpp:5250
#22 0x0000003ff732f39c in JNI_CreateJavaVM (vm=0x3ff6bfe870, penv=0x3ff6bfe878, args=0x3ff6bfe828) at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/prims/jni.cpp:5304
#23 0x0000003ff7fa6a44 in InitializeJVM (pvm=0x3ff6bfe870, penv=0x3ff6bfe878, ifn=0x3ff6bfe8c8) at /home/yansendao/git/riscv-port-jdk8u-ysd/jdk/src/share/bin/java.c:1240
#24 0x0000003ff7fa473e in JavaMain (_args=0x3fffffafe0) at /home/yansendao/git/riscv-port-jdk8u-ysd/jdk/src/share/bin/java.c:376
#25 0x0000003ff7e9531c in start_thread (arg=<optimized out>) at pthread_create.c:444
#26 0x0000003ff7eebfce in __thread_start () at ../sysdeps/unix/sysv/linux/riscv/clone.S:85
sendaoYan commented 1 month ago

198.patch JDK-8190428.patch

sendaoYan commented 1 month ago

256.patch

sendaoYan commented 1 month ago

256.zip

sendaoYan commented 1 month ago

256-fixed.zip