JNI学习中——JVM错误:EXCEPTION_ACCESS_VIOLATION (0xc0000005)

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000067522fdd, pid=8100, tid=5156
#
# JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# V  [jvm.dll+0x122fdd]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
#

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

Current thread (0x00000000023de000):  JavaThread "main" [_thread_in_vm, id=5156, stack(0x0000000002610000,0x0000000002710000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x000000000000000d

Registers:
RAX=0x0000000000000000, RBX=0x00000000023de000, RCX=0x0000000000000e00, RDX=0x000000000839a378
RSP=0x000000000270f0a0, RBP=0x000000000270f1e0, RSI=0x0000000000000000, RDI=0x000000000000000c
R8 =0x0000000000000001, R9 =0x000000000000000c, R10=0x0000000000000001, R11=0x0000000000000000
R12=0x0000000000000000, R13=0x00000000bfc716b0, R14=0x0000000000000010, R15=0x0000000000000000
RIP=0x0000000067522fdd, EFLAGS=0x0000000000010202

Top of Stack: (sp=0x000000000270f0a0)
0x000000000270f0a0:   0000000000000000 00000000023de000
0x000000000270f0b0:   00000000023de000 00000000023ded88
0x000000000270f0c0:   00000000023de000 000000000270f200
0x000000000270f0d0:   000000000270f200 00000000bfc71210
0x000000000270f0e0:   00000000bfc716b0 000007fefb401275
0x000000000270f0f0:   000000000270f1e0 000000000270f110
0x000000000270f100:   0000000000000000 cccccccccccccccc
0x000000000270f110:   000000000270f160 000007fefb4010cd
0x000000000270f120:   00000000023de1e8 000000000839a378
0x000000000270f130:   0000000000000000 000007fefb406570
0x000000000270f140:   0000000000000000 000000000839a378
0x000000000270f150:   cccccccccccccccc cccccccccccccccc
0x000000000270f160:   0000000020200021 0000000002723090
0x000000000270f170:   00000000023de1e8 000000000270f200
0x000000000270f180:   00000000023ded68 00000000023de000
0x000000000270f190:   00000000023de000 000000000270f270 

Instructions: (pc=0x0000000067522fdd)
0x0000000067522fbd:   00 48 8b 35 eb 88 5c 00 bf 0c 00 00 00 44 8d 77
0x0000000067522fcd:   04 85 c0 7e 06 46 8b 24 00 eb 33 45 84 d2 74 21
0x0000000067522fdd:   43 8b 0c 01 85 c9 75 08 49 8b d7 48 8b c7 eb 18
0x0000000067522fed:   48 8b d1 41 8b cb 48 8b c7 48 d3 e2 48 03 d6 eb 

Register to memory mapping:

RAX=0x0000000000000000 is an unknown value
RBX=0x00000000023de000 is a thread
RCX=0x0000000000000e00 is an unknown value
RDX=0x000000000839a378 is an unknown value
RSP=0x000000000270f0a0 is pointing into the stack for thread: 0x00000000023de000
RBP=0x000000000270f1e0 is pointing into the stack for thread: 0x00000000023de000
RSI=0x0000000000000000 is an unknown value
RDI=0x000000000000000c is an unknown value
R8 =0x0000000000000001 is an unknown value
R9 =0x000000000000000c is an unknown value
R10=0x0000000000000001 is an unknown value
R11=0x0000000000000000 is an unknown value
R12=0x0000000000000000 is an unknown value
R13=0x00000000bfc716b0 is an oop
{method}
 - klass: {other class}
R14=0x0000000000000010 is an unknown value
R15=0x0000000000000000 is an unknown value

Stack: [0x0000000002610000,0x0000000002710000],  sp=0x000000000270f0a0,  free space=1020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0x122fdd]
j  com.anna.MainTest.main([Ljava/lang/String;)V+42
v  ~StubRoutines::call_stub

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  com.anna.MainTest.callCppFunction()V+0
j  com.anna.MainTest.main([Ljava/lang/String;)V+42
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x0000000008419000 JavaThread "Service Thread" daemon [_thread_blocked, id=8244, stack(0x000000000a2b0000,0x000000000a3b0000)]
  0x0000000008418000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=1132, stack(0x0000000009ca0000,0x0000000009da0000)]
  0x0000000008411800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=7792, stack(0x0000000009b20000,0x0000000009c20000)]
  0x0000000008410800 JavaThread "Attach Listener" daemon [_thread_blocked, id=9044, stack(0x0000000009940000,0x0000000009a40000)]
  0x00000000083bf000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=8412, stack(0x0000000009840000,0x0000000009940000)]
  0x00000000083a4000 JavaThread "Finalizer" daemon [_thread_blocked, id=8736, stack(0x0000000009660000,0x0000000009760000)]
  0x000000000839b000 JavaThread "Reference Handler" daemon [_thread_blocked, id=8920, stack(0x0000000009430000,0x0000000009530000)]
