97 Star 506 Fork 190

GVPopenEuler/bishengjdk-8

 / 详情

构建二进制在指定参数VerifyAliases后会崩溃

待办的
缺陷
创建于  
2023-10-31 14:34

【标题描述】能够简要描述问题:说明什么场景下,做了什么操作,出现什么问题(尽量使用正向表达方式)
基于构建后的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

缺陷详情参考链接:
https://bugs.openjdk.org/browse/JDK-8316656

评论 (2)

Hecoz 创建了缺陷

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

openeuler-ci-bot 添加了
 
sig/Compiler
标签

问题仅在debug版本复现,参数只适应debug版本,同:https://bugs.openjdk.org/browse/JDK-8037084
aasert禁掉,或外提仅放到MergeMemNode::memory_at;
java -XX:+VerifyAliases -version 均可以pass;
目前看还是倾向于保持不变。

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5329419 openeuler ci bot 1632792936 8099221 kuenking111 1666658674 2085291 hecoz 1610354551
Java
1
https://gitee.com/openeuler/bishengjdk-8.git
git@gitee.com:openeuler/bishengjdk-8.git
openeuler
bishengjdk-8
bishengjdk-8

搜索帮助

A270a887 8829481 3d7a4017 8829481