qq_37400227
qq_37400227
采纳率12.5%
2017-11-26 03:15

JVM crash 错误日志分析

仅截取部分

A fatal error has been detected by the Java Runtime Environment:

#

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x5f4040e8, pid=14452, tid=9332

#

JRE version: Java(TM) SE Runtime Environment (8.0_91-b15) (build 1.8.0_91-b15)

Java VM: Java HotSpot(TM) Client VM (25.91-b15 mixed mode windows-x86 )

Problematic frame:

C [MFC42.DLL+0x40e8]

Stack: [0x026a0000,0x026f0000], sp=0x026ef034, free space=316k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [MFC42.DLL+0x40e8]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.sun.jna.Native.invokeInt(JI[Ljava/lang/Object;)I+0
j com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;Z)Ljava/lang/Object;+333
j com.sun.jna.Function.invoke(Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;+214
j com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+341
j com.sun.proxy.$Proxy0.MCIF(Lcom/sun/jna/Pointer;Lcom/sun/jna/Pointer;Lcom/sun/jna/Pointer;Lcom/sun/jna/Pointer;Lcom/sun/jna/Pointer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/sun/jna/Pointer;Lcom/sun/jna/Pointer;Lcom/sun/jna/Pointer;Lcom/sun/jna/Pointer;Lcom/sun/jna/Pointer;)I+94
j com.bb.test.Test.main([Ljava/lang/String;)V+201
v ~StubRoutines::call_stub

Heap:
def new generation total 4928K, used 1279K [0x04e00000, 0x05350000, 0x0a350000)
eden space 4416K, 17% used [0x04e00000, 0x04ebfe40, 0x05250000)
from space 512K, 100% used [0x052d0000, 0x05350000, 0x05350000)
to space 512K, 0% used [0x05250000, 0x05250000, 0x052d0000)
tenured generation total 10944K, used 750K [0x0a350000, 0x0ae00000, 0x14e00000)
the space 10944K, 6% used [0x0a350000, 0x0a40b9b0, 0x0a40ba00, 0x0ae00000)
Metaspace used 3600K, capacity 3733K, committed 3776K, reserved 4480K

GC Heap History (2 events):
Event: 0.713 GC heap before
{Heap before GC invocations=0 (full 0):
def new generation total 4928K, used 4416K [0x04e00000, 0x05350000, 0x0a350000)
eden space 4416K, 100% used [0x04e00000, 0x05250000, 0x05250000)
from space 512K, 0% used [0x05250000, 0x05250000, 0x052d0000)
to space 512K, 0% used [0x052d0000, 0x052d0000, 0x05350000)
tenured generation total 10944K, used 0K [0x0a350000, 0x0ae00000, 0x14e00000)
the space 10944K, 0% used [0x0a350000, 0x0a350000, 0x0a350200, 0x0ae00000)
Metaspace used 3433K, capacity 3573K, committed 3648K, reserved 4480K
Event: 0.716 GC heap after
Heap after GC invocations=1 (full 0):
def new generation total 4928K, used 512K [0x04e00000, 0x05350000, 0x0a350000)
eden space 4416K, 0% used [0x04e00000, 0x04e00000, 0x05250000)
from space 512K, 100% used [0x052d0000, 0x05350000, 0x05350000)
to space 512K, 0% used [0x05250000, 0x05250000, 0x052d0000)
tenured generation total 10944K, used 750K [0x0a350000, 0x0ae00000, 0x14e00000)
the space 10944K, 6% used [0x0a350000, 0x0a40b9b0, 0x0a40ba00, 0x0ae00000)
Metaspace used 3433K, capacity 3573K, committed 3648K, reserved 4480K
}
求大神分析
Problematic frame: C
EXCEPTION_ACCESS_VIOLATION
这两个代表什么意思

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

2条回答

  • yizishou yizishou 4年前

    根据java官方文档(链接),这个问题可能是由于Win7Win VistaUAC导致的。

    至于你的问题,可能是你使用JNA访问本地类库的时候发生了访问权限的问题,但JNA没有很好地处理这个问题。

    你可以试试升级一下JNA版本,或者暂时关闭UAC(关闭方法可以自行搜索)。

    点赞 评论 复制链接分享
  • wmurphy123 wmurphy123 4年前

    JVM崩溃。第一个是框架有问题,第二个可能是引用的错误的库文件,导致不可访问。

    点赞 评论 复制链接分享

相关推荐