=>0x00000000023de000 JavaThread "main" [_thread_in_vm, id=5156, stack(0x0000000002610000,0x0000000002710000)]

Other Threads:
  0x0000000008397000 VMThread [stack: 0x0000000009550000,0x0000000009650000] [id=8448]
  0x0000000009db0800 WatcherThread [stack: 0x000000000a480000,0x000000000a580000] [id=1452]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 PSYoungGen      total 17920K, used 923K [0x00000000ec400000, 0x00000000ed800000, 0x0000000100000000)
  eden space 15360K, 6% used [0x00000000ec400000,0x00000000ec4e6d40,0x00000000ed300000)
  from space 2560K, 0% used [0x00000000ed580000,0x00000000ed580000,0x00000000ed800000)
  to   space 2560K, 0% used [0x00000000ed300000,0x00000000ed300000,0x00000000ed580000)
 ParOldGen       total 40448K, used 0K [0x00000000c4c00000, 0x00000000c7380000, 0x00000000ec400000)
  object space 40448K, 0% used [0x00000000c4c00000,0x00000000c4c00000,0x00000000c7380000)
 PSPermGen       total 21504K, used 2509K [0x00000000bfa00000, 0x00000000c0f00000, 0x00000000c4c00000)
  object space 21504K, 11% used [0x00000000bfa00000,0x00000000bfc73740,0x00000000c0f00000)

Card table byte_map: [0x0000000005710000,0x0000000005920000] byte_map_base: 0x0000000005113000

Polling page: 0x0000000000350000

Code Cache  [0x0000000002710000, 0x0000000002980000, 0x0000000005710000)
 total_blobs=186 nmethods=1 adapters=138 free_code_cache=48767Kb largest_free_block=49926272

Compilation events (2 events):
Event: 0.249 Thread 0x0000000008411800    1             java.lang.String::charAt (29 bytes)
Event: 0.261 Thread 0x0000000008411800 nmethod 1 0x0000000002772d10 code [0x0000000002772e40, 0x0000000002772ed8]

GC Heap History (0 events):
No events

Deoptimization events (0 events):
No events

Internal exceptions (3 events):
Event: 0.097 Thread 0x00000000023de000 Threw 0x00000000ec4107c0 at C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jni.cpp:3991
Event: 0.234 Thread 0x00000000023de000 Threw 0x00000000ec497ff8 at C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 2.685 Thread 0x00000000023de000 Threw 0x00000000ec4a93d0 at C:\re\jdk7u51\527\hotspot\src\share\vm\prims\jni.cpp:2608

Events (10 events):
Event: 0.245 loading class 0x0000000002372290
Event: 0.245 loading class 0x0000000002372290 done
Event: 0.247 loading class 0x000000000234ea20
Event: 0.247 loading class 0x000000000234ea20 done
Event: 0.247 loading class 0x000000000235a430
Event: 0.247 loading class 0x000000000235a430 done
Event: 0.248 loading class 0x000000000235a3d0
Event: 0.248 loading class 0x000000000235a3d0 done
Event: 2.684 loading class 0x000000000234ec70
Event: 2.685 loading class 0x000000000234ec70 done

