-
Bug
-
Resolution: Fixed
-
P3
-
7u351, 8, 11, 17.0.2, 18, 19
-
b20
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8286109 | 17.0.5-oracle | Tobias Hartmann | P3 | Resolved | Fixed | b01 |
JDK-8288304 | 17.0.5 | Goetz Lindenmaier | P3 | Resolved | Fixed | b01 |
JDK-8292982 | 15.0.9 | Yuri Nesterenko | P3 | Resolved | Fixed | b03 |
JDK-8292979 | 13.0.13 | Yuri Nesterenko | P3 | Resolved | Fixed | b03 |
JDK-8286106 | 11.0.17-oracle | Tobias Hartmann | P3 | Resolved | Fixed | b01 |
JDK-8289463 | 11.0.17 | Goetz Lindenmaier | P3 | Resolved | Fixed | b01 |
JDK-8316902 | openjdk8u402 | Jiří Vaněk | P3 | Resolved | Fixed | b01 |
JDK-8318374 | openjdk8u392 | Jiří Vaněk | P3 | Resolved | Fixed | b08 |
JDK-8317688 | 8u401 | Dean Long | P3 | Resolved | Fixed | b02 |
OS version:
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
JDK version we used:
openjdk version "17.0.2" 2022-01-18
OpenJDK Runtime Environment (build 17.0.2+8-86)
OpenJDK 64-Bit Server VM (build 17.0.2+8-86, mixed mode, sharing)
openjdk version "18" 2022-03-22
OpenJDK Runtime Environment (build 18+36-2087)
OpenJDK 64-Bit Server VM (build 18+36-2087, mixed mode, sharing)
openjdk version "19-ea" 2022-09-20
OpenJDK Runtime Environment (build 19-ea+13-808)
OpenJDK 64-Bit Server VM (build 19-ea+13-808, mixed mode, sharing)
A DESCRIPTION OF THE PROBLEM :
When we run the test in jdk17.0.2, jdk18 and jdk19-ea, all in compiled mode(with "-Xcomp"), it crashed with the following message. But when run the test in mixed mode or interpreted mode(with "-Xint), it passed successfully.
The error message in compiled mode:
jdk17.0.2:
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f0b86b5a37b, pid=32365, tid=32379
#
# JRE version: OpenJDK Runtime Environment (17.0.2+8) (build 17.0.2+8-86)
# Java VM: OpenJDK 64-Bit Server VM (17.0.2+8-86, compiled mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x52837b] ciMethodBlocks::make_block_at(int)+0x3b
#
# No core dump will be written. 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/minghai/hs_err_pid32365.log
#
# Compiler replay data is saved as:
# /home/minghai/replay_pid32365.log
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
jdk18:
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f9a003d800b, pid=32250, tid=32263
#
# JRE version: OpenJDK Runtime Environment (18.0+36) (build 18+36-2087)
# Java VM: OpenJDK 64-Bit Server VM (18+36-2087, compiled mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x54b00b] ciTypeFlow::get_block_for(int, ciTypeFlow::JsrSet*, ciTypeFlow::CreateOption)+0x2b
#
# No core dump will be written. 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/minghai/hs_err_pid32250.log
#
# Compiler replay data is saved as:
# /home/minghai/replay_pid32250.log
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
jdk19-ea:
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f96f291b1fb, pid=32319, tid=32332
#
# JRE version: OpenJDK Runtime Environment (19.0+13) (build 19-ea+13-808)
# Java VM: OpenJDK 64-Bit Server VM (19-ea+13-808, compiled mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x5571fb] ciTypeFlow::get_block_for(int, ciTypeFlow::JsrSet*, ciTypeFlow::CreateOption)+0x2b
#
# No core dump will be written. 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/minghai/hs_err_pid32319.log
#
# Compiler replay data is saved as:
# /home/minghai/replay_pid32319.log
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. extract the bug.zip
2. in dictionary "bug", run command:
java -cp ./bugFiles:./util:./junit.jar:./hamcrest.jar:./target/classes:./target/test-classes org.junit.runner.JUnitCore com.alibaba.fastjson.deserializer.issue1463.TestIssue1463
you may add "-Xcomp" or "-Xint" to get different results.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The result should be the same since the program are the same, no matter in compiled mode, mixed mode or interpreted mode.
ACTUAL -
When run in compiled mode(with "-Xcomp"), it crashed. But when run in mixed mode or interpreted mode(with -Xint), it passed successfully.
---------- BEGIN SOURCE ----------
to be attached in bug.zip
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
run the command without -Xcomp or with -Xint
FREQUENCY : always
- backported by
-
JDK-8286106 C2: segmentation fault in ciMethodBlocks::make_block_at(int)
- Resolved
-
JDK-8286109 C2: segmentation fault in ciMethodBlocks::make_block_at(int)
- Resolved
-
JDK-8288304 C2: segmentation fault in ciMethodBlocks::make_block_at(int)
- Resolved
-
JDK-8289463 C2: segmentation fault in ciMethodBlocks::make_block_at(int)
- Resolved
-
JDK-8292979 C2: segmentation fault in ciMethodBlocks::make_block_at(int)
- Resolved
-
JDK-8292982 C2: segmentation fault in ciMethodBlocks::make_block_at(int)
- Resolved
-
JDK-8316902 C2: segmentation fault in ciMethodBlocks::make_block_at(int)
- Resolved
-
JDK-8317688 C2: segmentation fault in ciMethodBlocks::make_block_at(int)
- Resolved
-
JDK-8318374 C2: segmentation fault in ciMethodBlocks::make_block_at(int)
- Resolved
- relates to
-
JDK-8284877 Check type compatibility before looking up method from receiver's vtable
- Closed
-
JDK-8335664 Parsing jsr broken: assert(bci>= 0 && bci < c->method()->code_size()) failed: index out of bounds
- Resolved
-
JDK-8291459 JVM crash with GenerateOopMap::error_work(char const*, __va_list_tag*)
- Closed
- links to
-
Commit openjdk/jdk8u-dev/961ab463
-
Commit openjdk/jdk11u-dev/fb76f0e7
-
Commit openjdk/jdk13u-dev/bd0ca303
-
Commit openjdk/jdk15u-dev/e7fdc3a6
-
Commit openjdk/jdk17u-dev/a081e4ad
-
Commit openjdk/jdk/94786960
-
Review openjdk/jdk8u-dev/376
-
Review openjdk/jdk11u-dev/1183
-
Review openjdk/jdk13u-dev/394
-
Review openjdk/jdk15u-dev/261
-
Review openjdk/jdk17u-dev/451
-
Review openjdk/jdk18u/155
-
Review openjdk/jdk/8374