Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/290.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 异常访问冲突_Java_Java Native Interface - Fatal编程技术网

Java 异常访问冲突

Java 异常访问冲突,java,java-native-interface,Java,Java Native Interface,我遵循了这里的教程。 (2.1步骤)顺便说一句,我将Cygwin与GCC v4一起使用 完成教程后,我收到一个错误。 我已经尝试重新安装Java。我降低了UAC中的级别 有什么想法吗 A fatal error has been detected by the Java Runtime Environment: EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000001801238e7, pid=2232, tid=5880 JRE v

我遵循了这里的教程。 (2.1步骤)顺便说一句,我将Cygwin与GCC v4一起使用

完成教程后,我收到一个错误。 我已经尝试重新安装Java。我降低了UAC中的级别

有什么想法吗

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

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000001801238e7, pid=2232, tid=5880

 JRE version: 6.0_45-b06
 Java VM: Java HotSpot(TM) 64-Bit Server VM (20.45-b01 mixed mode windows-amd64 compressed oops)
Problematic frame:
C  [cygwin1.dll+0xe38e7]

If you would like to submit a bug report, please visit:
http://java.sun.com/webapps/bugreport/crash.jsp
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.


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

Current thread (0x00000000008db800):  JavaThread "main" [_thread_in_native, id=5880, stack(0x00000000024b0000,0x00000000025b0000)]

siginfo: ExceptionCode=0xc0000005, writing address 0x0000000000000000

Registers:
RAX=0x0000000000000000, RBX=0x000000077fc77920, RCX=0x0000000491123030, RDX=0x00000000025afa28
RSP=0x00000000025af960, RBP=0x00000000025af990, RSI=0x000000077fc77628, RDI=0x0000000020000021
R8 =0x0000000000000001, R9 =0x0000000000000002, R10=0x00000000025b0000, R11=0x00000004911210ac
R12=0x0000000000000000, R13=0x000000077fc77920, R14=0x00000000025afa28, R15=0x00000000008db800
RIP=0x00000001801238e7, EFLAGS=0x0000000000010202

Top of Stack: (sp=0x00000000025af960)
0x00000000025af960:   000000018018e680 00000001801238fb
0x00000000025af970:   000000077fc77920 00000000025afa08
0x00000000025af980:   000000077fc77628 0000000020000021
0x00000000025af990:   00000000025afa08 00000000029c1386
0x00000000025af9a0:   00000000008db9d0 00000000025afa28
0x00000000025af9b0:   00000000025af900 00000000008db800
0x00000000025af9c0:   00000000029b5b22 00000000025af9c8
0x00000000025af9d0:   000000077fc77920 00000000025afa28
0x00000000025af9e0:   000000077fc77e40 0000000000000000
0x00000000025af9f0:   000000077fc77920 0000000000000000
0x00000000025afa00:   00000000025afa28 00000000025afa70
0x00000000025afa10:   00000000029b5b22 0000000000000000
0x00000000025afa20:   00000000029be358 00000007d6ee2228
0x00000000025afa30:   00000000025afa30 000000077fc77a07
0x00000000025afa40:   00000000025afa80 000000077fc77e40
0x00000000025afa50:   0000000000000000 000000077fc77a10 

Instructions: (pc=0x00000001801238e7)
0x00000001801238c7:   04 f3 90 eb e3 48 c7 c0 08 00 00 00 49 0f c1 82
0x00000001801238d7:   f0 e3 ff ff 4c 8d 1d 19 00 00 00 4c 87 5c 24 08
0x00000001801238e7:   4c 89 18 41 ff 82 e4 e3 ff ff 41 ff 8a ec e3 ff
0x00000001801238f7:   ff 58 ff e0 65 4c 8b 14 25 08 00 00 00 41 bb 01 


Register to memory mapping:

