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

JTReg test: jdk/java/lang/Class/GetModuleTest.java triggers coredump with OpenJ9 #3040

Closed
ben-walsh opened this issue Sep 26, 2018 · 3 comments

Comments

@ben-walsh
Copy link
Contributor

ben-walsh commented Sep 26, 2018

JTReg test jdk/java/lang/Class/GetModuleTest.java triggers a coredump to be produced when run against OpenJ9 ...

12:36:40.693 0x18c7800   j9jcl.189    *   ** ASSERTION FAILED ** at ../common/sun_misc_Unsafe.cpp:81: ((constPatches == __null))
JVMDUMP039I Processing dump event "traceassert", detail "" at 2018/09/26 13:36:40 - please wait.
JVMDUMP032I JVM requested System dump using '/tmp/core.20180926.133640.3668.0001.dmp' in response to an event
JVMPORT030W /proc/sys/kernel/core_pattern setting "|/usr/share/apport/apport %p %s %c %d %P" specifies that the core dump is to be piped to an external program.  Attempting to rename either core or core.3693.

JVMDUMP012E Error in System dump: The core file created by child process with pid = 3693 was not found. Expected to find core file with name "/tmp/core"
JVMDUMP032I JVM requested Java dump using '/tmp/javacore.20180926.133640.3668.0002.txt' in response to an event
JVMDUMP010I Java dump written to /tmp/javacore.20180926.133640.3668.0002.txt
JVMDUMP032I JVM requested Snap dump using '/tmp/Snap.20180926.133640.3668.0003.trc' in response to an event
JVMDUMP010I Snap dump written to /tmp/Snap.20180926.133640.3668.0003.trc
JVMDUMP013I Processed dump event "traceassert", detail "".

Log archive (including coredump) :
GetModuleTestFailure.tar.gz

OpenJ9 build run against ...

openjdk version "11" 2018-09-25
OpenJDK Runtime Environment AdoptOpenJDK (build 11+28-201809241808)
Eclipse OpenJ9 VM AdoptOpenJDK (build master-f3a7b977, JRE 11 Linux amd64-64-Bit Compressed References 20180924_23 (JIT enabled, AOT enabled)
OpenJ9   - f3a7b977
OMR      - cb3dfab6
JCL      - afdb7423f7 based on jdk-11+28)

This test passes against Hotspot. Build used ...

openjdk version "11" 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)
@DanHeidinga
Copy link
Member

The test is invalid on OpenJ9 as it relies on sun.misc.Unsafe.defineAnonymousClass()'s ability to patch live objects into the constantpool. We don't support that behaviour and don't intend to.

There are proposals under discussion in various Expert Groups about alternatives to cp patching. We expect to implement those features when they are targeted to a java release.

Please exclude this test from runs with OpenJ9

@ben-walsh
Copy link
Contributor Author

Will do @DanHeidinga. Thanks.

@ben-walsh
Copy link
Contributor Author

Closing accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants