VM crash with record
Logan Kulinski
lbkulinski at gmail.com
Wed Aug 28 03:57:51 UTC 2019
Hello
Today I decided to build the current Amber repository. During configuration, I selected a debug level of slowdebug. After the build was finished, I compiled following code without any issue:
> public record PointXY(int x, int y) {
> public static void main(String[] args) {
> PointXY origin = new PointXY(0, 0);
>
> System.out.println(origin);
> } //main
> }
When I ran it, though, I was met with the following:
> # To suppress the following error report, specify this argument
> # after -XX: or in .hotspotrc: SuppressErrorAt=/classFileParser.cpp:3263
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> # Internal Error (/home/lbk/amber/src/hotspot/share/classfile/classFileParser.cpp:3263), pid=26001, tid=26002
> # assert(__null == _record_params) failed: invariant
> #
> # JRE version: OpenJDK Runtime Environment (14.0) (slowdebug build 14-internal+0-adhoc.lbk.amber)
> # Java VM: OpenJDK 64-Bit Server VM (slowdebug 14-internal+0-adhoc.lbk.amber, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
> # Problematic frame:
> # V [libjvm.so+0x7addf0] ClassFileParser::parse_classfile_record_attribute(ClassFileStream const*, unsigned char const*, ConstantPool*, int*, Thread*)+0x50
> #
> # Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P" (or dumping to /home/lbk/core.26001)
> #
> # An error report file with more information is saved as:
> # /home/lbk/hs_err_pid26001.log
> #
> # If you would like to submit a bug report, please visit:
> # http://bugreport.java.com/bugreport/crash.jsp
> #
> Current thread is 26002
> Dumping core ...
> Aborted (core dumped)
Is this a known issue? Was I doing something not allowed? It happens anytime I try to run. I am currently using Ubuntu 18.04.3 LTS. Please let me know if you need anything else, as I would be happy to help!
Logan
More information about the amber-dev
mailing list