Open ChengJin01 opened 3 years ago
Bad O-slot ("Invalid class pointer in stack allocated object") in JIT frame @0xdaryl FYI
Thanks for the investigation. @knn-k @Akira1Saitoh , would one of you mind investigating please?
Which version did you use as the boot JDK here?
Which version did you use as the boot JDK here?
12279 and #12314 may have already fixed it. Try using the ver.0.26.0 M2 binary as the boot JDK.
The boot JDK is downloaded from the nightly builds at https://adoptopenjdk.net/nightly.html?variant=openjdk16&jvmVariant=openj9
I tried to reproduce it on ub18-aarch64-8, but not successful so far. I used the following boot JDK:
OpenJDK Runtime Environment AdoptOpenJDK-16+36-202104092334 (build 16+36-202104092334) Eclipse OpenJ9 VM AdoptOpenJDK-16+36-202104092334 (build master-9a9df50b9, JRE 16 Linux aarch64-64-Bit Compressed References 20210409_16 (JIT enabled, AOT enabled) OpenJ9 - 9a9df50b9 OMR - e0b3f5c8b JCL - 073accb86d based on jdk-16+36)
I tried to reproduce it on ub18-aarch64-8, but not successful so far. I used the following boot JDK:
OpenJDK Runtime Environment AdoptOpenJDK-16+36-202104092334 (build 16+36-202104092334) Eclipse OpenJ9 VM AdoptOpenJDK-16+36-202104092334 (build master-9a9df50b9, JRE 16 Linux aarch64-64-Bit Compressed References 20210409_16 (JIT enabled, AOT enabled) OpenJ9 - 9a9df50 OMR - e0b3f5c8b JCL - 073accb86d based on jdk-16+36)
It failed on cent7-aarch64 (e.g. cent7-aarch64-6)
I could not reproduce it on cent7-aarch64-4 either. The boot JDK was the same one as I used on ub18-aarch64-8, and I got it from: https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk16u-2021-04-12-18-50/OpenJDK16U-jdk_aarch64_linux_openj9_2021-04-12-18-50.tar.gz
The SHA hash of the source tree:
OpenJ9 - 9b90f0a09 OMR - 440f0991d JCL - f06632879 based on jdk-16+36 (git revert 5d554a114d64937d59f432c5e0ac3b4e6e691531 on 073accb)
It seems weird that I was unable to reproduce the assertion failure even on the same source (previously failed) without any updated code on cent7-aarch64-4
(tried to compile a couple of times but nothing wrong happened)
...
Updating support/demos/image/jfc/TransparentRuler/src.zip
openjdk version "16-internal" 2021-03-16
OpenJDK Runtime Environment (build 16-internal+0-adhoc.jenkins.openj9-openjdk-jdk16)
Eclipse OpenJ9 VM (build master-ee83667b9, JRE 16 Linux aarch64-64-Bit Compressed References 20210413_000000 (JIT enabled, AOT enabled)
OpenJ9 - ee83667b9
OMR - d7a31696c
JCL - efa722a9637 based on jdk-16+36)
Creating java.base.jmod
Creating support/demos/image/jfc/CodePointIM/CodePointIM.jar
Creating support/demos/image/jfc/FileChooserDemo/FileChooserDemo.jar
Creating support/demos/image/jfc/Font2DTest/Font2DTest.jar
Creating support/demos/image/jfc/Metalworks/Metalworks.jar
Creating support/demos/image/jfc/Notepad/Notepad.jar
Creating support/demos/image/jfc/Stylepad/Stylepad.jar
Creating support/demos/image/jfc/SampleTree/SampleTree.jar
Creating support/demos/image/jfc/TableExample/TableExample.jar
Creating support/demos/image/jfc/TransparentRuler/TransparentRuler.jar
Creating support/demos/image/jfc/SwingSet2/SwingSet2.jar
Creating support/demos/image/jfc/J2Ddemo/J2Ddemo.jar
Creating jdk image
Stopping sjavac server
Finished building target 'all' in configuration 'linux-aarch64-server-release'
[jenkins@cent7-aarch64-6 openj9-openjdk-jdk16]$
We'd better leave this issue open for a while in case it reoccurs somewhere else.
Steps to reproduce the crash by following the instruction at https://github.com/eclipse/openj9/blob/master/doc/build-instructions/Build_Instructions_V16.md#aarch64
export JAVA_HOME=../aarch64_jdk (downloaded from AdoptOpenJDK) export PATH="$JAVA_HOME/bin:$PATH"
git clone https://github.com/ibmruntimes/openj9-openjdk-jdk16.git cd openj9-openjdk-jdk16 git revert 5d554a114d64937d59f432c5e0ac3b4e6e691531 (OpenJ9 support for the Foreign Memory Access API) bash get_source.sh bash configure --disable-warnings-as-errors --enable-openjdk-methodhandles make all
It ended up with the following dump:
along with the backtrace:
FYI: @dmitripivkine