Java应用Crash ! JNI
请高手帮帮忙:
运行时显示错误:
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x02dc12c3, pid=2364, tid=1140
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_11-b06 mixed mode)
# Problematic frame:
# C [aa.dll+0x12c3]
#
# An error report file with more information is saved as hs_err_pid2364.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
hs_err_pid2364.log文件中显示:
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x02dc12c3, pid=2364, tid=1140
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_11-b06 mixed mode)
# Problematic frame:
# C [cscmcoms.dll+0x12c3]
#
--------------- T H R E A D ---------------
Current thread (0x00822380): JavaThread "main" [_thread_in_native, id=1140]
siginfo: ExceptionCode=0xc0000005, writing address 0x30303030
Registers:
EAX=0x30303030, EBX=0x0006d228, ECX=0x0006d210, EDX=0x00000030
ESP=0x0006d0d8, EBP=0x00000001, ESI=0x31303030, EDI=0x0006d144
EIP=0x02dc12c3, EFLAGS=0x00010206
Top of Stack: (sp=0x0006d0d8)
0x0006d0d8: 00aab98c 00aa25ab 0006d210 30303030
0x0006d0e8: 31303030 30303130 30313030 00313030
0x0006d0f8: 01000000 01000000 01000000 30320100
0x0006d108: 31303730 30323130 31303730 30303130
0x0006d118: 30303030 00003130 00000000 00000000
0x0006d128: 00000000 00000000 00000000 00000000
0x0006d138: 00000000 00000000 00000000 00000060
0x0006d148: 00000000 00000002 0006f974 00000002
Instructions: (pc=0x02dc12c3)
0x02dc12b3: 24 10 85 f6 7e 11 8b 44 24 0c 8b 4c 24 08 8a 11
0x02dc12c3: 88 10 40 41 4e 75 f7 5e c3 cc cc cc cc 51 56 8d
Stack: [0x00030000,0x00070000), sp=0x0006d0d8, free space=244k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [cscmcoms.dll+0x12c3]
[error occurred during error reporting, step 120, id 0xc0000005]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j jp.co.hitachi.wms.cmnlib.Jnicore.Sakujo([BLjava/lang/String;II)I+0
j jp.co.hitachi.wms.cmnlib.Jnicore.sakujo(Ljava/lang/String;II)[B+11
j jp.co.hitachi.wms.commons.MfileStruct.sakujo(Ljava/lang/String;)I+15
j jp.co.hitachi.wms.test.WmsTest.testSakujo()V+359
j jp.co.hitachi.wms.test.WmsTest.main([Ljava/lang/String;)V+0
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x0082fe60 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2212]
0x0082ea90 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1976]
0x0082bc30 JavaThread "Finalizer" daemon [_thread_blocked, id=3792]
0x0082a890 JavaThread "Reference Handler" daemon [_thread_blocked, id=1816]
=>0x00822380 JavaThread "main" [_thread_in_native, id=1140]
Other Threads:
0x00829ab0 VMThread [id=2352]
0x00831f70 WatcherThread [id=3076]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 576K, used 282K [0x10010000, 0x100b0000, 0x104f0000)
eden space 512K, 55% used [0x10010000, 0x10056870, 0x10090000)
from space 64K, 0% used [0x10090000, 0x10090000, 0x100a0000)
to space 64K, 0% used [0x100a0000, 0x100a0000, 0x100b0000)
tenured generation total 1408K, used 0K [0x104f0000, 0x10650000, 0x14010000)
the space 1408K, 0% used [0x104f0000, 0x104f0000, 0x104f0200, 0x10650000)
compacting perm gen total 4096K, used 1227K [0x14010000, 0x14410000, 0x18010000)
the space 4096K, 29% used [0x14010000, 0x14142ff8, 0x14143000, 0x14410000)
................