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::_new::allocate_shared) was never bound to a location, but it was used as a jmp target #257

Open sendaoYan opened 1 month ago

sendaoYan commented 1 month ago
./riscv-jdk8u-0922-2009-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=1709118, tid=0x0000003f817ff180
#  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/2010/hs_err_pid1709118.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#
Current thread is 272755585408
Dumping core ...
Aborted

256-fixed.zip

sendaoYan commented 1 month ago
Thread 2 "java" received signal SIGABRT, Aborted.
[Switching to Thread 0x3ff6bff180 (LWP 1709231)]
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  0x0000003ff773e272 in VMError::report_and_die (this=0x3ff6bfdb18) at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/utilities/vmError.cpp:1124
#6  0x0000003ff70accf4 in report_vm_error (file=0x3ff77a1f70 "/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/asm/assembler.hpp", line=182, 
    error_msg=0x3ff77a1f40 "assert(is_bound() || is_unused()) failed", detail_msg=0x3ff77a1ef8 "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=0x3ff6bfdc40, __in_chrg=<optimized out>) at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/asm/assembler.hpp:182
#8  0x0000003ff76d2982 in TemplateTable::_new () at /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/cpu/riscv/vm/templateTable_riscv.cpp:3785
#9  0x0000003ff76bdfda in Template::generate (this=0x3ff7c923d0 <TemplateTable::_template_table+5984>, 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=0x3ff7c923d0 <TemplateTable::_template_table+5984>, tos_out=atos)
    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=0x3ff7c923d0 <TemplateTable::_template_table+5984>, 
    bep=@0x3ff6bfde80: 0x3fe1034a34 "\023\n\212\377;\005\005", cep=@0x3ff6bfde88: 0x3fe1034a34 "\023\n\212\377;\005\005", sep=@0x3ff6bfde90: 0x3fe1034a34 "\023\n\212\377;\005\005", 
    aep=@0x3ff6bfde98: 0x3fe1034a00 "\023\n\212\377#0\252", iep=@0x3ff6bfdea0: 0x3fe1034a34 "\023\n\212\377;\005\005", lep=@0x3ff6bfdea8: 0x3fe1034a24 "\023\n\n\377#4\n", 
    fep=@0x3ff6bfdeb0: 0x3fe1034a0c "\023\n\212\377' \252", dep=@0x3ff6bfdeb8: 0x3fe1034a18 "\023\n\n\377'0\252", vep=@0x3ff6bfdec0: 0x3fe1034a40 "\203V\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=0x3ff7c923d0 <TemplateTable::_template_table+5984>, 
    bep=@0x3ff6bfde80: 0x3fe1034a34 "\023\n\212\377;\005\005", cep=@0x3ff6bfde88: 0x3fe1034a34 "\023\n\212\377;\005\005", sep=@0x3ff6bfde90: 0x3fe1034a34 "\023\n\212\377;\005\005", 
    aep=@0x3ff6bfde98: 0x3fe1034a00 "\023\n\212\377#0\252", iep=@0x3ff6bfdea0: 0x3fe1034a34 "\023\n\212\377;\005\005", lep=@0x3ff6bfdea8: 0x3fe1034a24 "\023\n\n\377#4\n", 
    fep=@0x3ff6bfdeb0: 0x3fe1034a0c "\023\n\212\377' \252", dep=@0x3ff6bfdeb8: 0x3fe1034a18 "\023\n\n\377'0\252", vep=@0x3ff6bfdec0: 0x3fe1034a40 "\203V\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::_new)
    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 0x0000003ff76deb88 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

8061308: Remove iCMS

sendaoYan commented 1 month ago

image

sendaoYan commented 1 month ago

JDK-8061308.patch

sendaoYan commented 1 month ago

257-1.zip

sendaoYan commented 1 month ago

-XX:-UseTLAB选项可暂时规避

image

sendaoYan commented 1 month ago

image

sendaoYan commented 1 month ago

8191986: JDK-8190862 work for arch aarch64

sendaoYan commented 1 month ago

209.patch JDK-8191986.patch

sendaoYan commented 1 month ago

257-2.zip 257-3.zip

sendaoYan commented 1 month ago
./riscv-jdk8u-0923-1121-slowdebug-binary/bin/java -Xint -version
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000003f75030794, pid=2036103, tid=0x0000003f8abff180
#
# JRE version:  (8.0_412) (build )
# Java VM: OpenJDK 64-Bit Server VM (25.412-b00-debug interpreted mode linux-riscv64 compressed oops)
# Problematic frame:
# j  java.lang.String.<clinit>()V+4
#
# Core dump written. Default location: /home/yansendao/software/jdk/jdk8u-riscv64/0923/1139/core or core.2036103
#
# An error report file with more information is saved as:
# /home/yansendao/software/jdk/jdk8u-riscv64/0923/1139/hs_err_pid2036103.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#
Current thread is 272910774656
Dumping core ...
sendaoYan commented 1 month ago

257.patch

sendaoYan commented 1 month ago

To github.com:sendaoYan/riscv-port-jdk8u-ysd.git dfb3f4d786..db969a8542 minus-jbs8276799 -> minus-jbs8276799