RAX=0x0000000000000000 is an unknown value
RBX=0x000000077fc77920 is an oop
{method} 
- klass: {other class}
RCX=0x0000000491123030 is an unknown value
RDX=0x00000000025afa28 is pointing into the stack for thread: 0x00000000008db800
RSP=0x00000000025af960 is pointing into the stack for thread: 0x00000000008db800
RBP=0x00000000025af990 is pointing into the stack for thread: 0x00000000008db800
RSI=0x000000077fc77628 is an oop
{constant pool} 
- klass: {other class}
- cache: 0x000000077fc77e40
-   1 :  : klass_index=7 name_and_type_index=18
-   2 :  : 'HelloJNI' {0x7fc77b78}
-   3 :  : klass_index=2 name_and_type_index=18
-   4 :  : klass_index=2 name_and_type_index=20
-   5 :  : "hello" {0x7fc77ee8}
-   6 :  : klass_index=22 name_and_type_index=23
-   7 :  : 'java/lang/Object' {0x7fa08e58}
-   8 :  : '<init>'
-   9 :  : '()V'
-  10 :  : 'Code'
-  11 :  : 'LineNumberTable'
-  12 :  : 'sayHello'
-  13 :  : 'main'
-  14 :  : '([Ljava/lang/String;)V'
-  15 :  : '<clinit>'
-  16 :  : 'SourceFile'
-  17 :  : 'HelloJNI.java'
-  18 :  : name_index=8 signature_index=9
-  19 :  : 'HelloJNI'
-  20 :  : name_index=12 signature_index=9
-  21 :  : 'hello'
-  22 :  : 'java/lang/System' {0x7fa2fac8}
-  23 :  : name_index=26 signature_index=27
-  24 :  : 'java/lang/Object'
-  25 :  : 'java/lang/System'
-  26 :  : 'loadLibrary'
-  27 :  : '(Ljava/lang/String;)V'

RDI=0x0000000020000021 is an unknown value
R8 =0x0000000000000001 is an unknown value
R9 =0x0000000000000002 is an unknown value
R10=0x00000000025b0000 is pointing into the stack for thread: 0x00000000008db800
R11=0x00000004911210ac is an unknown value
R12=0x0000000000000000 is an unknown value
R13=0x000000077fc77920 is an oop
{method} 
- klass: {other class}
R14=0x00000000025afa28 is pointing into the stack for thread: 0x00000000008db800
R15=0x00000000008db800 is a thread


Stack: [0x00000000024b0000,0x00000000025b0000],  sp=0x00000000025af960,  free space=1022k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [cygwin1.dll+0xe38e7]  issetugid+0xff47
j  HelloJNI.sayHello()V+0
j  HelloJNI.main([Ljava/lang/String;)V+7
v  ~StubRoutines::call_stub
V  [jvm.dll+0x1eac57]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  HelloJNI.sayHello()V+0
j  HelloJNI.main([Ljava/lang/String;)V+7
v  ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
0x0000000006d1f000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=7104, stack(0x00000000072b0000,0x00000000073b0000)]
0x0000000006d1c800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=7144, stack(0x00000000071b0000,0x00000000072b0000)]
0x0000000006d0a000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=7116, stack(0x00000000070b0000,0x00000000071b0000)]
0x0000000006d07000 JavaThread "Attach Listener" daemon [_thread_blocked, id=4148, stack(0x0000000006fb0000,0x00000000070b0000)]
0x0000000006cb1000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6576, stack(0x0000000006eb0000,0x0000000006fb0000)]
0x00000000007dc000 JavaThread "Finalizer" daemon [_thread_blocked, id=7088, stack(0x0000000006bb0000,0x0000000006cb0000)]
0x00000000007d4000 JavaThread "Reference Handler" daemon [_thread_blocked, id=5632, stack(0x0000000006ab0000,0x0000000006bb0000)]
=>0x00000000008db800 JavaThread "main" [_thread_in_native, id=5880, stack(0x00000000024b0000,0x00000000025b0000)]

Other Threads:
 0x00000000007cc000 VMThread [stack: 0x00000000069b0000,0x0000000006ab0000] [id=6764]
 0x0000000006d31000 WatcherThread [stack: 0x00000000073b0000,0x00000000074b0000] [id=2844]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
PSYoungGen      total 36800K, used 631K [0x00000007d6eb0000, 0x00000007d97c0000, 0x0000000800000000)
eden space 31552K, 2% used [0x00000007d6eb0000,0x00000007d6f4dc38,0x00000007d8d80000)
from space 5248K, 0% used [0x00000007d92a0000,0x00000007d92a0000,0x00000007d97c0000)
to   space 5248K, 0% used [0x00000007d8d80000,0x00000007d8d80000,0x00000007d92a0000)
PSOldGen        total 84160K, used 0K [0x0000000784c00000, 0x0000000789e30000, 0x00000007d6eb0000)
object space 84160K, 0% used [0x0000000784c00000,0x0000000784c00000,0x0000000789e30000)
PSPermGen       total 21248K, used 2527K [0x000000077fa00000, 0x0000000780ec0000, 0x0000000784c00000)
object space 21248K, 11% used [0x000000077fa00000,0x000000077fc77f60,0x0000000780ec0000)

Code Cache  [0x00000000029b0000, 0x0000000002c20000, 0x00000000059b0000)
total_blobs=153 nmethods=0 adapters=120 free_code_cache=49951360 largest_free_block=0

Dynamic libraries:
0x0000000000400000 - 0x000000000042f000     C:\windows\system32\java.exe
0x0000000077920000 - 0x0000000077ac9000     C:\windows\SYSTEM32\ntdll.dll
0x0000000077800000 - 0x000000007791f000     C:\windows\system32\kernel32.dll
0x000007fefd800000 - 0x000007fefd86c000     C:\windows\system32\KERNELBASE.dll
0x0000000075480000 - 0x0000000075507000     C:\windows\System32\SYSFER.DLL
0x000007fefe380000 - 0x000007fefe45b000     C:\windows\system32\ADVAPI32.dll
0x000007fefe4f0000 - 0x000007fefe58f000     C:\windows\system32\msvcrt.dll
0x000007fefdb20000 - 0x000007fefdb3f000     C:\windows\SYSTEM32\sechost.dll
0x000007feff6a0000 - 0x000007feff7cd000     C:\windows\system32\RPCRT4.dll
0x000000006d830000 - 0x000000006dfec000     C:\Program Files\Java\jre6\bin\server\jvm.dll
0x0000000077700000 - 0x00000000777fa000     C:\windows\system32\USER32.dll
0x000007feff320000 - 0x000007feff387000     C:\windows\system32\GDI32.dll
0x000007feff820000 - 0x000007feff82e000     C:\windows\system32\LPK.dll
0x000007fefdc20000 - 0x000007fefdce9000     C:\windows\system32\USP10.dll
0x000007fefb2a0000 - 0x000007fefb2db000     C:\windows\system32\WINMM.dll
0x000007feff670000 - 0x000007feff69e000     C:\windows\system32\IMM32.DLL
0x000007fefdfe0000 - 0x000007fefe0e9000     C:\windows\system32\MSCTF.dll
0x000000006d7a0000 - 0x000000006d7ae000     C:\Program Files\Java\jre6\bin\verify.dll
0x000000006d3c0000 - 0x000000006d3e7000     C:\Program Files\Java\jre6\bin\java.dll
0x000000006d7f0000 - 0x000000006d802000     C:\Program Files\Java\jre6\bin\zip.dll
0x0000000491120000 - 0x0000000491138000     C:\MHBK\JNI3\hello.dll
0x0000000180040000 - 0x0000000180610000     C:\cygwin64\bin\cygwin1.dll
0x0000000077af0000 - 0x0000000077af7000     C:\windows\system32\PSAPI.DLL

