【标题描述】能够简要描述问题:说明什么场景下,做了什么操作,出现什么问题(尽量使用正向表达方式)
基于构建后的bishengJDK8,11,17在指定VerifyAliases参数会直接导致虚拟机崩溃。
例如,对于下面的测试程序:
public class Test {
public static void main(String[] args) {
System.out.println("Success Loaded!");
}
}
执行以下命令均会导致虚拟机崩溃:
/home/JVMS-SRC/bishengJDK/bishengjdk-8-master/build/linux-x86_64-normal-server-fastdebug/jdk/bin/java -XX:+VerifyAliases -cp . Test
./bishengJDK/bishengjdk-11-master/build/linux-x86_64-normal-server-fastdebug/jdk/bin/java -XX:+VerifyAliases -cp . Test
/home/JVMS-SRC/bishengJDK/bishengjdk-17-master/build/linux-x86_64-server-fastdebug/jdk/bin/java -XX:+VerifyAliases -cp . Test
一、缺陷信息
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc: SuppressErrorAt=/memnode.cpp:4912
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/home/JVMS-SRC/bishengJDK/bishengjdk-17-master/src/hotspot/share/opto/memnode.cpp:4912), pid=256827, tid=256840
# assert(alias_idx >= Compile::AliasIdxRaw) failed: must not disturb base_memory or sentinel
#
# JRE version: OpenJDK Runtime Environment (17.0.9) (fastdebug build 17.0.9-internal+0-adhoc..bishengjdk-17-master)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 17.0.9-internal+0-adhoc..bishengjdk-17-master, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x275e664] verify_memory_slice(MergeMemNode const*, int, Node*)+0x184
#
# 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/TestCases/Test/core.256827)
#
# An error report file with more information is saved as:
# /home/TestCases/Test/hs_err_pid256827.log
#
# Compiler replay data is saved as:
# /home/TestCases/Test/replay_pid256827.log
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
Aborted (core dumped)
【环境信息】
软件信息
java -version:
openjdk version "1.8.0_392-internal-fastdebug"
OpenJDK Runtime Environment (build 1.8.0_392-internal-fastdebug-_2023_10_31_11_56-b00)
OpenJDK 64-Bit Server VM (build 25.392-b00-fastdebug, mixed mode)
openjdk version "11.0.21-internal" 2023-10-17
OpenJDK Runtime Environment (fastdebug build 11.0.21-internal+0-adhoc..bishengjdk-11-master)
OpenJDK 64-Bit Server VM (fastdebug build 11.0.21-internal+0-adhoc..bishengjdk-11-master, mixed mode)
openjdk version "17.0.9-internal" 2023-10-17
OpenJDK Runtime Environment (fastdebug build 17.0.9-internal+0-adhoc..bishengjdk-17-master)
OpenJDK 64-Bit Server VM (fastdebug build 17.0.9-internal+0-adhoc..bishengjdk-17-master, mixed mode)
OS version:
Linux version 5.15.0-67-generic (buildd@lcy02-amd64-029) (gcc (Ubuntu 9.4.0-1ubuntu120.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #7420.04.1-Ubuntu SMP Wed Feb 22 14:52:34 UTC 2023
Hi hecoz, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Compiler, and any of the maintainers: @Noah , @eastb233 , @Peilin Guo , @guoge , @cf-zhao , @jiangfeilong , @编译小伙 , @周磊 , @wangyadong , @stubCode , @Benshuai5D , @kuen
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
问题仅在debug版本复现,参数只适应debug版本,同:https://bugs.openjdk.org/browse/JDK-8037084
aasert禁掉,或外提仅放到MergeMemNode::memory_at
;
java -XX:+VerifyAliases -version 均可以pass;
目前看还是倾向于保持不变。
登录 后才可以发表评论