Dynamic libraries:
0x000000013fdf0000 - 0x000000013fe23000 	C:\Program Files\Java\jdk1.7.0_51\bin\javaw.exe
0x0000000077a20000 - 0x0000000077bc9000 	C:\Windows\SYSTEM32\ntdll.dll
0x00000000777c0000 - 0x00000000778df000 	C:\Windows\system32\kernel32.dll
0x000007fefd670000 - 0x000007fefd6dc000 	C:\Windows\system32\KERNELBASE.dll
0x000007fefe760000 - 0x000007fefe83b000 	C:\Windows\system32\ADVAPI32.dll
0x000007fefea60000 - 0x000007fefeaff000 	C:\Windows\system32\msvcrt.dll
0x000007feffa00000 - 0x000007feffa1f000 	C:\Windows\SYSTEM32\sechost.dll
0x000007fefe060000 - 0x000007fefe18d000 	C:\Windows\system32\RPCRT4.dll
0x00000000776c0000 - 0x00000000777ba000 	C:\Windows\system32\USER32.dll
0x000007feff990000 - 0x000007feff9f7000 	C:\Windows\system32\GDI32.dll
0x000007fefdd20000 - 0x000007fefdd2e000 	C:\Windows\system32\LPK.dll
0x000007fefe690000 - 0x000007fefe759000 	C:\Windows\system32\USP10.dll
0x000007fefc030000 - 0x000007fefc224000 	C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac\COMCTL32.dll
0x000007fefe8e0000 - 0x000007fefe951000 	C:\Windows\system32\SHLWAPI.dll
0x000007fefda60000 - 0x000007fefda8e000 	C:\Windows\system32\IMM32.DLL
0x000007fefe580000 - 0x000007fefe689000 	C:\Windows\system32\MSCTF.dll
0x000007fefd530000 - 0x000007fefd561000 	C:\Windows\system32\nvinitx.dll
0x000000000f000000 - 0x000000000f006000 	C:\Program Files\NVIDIA Corporation\CoProcManager\_etoured.dll
0x000007fefa720000 - 0x000007fefa77f000 	C:\Program Files\NVIDIA Corporation\CoProcManager\nvd3d9wrapx.dll
0x000007fefe190000 - 0x000007fefe367000 	C:\Windows\system32\SETUPAPI.dll
0x000007fefda20000 - 0x000007fefda56000 	C:\Windows\system32\CFGMGR32.dll
0x000007feff8b0000 - 0x000007feff987000 	C:\Windows\system32\OLEAUT32.dll
0x000007fefe370000 - 0x000007fefe573000 	C:\Windows\system32\ole32.dll
0x000007fefd720000 - 0x000007fefd73a000 	C:\Windows\system32\DEVOBJ.dll
0x000007fefa6d0000 - 0x000007fefa716000 	C:\Program Files\NVIDIA Corporation\CoProcManager\nvdxgiwrapx.dll
0x00000000787c0000 - 0x0000000078892000 	C:\Program Files\Java\jdk1.7.0_51\jre\bin\msvcr100.dll
0x0000000067400000 - 0x0000000067bc9000 	C:\Program Files\Java\jdk1.7.0_51\jre\bin\server\jvm.dll
0x000007fefae30000 - 0x000007fefae39000 	C:\Windows\system32\WSOCK32.dll
0x000007fefdcd0000 - 0x000007fefdd1d000 	C:\Windows\system32\WS2_32.dll
0x000007feffd20000 - 0x000007feffd28000 	C:\Windows\system32\NSI.dll
0x000007fefd9a0000 - 0x000007fefd9db000 	C:\Windows\system32\WINMM.dll
0x0000000077be0000 - 0x0000000077be7000 	C:\Windows\system32\PSAPI.DLL
0x000000006eb10000 - 0x000000006eb1f000 	C:\Program Files\Java\jdk1.7.0_51\jre\bin\verify.dll
0x00000000673d0000 - 0x00000000673f8000 	C:\Program Files\Java\jdk1.7.0_51\jre\bin\java.dll
0x00000000673b0000 - 0x00000000673c5000 	C:\Program Files\Java\jdk1.7.0_51\jre\bin\zip.dll
0x000007fefb400000 - 0x000007fefb40d000 	D:\VS_Workspace\UseJavaString\x64\Debug\UseJavaString.dll
0x000000000f4f0000 - 0x000000000f6bd000 	C:\Windows\system32\MSVCR100D.dll
0x000007feeefc0000 - 0x000007feef0e5000 	C:\Windows\system32\dbghelp.dll

VM Arguments:
jvm_args: -Dfile.encoding=GBK
java_command: com.anna.MainTest
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk1.7.0_51
CLASSPATH=.;C:\Program Files\Java\jdk1.7.0_51\lib\dt.jar;C:\Program Files\Java\jdk1.7.0_51\lib\tools.jar
PATH=C:/Program Files/Java/jdk1.7.0_51/bin/../jre/bin/server;C:/Program Files/Java/jdk1.7.0_51/bin/../jre/bin;C:/Program Files/Java/jdk1.7.0_51/bin/../jre/lib/amd64;C:\Program Files\Java\jdk1.7.0_51\bin;C:\Program Files\Java\jdk1.7.0_51\jre\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;E:\Android\adt-bundle-windows-x86_64-20131030\sdk\platform-tools;E:\Android\adt-bundle-windows-x86_64-20131030\sdk\tools;E:\Android\adt-bundle-windows-x86_64-20131030\eclipse;
USERNAME=ANNA
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 60 Stepping 3, GenuineIntel

---------------  S Y S T E M  ---------------

OS: Windows 7 , 64 bit Build 7601 Service Pack 1

CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 60 stepping 3, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, erms, ht, tsc, tscinvbit