VM Arguments:
java_command: HelloJNI
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_45\bin
JRE_HOME=C:\Program Files\Java\jre6
PATH=C:\cygwin64\usr\local\bin;C:\cygwin64\bin;C:\windows\system32 C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0;C:\Program Files\IBM\Infoprint Select;C:\Program Files\ThinkPad\Bluetooth Software;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Program Files (x86)\Lenovo\Access Connections;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Java\jdk1.6.0_45\bin;C:\cygwin64\bin;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Program Files\Java\jdk1.6.0_45\bin;C:\Program Files\Java\jre6\bin
USERNAME= *________*
SHELL=/bin/bash
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, 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 58     stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht

Memory: 4k page, physical 8077104k(5526276k free), swap 16152344k(13452236k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (20.45-b01) for windows-amd64 JRE (1.6.0_45-b06), built on Apr  1 2013 12:31:37 by "java_re" with MS VC++ 8.0 (VS2005)

time: Wed Jun 10 03:25:35 2015
elapsed time: 0 seconds
Java运行时环境检测到致命错误:
pc=0x00000001801238e7、pid=2232、tid=5880时的异常访问违反(0xc0000005)
JRE版本:6.0_45-b06
Java虚拟机:Java热点(TM)64位服务器虚拟机(20.45-b01混合模式windows-amd64压缩oops)
有问题的框架:
C[cygwin1.dll+0xe38e7]
如果您想提交错误报告,请访问:
http://java.sun.com/webapps/bugreport/crash.jsp
崩溃发生在Java虚拟机外部的本机代码中。
有关报告错误的位置,请参见问题框。
---------------R E A D---------------
当前线程(0x00000000008db800):JavaThread“main”[\u本地线程,id=5880,堆栈(0x00000000024b0000,0x00000000025b0000)]
siginfo:ExceptionCode=0xc0000005,写入地址0x0000000000000000
登记册:
RAX=0x0000000000000000,RBX=0x000000077fc77920,RCX=0x0000000491123030,RDX=0x00000000025afa28
RSP=0x00000000025af960,RBP=0x00000000025af990,RSI=0x000000077fc77628,RDI=0x0000000021
R8=0x0000000000000001,R9=0x0000000000000002,R10=0x00000000025b0000,R11=0x00000004911210ac
R12=0x0000000000000000,R13=0x000000077fc77920,R14=0x00000000025afa28,R15=0x00000000008db800
RIP=0x00000001801238e7,EFLAGS=0x000000000010202
堆栈顶部:(sp=0x00000000025af960)
0x00000000025af960:0000000 18018E680 0000000 1801238FB
0x00000000025af970:0000000 77FC77920 000000000 25AFA08
0x00000000025af980:0000000 77FC77628 00000000 20000021
0x00000000025af990:000000000 25AFA08 000000000 29C1386
0x00000000025af9a0:0000000000 8DB9D0000000000 25AFA28
0x00000000025af9b0:000000000 25AF900 0000000000 8DB800
0x00000000025af9c0:000000000 29B5B22 000000000 25AF9C8
0x00000000025af9d0:0000000 77FC77920 000000000 25AFA28
0x00000000025af9e0:0000000 77FC77E40 0000000000000000
0x00000000025af9f0:0000000 77FC77920 0000000000000000
0x00000000025afa00:000000000 25AFA28 000000000 25AFA70
0x00000000025afa10:000000000 29B5B22 0000000000000000
0x00000000025afa20:000000000 29BE358000000000 7D6EE2228
0x00000000025afa30:000000000 25AFA30 0000000 77FC77A07
0x00000000025afa40:000000000 25AFA80 0000000 77FC77E40
0x00000000025afa50:0000000000000000000077FC77A10
说明:(pc=0x00000001801238e7)
0x00000001801238c7:04 f3 90 eb e3 48 c7 c0 08 00 00 00 49 0f c1 82
0x00000001801238d7:F0E3 ff ff 4c 8d 1d 19 00 00 00 4c 87 5c 24 08
0x00000001801238e7:4c 89 18 41 ff 82 e4 e3 ff 41 ff 8a ec e3 ff
0x00000001801238f7:ff 58 ff e0 65 4c 8b 14 25 08 00 00 41 bb 01
寄存器到内存映射:
RAX=0x0000000000000000是未知值
RBX=0x000000077fc77920是一个oop
{method}
-克拉斯:{其他类}
RCX=0x0000000491123030是未知值
RDX=0x00000000025afa28指向线程0x00000000008db800的堆栈
RSP=0x00000000025af960指向线程0x00000000008db800的堆栈
RBP=0x00000000025af990指向线程0x00000000008db800的堆栈
RSI=0x000000077fc77628是一个oop
{常量池}
-克拉斯:{其他类}
-缓存:0x000000077fc77e40
-1::klass_index=7 name_和_type_index=18
-2::'HelloJNI'{0x7fc77b78}
-3::klass_index=2 name_和_type_index=18
-4::klass_index=2 name_和_type_index=20
-5::“你好”{0x7fc77ee8}
-6::klass_索引=22名称_和类型_索引=23
-7::'java/lang/Object'{0x7fa08e58}
-   8 :  : ''
-9::“()V”
-10::“代码”
-11::“LineNumberTable”
-12::“你好”
-13::“主要”
-14::“([Ljava/lang/String;)V”
-  15 :  : ''
-16::“源文件”
-17::“HelloJNI.java”
-18::名称索引=8签名索引=9
-19::“HelloJNI”
-20::姓名索引=12签名索引=9
-21::“你好”
-22::'java/lang/System'{0x7fa2fac8}
-23::姓名索引=26签名索引=27
-24::“java/lang/Object”
-25::“java/lang/System”
-26::“加载库”
-27::'(Ljava/lang/String;)V'
RDI=0x0000000020000021是未知值
R8=0x0000000000000001是未知值
R9=0x0000000000000002是未知值
R10=0x00000000025b0000指向线程0x00000000008db800的堆栈
R11=0x00000004911210ac是未知值
R12=0x0000000000000000是未知值
R13=0x000000077fc77920是一个oop
{method}
-克拉斯:{其他类}
R14=0x00000000025afa28指向线程0x00000000008db800的堆栈
R15=0x00000000008db800是一个线程
堆栈:[0x00000000024b0000,0x00000000025b0000],sp=0x00000000025af960,可用空间=1022k
本机框架:(J=编译的Java代码,J=解释的,Vv=虚拟机代码,C=本机代码)
C[cygwin1.dll+0xe38e7]是setugid+0xff47
j HelloJNI.sayHello()V+0
jhellojni.main([Ljava/lang/String;)V+7
v~StubRoutines::调用_stub
V[jvm.dll+0x1eac57]
Java框架:(J=编译的Java代码,J=解释的,Vv=虚拟机代码)
j HelloJNI.sayHello()V+0
jhellojni.main([Ljava/lang/String;)V+7
v~StubRoutines::调用_stub
---------------P R O C E S---------------
Java线程:(=>当前线程)
0x0000000006d1f000 JavaThread“低内存检测器”守护程序[_thread_blocked,id=7104,堆栈(0x00000000072b0000,0x00000000073b0000)]
0x0000000006d1c800 JavaThread“C2编译器线程1”守护程序[_thread_blocked,id=7144,堆栈(0x00000000071b0000,0x00000000072b0000)]
0x0000000006d0a000 JavaThread“C2编译器线程0”守护程序[_thread_blocked,id=7116,堆栈(0x00000000070b0000,0x00000000071b0000)]
0x0000000006d07000 JavaThread“Attach Listener”守护程序[_thread_blocked,id=4148,堆栈(0x0000000006fb0000,0x00000000070b0000)]
0x0000000006cb1000 JavaThread“信号分配器”守护程序[_thread_blocked,id=6576,stack(0x0000000006eb0000,0x0000000006fb0000)]
0x00000000007dc000 JavaThread“Finalizer”守护程序[_thread_blocked,id=7088,stack(0x0000000006bb0000,0x0000000006cb0000)]
0x00000000007d4000 JavaThread“参考Ha