JVM crash with primitive type in LoadableDescriptors attribute

Frederic Parain frederic.parain at oracle.com
Wed Jul 31 17:33:31 UTC 2024


Hi Brian,


Thank you for reporting this issue.

I've created https://bugs.openjdk.org/browse/JDK-8337585 to track it.

There's already a proposed fix for it here: 
https://github.com/openjdk/valhalla/pull/1190


Best Regards,


Fred


On 7/31/24 12:11, Brian S O'Neill wrote:
> I'm experimenting with generating value classes, and I decided to see 
> what happens when I put a primitive type ("I") into the 
> LoadableDescriptors attribute. The JVM goes boom when loading the class.
>
> Using other odd descriptors like arrays, primitive arrays, etc. just 
> causes a warning to be logged, which is harmless.
>
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007fff7a25166e, 
> pid=6704, tid=8744
> #
> # JRE version: OpenJDK Runtime Environment (23.0+1) (build 
> 23-valhalla+1-90)
> # Java VM: OpenJDK 64-Bit Server VM (23-valhalla+1-90, mixed mode, 
> tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
> # Problematic frame:
> # C  0x00007fff7a25166e
> #
> # No core dump will be written. Minidumps are not enabled by default 
> on client versions of Windows
> #
> # An error report file with more information is saved as:
> # xxxx hs_err_pid6704.log
> #
> # If you would like to submit a bug report, please visit:
> #   https://bugreport.java.com/bugreport/crash.jsp
> #
>
> [error occurred during error reporting (), id 0xc0000005, 
> EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007fffa2b75bb6]


More information about the valhalla-dev mailing list