Shenandoah Crash in Minecraft

Aleksey Shipilev shade at redhat.com
Thu Aug 8 07:32:03 UTC 2019


Hi Robin,

On 8/7/19 11:19 PM, Robin Kuiper wrote:
> Crash log: 
> https://bugs.mojang.com/browse/MC-158532
> https://bugs.mojang.com/secure/attachment/230803/hs_err_pid1036.log

Are you sure this is Shenandoah-specific? Can you try without Shenandoah, and hopefully with
fastdebug builds? You can pick some at https://builds.shipilev.net/.

I tried to run it with default settings on latest fastdebug jdk12, and it crashed like this:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/home/buildbot/worker/jdk12u-linux/build/src/hotspot/share/prims/unsafe.cpp:117),
pid=8530, tid=8532
#  assert(byte_offset < p_size) failed: Unsafe access: offset 56 > object's size 56
#
# JRE version: OpenJDK Runtime Environment (12.0.2) (fastdebug build
12.0.2-testing+0-builds.shipilev.net-openjdk-jdk12-b202-20190806-jdk-12.0.210jdk-12.0.2-ga)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug
12.0.2-testing+0-builds.shipilev.net-openjdk-jdk12-b202-20190806-jdk-12.0.210jdk-12.0.2-ga, mixed
mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0x195788a]  assert_field_offset_sane(oop, long)+0x17a
#

---------------  S U M M A R Y ------------

Command Line: -Xss1M -Djava.library.path=/tmp/4068-d15d-18de-0f6b
-Dminecraft.launcher.brand=minecraft-launcher -Dminecraft.launcher.version=2.1.5965 -Xmx4g
-XX:+UnlockExperimentalVMOptions -Xlog:gc -Xloggc:minecraft-gc.log
-Dlog4j.configurationFile=/home/shade/.minecraft/assets/log_configs/client-1.12.xml
net.minecraft.client.main.Main --username shipilev --version 1.14.4 --gameDir /home/shade/.minecraft
--assetsDir /home/shade/.minecraft/assets --assetIndex 1.14 --uuid b1ad0e8d1b4c41809410298b57ba69bd
--accessToken 68717e31a88c4778a7150310b5d25e88 --userType mojang --versionType release

Host: shade-desktop, Intel(R) Core(TM) i7-7820X CPU @ 3.60GHz, 16 cores, 125G, Ubuntu 18.04.2 LTS
Time: Thu Aug  8 09:28:16 2019 CEST elapsed time: 14 seconds (0d 0h 0m 14s)

---------------  T H R E A D  ---------------

Current thread (0x00007f438c01e800):  JavaThread "Client thread" [_thread_in_vm, id=8532,
stack(0x00007f439542a000,0x00007f439552b000)]

Stack: [0x00007f439542a000,0x00007f439552b000],  sp=0x00007f43955269d0,  free space=1010k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native
code)
V  [libjvm.so+0x195788a]  assert_field_offset_sane(oop, long)+0x17a
V  [libjvm.so+0x19622a6]  Unsafe_GetInt+0xe6
J 418  jdk.internal.misc.Unsafe.getInt(Ljava/lang/Object;J)I java.base at 12.0.2-testing (0 bytes) @
0x00007f437c4a77b8 [0x00007f437c4a7660+0x0000000000000158]
j  sun.misc.Unsafe.getInt(Ljava/lang/Object;J)I+5 jdk.unsupported at 12.0.2-testing
j  org.lwjgl.system.MemoryUtil.getParentOffset(ILjava/nio/Buffer;Ljava/util/function/Function;)J+50
j  org.lwjgl.system.MemoryUtil.<clinit>()V+220
v  ~StubRoutines::call_stub

This actually looks like org.lwjgl.system.MemoryUtil bug.

-- 
Thanks,
-Aleksey



More information about the shenandoah-dev mailing list