JDK-8186325 : AArch64: jtreg test hotspot/test/gc/g1/TestJNIWeakG1/TestJNIWeakG1.java SEGV
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 8-aarch64,10
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • CPU: aarch64
  • Submitted: 2017-08-17
  • Updated: 2021-02-01
  • Resolved: 2017-08-30
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 10 Other
10 b23Fixed openjdk8u292Fixed
Related Reports
Relates :  
Relates :  
Description
STDOUT:
Check with jweak resolved
running checkSanity
running checkSurvival
running checkClear
running checkShouldNotClear
Check passed
Check with jweak returned
running checkSanity
running checkSurvival
running checkClear
running checkShouldNotClear
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000ffff806d0c00, pid=28077, tid=28158
#
# JRE version: OpenJDK Runtime Environment (10.0) (fastdebug build 10-internal+0-adhoc.ninjia02.gerrit)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 10-internal+0-adhoc.ninjia02.gerrit, compiled mode, tiered, compressed oops, g1 gc, linux-aarch64)
# Problematic frame:
# J 3546  TestJNIWeakG1.getReturnedWeak()Ljava/lang/Object; (0 bytes) @ 0x0000ffff806d0c00 [0x0000ffff806d0b00+0x0000000000000100]
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %P" (or dumping to /home/ninjia02/jdk/jdk10/build-fastdebug/JTwork/scratch/0/core.28077)
#
Unsupported internal testing APIs have been used.

# An error report file with more information is saved as:
# /home/ninjia02/jdk/jdk10/build-fastdebug/JTwork/scratch/0/hs_err_pid28077.log
Loaded disassembler from hsdis-aarch64.so
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#
Current thread is 28158
Dumping core ...
STDERR:
rerun:
DISPLAY=localhost:13.0 \
HOME=/home/ninjia02 \
LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8 \
LD_LIBRARY_PATH=images/test/hotspot/jtreg/native \
PATH=/bin:/usr/bin \
CLASSPATH=/home/ninjia02/jdk/jdk10/build-fastdebug/JTwork/classes/0/gc/g1/TestJNIWeakG1:/home/ninjia02/Work/jdk/jdk10/gerrit/hotspot/test/gc/g1/TestJNIWeakG1:/home/ninjia02/jdk/jdk10/build-fastdebug/JTwork/classes/0/test/lib:/home/ninjia02/Work/jdk/jdk10/gerrit/test/lib:/home/ninjia02/Work/jdk/tools/jtreg/jtreg-hg/dist/jtreg/lib/javatest.jar:/home/ninjia02/Work/jdk/tools/jtreg/jtreg-hg/dist/jtreg/lib/jtreg.jar \
    /home/ninjia02/jdk/jdk10/build-fastdebug/./images/jdk/bin/java \
        -Dtest.src=/home/ninjia02/Work/jdk/jdk10/gerrit/hotspot/test/gc/g1/TestJNIWeakG1 \
        -Dtest.src.path=/home/ninjia02/Work/jdk/jdk10/gerrit/hotspot/test/gc/g1/TestJNIWeakG1:/home/ninjia02/Work/jdk/jdk10/gerrit/test/lib \
        -Dtest.classes=/home/ninjia02/jdk/jdk10/build-fastdebug/JTwork/classes/0/gc/g1/TestJNIWeakG1 \
        -Dtest.class.path=/home/ninjia02/jdk/jdk10/build-fastdebug/JTwork/classes/0/gc/g1/TestJNIWeakG1:/home/ninjia02/jdk/jdk10/build-fastdebug/JTwork/classes/0/test/lib \
        -Dtest.vm.opts='-ea -esa -server' \
        -Dtest.tool.vm.opts='-J-ea -J-esa -J-server' \
        -Dtest.compiler.opts= \
        -Dtest.java.opts= \
        -Dtest.jdk=/home/ninjia02/jdk/jdk10/build-fastdebug/./images/jdk \
        -Dcompile.jdk=/home/ninjia02/jdk/jdk10/build-fastdebug/./images/jdk \
        -Dtest.timeout.factor=8.0 \
        -Dtest.modules=java.base \
        -Dtest.nativepath=/home/ninjia02/jdk/jdk10/build-fastdebug/images/test/hotspot/jtreg/native \
        --add-modules java.base \
        -ea \
        -esa \
        -server \
        -Djava.library.path=/home/ninjia02/jdk/jdk10/build-fastdebug/images/test/hotspot/jtreg/native \
        -Xbootclasspath/a:. \
        -XX:+UnlockDiagnosticVMOptions \
        -XX:+WhiteBoxAPI \
        -XX:+UseG1GC \
        -XX:MaxTenuringThreshold=2 \
        -Xcomp \
        com.sun.javatest.regtest.agent.MainWrapper /home/ninjia02/jdk/jdk10/build-fastdebug/JTwork/gc/g1/TestJNIWeakG1/TestJNIWeakG1.d/main.2.jta

TEST RESULT: Failed. Unexpected exit from test [exit code: 134]
--------------------------------------------------
Comments
This fix is needed after JDK-8176100 backport to 8-aarch64.
27-05-2019

Stuart Monteith will contribute a fix for this. http://mail.openjdk.java.net/pipermail/aarch64-port-dev/2017-August/004818.html
17-08-2017