Memory: 4k page, physical 3878360k(896740k free), swap 7754856k(3510308k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (24.51-b03) for windows-amd64 JRE (1.7.0_51-b13), built on Dec 18 2013 18:40:56 by "java_re" with unknown MS VC++:1600

time: Mon Sep 01 10:45:44 2014
elapsed time: 2 seconds
时间: 2024-11-04 14:59:03

JNI学习中——JVM错误:EXCEPTION_ACCESS_VIOLATION (0xc0000005)的相关文章

启动eclipse时出现“Failed to load the JNI shared library jvm.dll”错误及解决

昨晚安装另一个版本的eclipse,启动时出现了"Failed to load the JNI shared library jvm.dll"错误: 1.刚开始以为是因为当时没有将旧版本删除干净,于是就找了原来的安装目录,并没有发现残留的配置文件以及启动文件什么的: 2.于是猜测,新安装的这个版本目录下没有jvm.dll这个文件,可是发现是存在的: 路径1:C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll(该路径下安装的是32位的J

启动 Eclipse 弹出“Failed to load the JNI shared library jvm.dll”错误的解决方法!

启动 Eclipse 弹出"Failed to load the JNI shared library jvm.dll"错误的解决方法 http://blog.csdn.net/zyz511919766/article/details/7442633   原因1:给定目录下jvm.dll不存在. 对策:(1)重新安装jre或者jdk并配置好环境变量.(2)copy一个jvm.dll放在该目录下. 原因2:eclipse的版本与jre或者jdk版本不一致 对策:要么两者都安装64位的,要

R语言学习中的小bug:R中矩阵相乘错误于A %*% B: 需要数值/复数矩阵/矢量参数

遇到了小bug: R中矩阵相乘错误于A %*% B: 需要数值/复数矩阵/矢量参数 看到网上别人的做法,发现了用class(A)和class(B)之后才发现,是因为读入的时候数据的类型不对,A.B的类型并不是matrix,才导致了这个问题. 用as.matrix来变型一下,就OK了. R语言学习中的小bug:R中矩阵相乘错误于A %*% B: 需要数值/复数矩阵/矢量参数,布布扣,bubuko.com

eclipse启动时弹出Failed to load the JNI shared library jvm.dll的Java错误

原因1:给定目录下jvm.dll不存在. 对策:(1)重新安装jre或者jdk并配置好环境变量.(2)copy一个jvm.dll放在该目录下. 原因2:eclipse的版本与jre或者jdk版本不一致 对策:要么两者都安装64位的,要么都安装32位的,不能一个是32位一个是64位. 原因2的概率更大一些,原因1不太可能发生 eclipse启动时弹出Failed to load the JNI shared library jvm.dll的Java错误,布布扣,bubuko.com eclipse

启动Eclipse 弹出"Failed to load the JNI shared library jvm.dll"错误

启动Eclipse 弹出"Failed to load the JNI shared library jvm.dll"错误,如下 原因:eclipse的版本与jre或者jdk版本不一致 解决方法:两者安装的版本需要一致,需同为32位或者同为64位,不能一个为32(64)位,一个为64(32)位.

启动 Eclipse 弹出“Failed to load the JNI shared library jvm.dll”错误的解决方法!

原因1:给定目录下jvm.dll不存在. 对策:(1)重新安装jre或者jdk并配置好环境变量.(2)copy一个jvm.dll放在该目录下. 原因2:eclipse的版本与jre或者jdk版本不一致 对策:要么两者都安装64位的,要么都安装32位的,不能一个是32位一个是64位. 原因2的概率更大一些,原因1不太可能发生 启动 Eclipse 弹出"Failed to load the JNI shared library jvm.dll"错误的解决方法!

java学习中,异常和错误的简介、捕获异常、抛出异常、自定义异常(java 学习中的小记录)

java学习中,异常和错误的简介.捕获异常.抛出异常.自定义异常(java 学习中的小记录)作者:王可利(Star·星星) 异常:(API 的 java.lang 有一个异常,有很多很多) 在Java程序中也会程序出现不正常的情况,这个就叫异常.     Java是面向对象的语言,任何事物都可以用类来描述,同样的异常也是一种事物.Java中提供了很多的异常类.     多个异常堆积起来,就是一个异常体系.   Throwable:是异常类的父类,超类.Exception 异常.error错误.

Python学习-16.Python中的错误处理

虽然叫错误,但跟 C# 中的异常是一回事.只不过 Python 中叫错误(Error)而 C# 中叫异常(Exception). 先手工产生一个异常: 1 file = open('','r') 上面一句由于路径是空路径,因此文件肯定是不存在的,执行这一句会引发 FileNotFoundError 这个错误. 既然是错误的,程序也停止了,这是我们不希望的,因此得想办法处理一下. 在 Python 中,异常处理使用 try.except.finally 这三个关键字. 修改代码如下: 1 path

JNI学习之Invocation API

本文是对链接http://docs.oracle.com/javase/8/docs/technotes/guides/jni/spec/invocation.html的学习笔记,限于英文水平和对JNI的理解,可能存在错误. 简介 通过使用Invocation API,使用C/C++开发的本地应用可以访问Java虚拟机提供的特性.为了描述简单,下面提到的VM指的都是Java虚拟机. 创建VM 在本地应用里,调用JNI_CreateJavaVM()方法可以完成初始化.加载VM,并返回指向新VM对象