Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java/nio/MappedByteBuffer/Truncate.java.Truncate got VM crashes with hotspot jdk8 (Zero Interpreter) #1052

Closed
sophia-guo opened this issue Apr 1, 2019 · 6 comments · Fixed by #5809
Assignees
Labels
arch:s390x java8 JBS issue need to report to JBS or reopen the issue in JBS type:openjdk Refers to openjdk regression test suite

Comments

@sophia-guo
Copy link
Contributor

java/nio/MappedByteBuffer/Truncate.java consistently got VM crashed with s390x hotspot jdk8.

Stacktrace

Unexpected exit from test [exit code: 134]    

Standard Output

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (os_linux_zero.cpp:202), pid=61427, tid=0x000003ff63fff910
#  Error: ShouldNotCall()
#
# JRE version: OpenJDK Runtime Environment (8.0_202-b08) (build 1.8.0_202-201903300430-b08)
# Java VM: OpenJDK 64-Bit Zero VM (25.202-b08 interpreted mode linux-s390x )
# 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:
# /data/jenkins/workspace/openjdk8_hs_openjdktest_s390x_linux/jvmtest/openjdk_regression/work/scratch/2/hs_err_pid61427.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_hs_openjdktest_s390x_linux/18/consoleFull

@sophia-guo sophia-guo added java8 arch:s390x JBS issue need to report to JBS or reopen the issue in JBS labels Apr 1, 2019
@jerboaa
Copy link
Contributor

jerboaa commented May 9, 2019

This isn't an s390x specific issue. It's Zero VM related. I can reproduce on x86_64, Zero. The issue is that Zero doesn't support unsafe accesses as they are platform specific. The idea about Zero is to make it as little platform specific as possible. The code which catches this reads:

      if (thread->thread_state() == _thread_in_vm &&
               sig == SIGBUS && thread->doing_unsafe_access()) {
      ShouldNotCallThis();
    }

The method on TOS is sun.misc.Unsafe.getByte(J)B called by java.nio.MappedByteBuffer.load()Ljava/nio/MappedByteBuffer;. Unless somebody steps up implementing this upstream I don't think this issue will change.

@smlambert smlambert added the type:openjdk Refers to openjdk regression test suite label Aug 7, 2019
@M-Davies
Copy link
Contributor

M-Davies commented Feb 19, 2020

Just as an extra note, this also occurs on arm32 with a similar outcome . This was on a non JIT build so it likely follows the same pattern @jerboaa mentioned above
#1548

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (os_linux_zero.cpp:202), pid=30758, tid=0x90b7e460
#  Error: ShouldNotCall()
#
# JRE version: OpenJDK Runtime Environment (8.0_232-b09) (build 1.8.0_232-b09)
# Java VM: OpenJDK Zero VM (25.232-b09 interpreted mode linux-arm )
# 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/jenkins/workspace/Grinder/openjdk-tests/TKG/test_output_15790525703979/jdk_nio_0/work/scratch/hs_err_pid30758.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

@karianna karianna changed the title java/nio/MappedByteBuffer/Truncate.java.Truncate got VM crashed with s390x hotspot jdk8 jd java/nio/MappedByteBuffer/Truncate.java.Truncate got VM crashes with hotspot jdk8 (Zero Interpreter) Feb 21, 2020
@sophia-guo
Copy link
Contributor Author

#1052 (comment)

@smlambert should we tag as won't fix or report upstream? As @jerboaa mentioned Unless somebody steps up implementing this upstream I don't think this issue will change.

@smlambert
Copy link
Contributor

Is it is at least reported upstream (even if no one will take on a fix)? Since it is unlikely that anyone wants to implement this upstream, we can permanently exclude this testcase. Exclude it with a reference to the upstream issue if it exists, otherwise use the "permanent excludes" issue in this repo (to which we should add a comment.

@jiekang
Copy link
Contributor

jiekang commented Dec 9, 2024

I'll look at opening something in JBS upstream and updating this issue and the exclusion appropriately.

@jiekang
Copy link
Contributor

jiekang commented Dec 10, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch:s390x java8 JBS issue need to report to JBS or reopen the issue in JBS type:openjdk Refers to openjdk regression test suite
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants