JDK-8227068 : [Graal] MappedByteBuffer bulk access memory failures are not handled gracefully
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 14
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: x86_64
  • Submitted: 2019-07-02
  • Updated: 2020-01-30
  • Resolved: 2019-07-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 14
14 b06Fixed
Related Reports
Relates :  
Description
runtime/Unsafe/InternalErrorTest.java crashed:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGBUS (0x7) at pc=0x00007f70206966d9, pid=4043, tid=4062
#
# JRE version: Java(TM) SE Runtime Environment (14.0+4) (fastdebug build 14-ea+4-70)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 14-ea+4-70, mixed mode, aot, sharing, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# v  ~StubRoutines::jlong_disjoint_arraycopy
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
Unsupported internal testing APIs have been used.

# An error report file with more information is saved as:
# testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/2/hs_err_pid4043.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#
Current thread is 4062
Dumping core ...
Comments
Checked runtime/Unsafe/InternalErrorTest.java passes in jdk14 atr and latest CI.
30-01-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/ff76baab1c90 User: jcm Date: 2019-07-12 18:57:23 +0000
12-07-2019

yes, i need to add guard for Unsafe.copyMemory method substitution(intrinsic case).
03-07-2019

[~jcm] Flags used to generate java.base.so are the same as test is using. I think we missing Graal/AOT implementation for JDK-8191278. At least you need to implement in Graal setting as you did in C2: http://hg.openjdk.java.net/jdk/jdk/rev/3f3dc00a69a5#l21.1
02-07-2019

probably because aot /graal doesn't set flag. may be test should be disabled for aot graal.
02-07-2019