java调用dll,jvm崩溃。。。

不是小白 发布于 2012/09/21 13:42
阅读 4K+
收藏 1

异常信息如下,求大婶 啊。。。

#

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

#

#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x67bc3446, pid=18568, tid=18976

#

# JRE version: 6.0_34-b04

# Java VM: Java HotSpot(TM) Client VM (20.9-b04 mixed mode, sharing windows-x86 )

# Problematic frame:

# C  [AlgorithmDll.dll+0x33446]

#

# 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 (0x00d99000):  JavaThread "main" [_thread_in_native, id=18976, stack(0x00390000,0x003e0000)]

 

siginfo: ExceptionCode=0xc0000005, reading address 0x00000000

 

Registers:

EAX=0x00000000, EBX=0x0576dcd0, ECX=0x728e3c3a, EDX=0x0576e380

ESP=0x003dcf40, EBP=0x0576dcf0, ESI=0x728e3b4e, EDI=0x00000000

EIP=0x67bc3446, EFLAGS=0x00010202

 

Top of Stack: (sp=0x003dcf40)

0x003dcf40:   0576dc50 0576dc70 728e3d3f 0576dcb0

0x003dcf50:   003dcf70 003dcf94 728e68fe 05880000

0x003dcf60:   00000001 00000004 00000001 00000002

0x003dcf70:   00000002 0576dc90 0576dc30 00000002

0x003dcf80:   000000f8 0576e360 728ecf5e 00000002

0x003dcf90:   fffffffe 728e6957 00000005 00000005

0x003dcfa0:   00000002 00000010 0576dc70 003dcfcc

0x003dcfb0:   00000004 05880000 00000000 00000008 

 

Instructions: (pc=0x67bc3446)

0x67bc3426:   8b 3b d9 44 b1 fc d9 1c 87 40 3b c2 7e ec 8b 35

0x67bc3436:   8c b0 bd 67 80 7b 10 00 8b 53 04 8b 3a 8b 45 00

0x67bc3446:   8b 08 8b 54 24 34 8b 02 d9 44 88 fc 89 7c 24 4c

0x67bc3456:   d9 5c 24 50 74 08 8b 0b 51 ff d6 83 c4 04 8b 53 

 

 

Register to memory mapping:

 

EAX=0x00000000 is an unknown value

EBX=0x0576dcd0 is an unknown value

ECX=0x728e3c3a is an unknown value

EDX=0x0576e380 is an unknown value

ESP=0x003dcf40 is pointing into the stack for thread: 0x00d99000

EBP=0x0576dcf0 is an unknown value

ESI=0x728e3b4e is an unknown value

EDI=0x00000000 is an unknown value

 

 

Stack: [0x00390000,0x003e0000],  sp=0x003dcf40,  free space=307k

Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)

C  [AlgorithmDll.dll+0x33446]  generate_short_prediction+0x30d56

 

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)

j  com.dne.distributed.jni.Calculate.superShortAlg(Ljava/lang/String;[F[F[F[F[F[F[F[F[F[F[F[F[FLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;+0

j  com.dne.distributed.jni.CalOnJni.superShortAlg(Ljava/util/List;Ljava/util/List;Lcom/dne/distributed/vo/taskInfo/TaskReadyInfo;)Ljava/lang/String;+692

j  com.dne.distributed.Start.superShortCal(Lcom/dne/distributed/vo/taskInfo/TaskReadyInfo;)V+493

j  com.dne.distributed.Start.main([Ljava/lang/String;)V+246

v  ~StubRoutines::call_stub

 

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

 

Java Threads: ( => current thread )

  0x04ca2800 JavaThread "RcvThread: com.ibm.mq.jmqi.remote.internal.RemoteTCPConnection[qmid=queue.manager_2012-08-29_09.27.20               ,fap=10,peer=/172.16.34.195,localport=6250,ssl=no]" daemon [_thread_in_native, id=16720, stack(0x054a0000,0x054f0000)]

  0x04bbf400 JavaThread "WebSphere MQ Trace Monitor" daemon [_thread_blocked, id=12724, stack(0x04e70000,0x04ec0000)]

  0x00ced000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=19312, stack(0x049f0000,0x04a40000)]

  0x00ce8c00 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=20184, stack(0x04960000,0x049b0000)]

  0x00ce7800 JavaThread "Attach Listener" daemon [_thread_blocked, id=19560, stack(0x048d0000,0x04920000)]

  0x00ce4800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=14284, stack(0x04840000,0x04890000)]

  0x00cdbc00 JavaThread "Finalizer" daemon [_thread_blocked, id=19852, stack(0x047b0000,0x04800000)]

  0x00cd9400 JavaThread "Reference Handler" daemon [_thread_blocked, id=20252, stack(0x04720000,0x04770000)]

=>0x00d99000 JavaThread "main" [_thread_in_native, id=18976, stack(0x00390000,0x003e0000)]

 

Other Threads:

  0x00c9d800 VMThread [stack: 0x04690000,0x046e0000] [id=17188]

  0x00d0dc00 WatcherThread [stack: 0x04a80000,0x04ad0000] [id=19952]

 

VM state:not at safepoint (normal execution)

 

VM Mutex/Monitor currently owned by a thread: None

 

Heap

 def new generation   total 4928K, used 2999K [0x24520000, 0x24a70000, 0x29a70000)

  eden space 4416K,  65% used [0x24520000, 0x247f21a8, 0x24970000)

  from space 512K,  21% used [0x249f0000, 0x24a0bc30, 0x24a70000)

  to   space 512K,   0% used [0x24970000, 0x24970000, 0x249f0000)

 tenured generation   total 10944K, used 2368K [0x29a70000, 0x2a520000, 0x34520000)

   the space 10944K,  21% used [0x29a70000, 0x29cc02c8, 0x29cc0400, 0x2a520000)

 compacting perm gen  total 12288K, used 5372K [0x34520000, 0x35120000, 0x38520000)

   the space 12288K,  43% used [0x34520000, 0x34a5f170, 0x34a5f200, 0x35120000)

    ro space 10240K,  54% used [0x38520000, 0x38a9f558, 0x38a9f600, 0x38f20000)

    rw space 12288K,  55% used [0x38f20000, 0x395c32a8, 0x395c3400, 0x39b20000)

 

Code Cache  [0x024c0000, 0x025c8000, 0x044c0000)

 total_blobs=454 nmethods=307 adapters=83 free_code_cache=32496832 largest_free_block=192

 

Dynamic libraries:

0x00400000 - 0x00425000 D:\Program Files (x86)\Java\jdk1.6.0_34\bin\java.exe

0x77730000 - 0x778b0000 C:\Windows\SysWOW64\ntdll.dll

0x75cd0000 - 0x75de0000 C:\Windows\syswow64\kernel32.dll

0x76680000 - 0x766c6000 C:\Windows\syswow64\KERNELBASE.dll

0x764e0000 - 0x76580000 C:\Windows\syswow64\ADVAPI32.dll

0x76c10000 - 0x76cbc000 C:\Windows\syswow64\msvcrt.dll

0x764c0000 - 0x764d9000 C:\Windows\SysWOW64\sechost.dll

0x76230000 - 0x76320000 C:\Windows\syswow64\RPCRT4.dll

0x74e10000 - 0x74e70000 C:\Windows\syswow64\SspiCli.dll

0x74e00000 - 0x74e0c000 C:\Windows\syswow64\CRYPTBASE.dll

0x7c340000 - 0x7c396000 D:\Program Files (x86)\Java\jdk1.6.0_34\jre\bin\msvcr71.dll

0x6d8c0000 - 0x6db6f000 D:\Program Files (x86)\Java\jdk1.6.0_34\jre\bin\client\jvm.dll

0x74e70000 - 0x74f70000 C:\Windows\syswow64\USER32.dll

0x76aa0000 - 0x76b30000 C:\Windows\syswow64\GDI32.dll

0x75df0000 - 0x75dfa000 C:\Windows\syswow64\LPK.dll

0x76580000 - 0x7661d000 C:\Windows\syswow64\USP10.dll

0x748b0000 - 0x748e2000 C:\Windows\system32\WINMM.dll

0x75f70000 - 0x75fd0000 C:\Windows\system32\IMM32.DLL

0x75c00000 - 0x75ccc000 C:\Windows\syswow64\MSCTF.dll

0x72260000 - 0x722ac000 C:\Windows\system32\apphelp.dll

0x6d870000 - 0x6d87c000 D:\Program Files (x86)\Java\jdk1.6.0_34\jre\bin\verify.dll

0x6d3d0000 - 0x6d3ef000 D:\Program Files (x86)\Java\jdk1.6.0_34\jre\bin\java.dll

0x6d8b0000 - 0x6d8bf000 D:\Program Files (x86)\Java\jdk1.6.0_34\jre\bin\zip.dll

0x6d6b0000 - 0x6d6c3000 D:\Program Files (x86)\Java\jdk1.6.0_34\jre\bin\net.dll

0x75f30000 - 0x75f65000 C:\Windows\syswow64\WS2_32.dll

0x77700000 - 0x77706000 C:\Windows\syswow64\NSI.dll

0x72c90000 - 0x72ccc000 C:\Windows\system32\mswsock.dll

0x73ed0000 - 0x73ed6000 C:\Windows\System32\wship6.dll

0x72b50000 - 0x72b60000 C:\Windows\system32\NLAapi.dll

0x72b40000 - 0x72b50000 C:\Windows\system32\napinsp.dll

0x72b20000 - 0x72b32000 C:\Windows\system32\pnrpnsp.dll

0x72c40000 - 0x72c84000 C:\Windows\system32\DNSAPI.dll

0x72b10000 - 0x72b18000 C:\Windows\System32\winrnr.dll

0x72b00000 - 0x72b0d000 C:\Windows\system32\wshbth.dll

0x721d0000 - 0x721d5000 C:\Windows\System32\wshtcpip.dll

0x74a80000 - 0x74a9c000 C:\Windows\system32\IPHLPAPI.DLL

0x74a70000 - 0x74a77000 C:\Windows\system32\WINNSI.DLL

0x72af0000 - 0x72af6000 C:\Windows\system32\rasadhlp.dll

0x71840000 - 0x71878000 C:\Windows\System32\fwpuclnt.dll

0x74860000 - 0x74876000 C:\Windows\system32\CRYPTSP.dll

0x72fa0000 - 0x72fdb000 C:\Windows\system32\rsaenh.dll

0x74be0000 - 0x74bf7000 C:\Windows\system32\USERENV.dll

0x74bd0000 - 0x74bdb000 C:\Windows\system32\profapi.dll

0x6b9b0000 - 0x6b9e7000 C:\Users\yang\Desktop\jar\dll\AlgorithmGate.dll

0x69790000 - 0x697da000 C:\Windows\SYSTEM32\MSCOREE.DLL

0x72880000 - 0x72923000 C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\MSVCR90.dll

0x70990000 - 0x70a1e000 C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\MSVCP90.dll

0x68470000 - 0x684b3000 C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\msvcm90.dll

0x75fd0000 - 0x7612c000 C:\Windows\syswow64\ole32.dll

0x68210000 - 0x68277000 C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll

0x76760000 - 0x767b7000 C:\Windows\syswow64\SHLWAPI.dll

0x62700000 - 0x62cab000 C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll

0x74c00000 - 0x74c9b000 C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_d09154e044272b9a\MSVCR80.dll

0x74fb0000 - 0x75bfa000 C:\Windows\syswow64\shell32.dll

0x61c00000 - 0x626f8000 C:\Windows\assembly\NativeImages_v2.0.50727_32\mscorlib\acfc1391e45fedd2a359778ea57d914c\mscorlib.ni.dll

0x68410000 - 0x6846b000 C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorjit.dll

0x67b90000 - 0x67be0000 C:\Users\yang\Desktop\jar\dll\AlgorithmDll.dll

0x67b40000 - 0x67b88000 C:\Windows\assembly\GAC_MSIL\mscorlib.resources\2.0.0.0_zh-CHS_b77a5c561934e089\mscorlib.resources.dll

0x75de0000 - 0x75de5000 C:\Windows\system32\PSAPI.DLL

 

VM Arguments:

java_command: worker.jar

Launcher Type: SUN_STANDARD

 

Environment Variables:

JAVA_HOME=D:\Program Files (x86)\Java\jdk1.6.0_34

PATH=D:\app\yang\product\11.2.0\client_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;D:\Program Files (x86)\Windows7Master;D:\Program Files (x86)\Java\jdk1.6.0_34\bin;D:\Program Files (x86)\TortoiseSVN\bin;D:\Program Files (x86)\MySQL\MySQL Server 5.5\bin;D:\Program Files (x86)\Java\jdk1.6.0_34\bin;D:\Program Files (x86)\WinSCP\

USERNAME=yang

OS=Windows_NT

PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, 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 42 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht

 

Memory: 4k page, physical 6139760k(2585912k free), swap 12277668k(7478720k free)

 

vm_info: Java HotSpot(TM) Client VM (20.9-b04) for windows-x86 JRE (1.6.0_34-b04), built on Jul 19 2012 00:46:28 by "java_re" with MS VC++ 7.1 (VS2003)

 

time: Fri Sep 21 12:22:09 2012

elapsed time: 262 seconds

 

加载中
0
寂寞的大师
寂寞的大师
目测异常了
0
mallon
mallon
哈哈碰地雷了,早就说过这样做很不可靠
不是小白
不是小白
求解决。。。
0
mallon
mallon
进程输入输出,网络交互…反正不要直接调DLL
不是小白
不是小白
回复 @Mallon :额,我没说清楚,客户要求直接用jni调用dll...
mallon
mallon
回复 @不是白云 : 用C或者C++写个程序调DLL,再和Java程序通信
不是小白
不是小白
客户要求。。。
0
mallon
不是小白
不是小白
额,jna当初我们提出用,然后客户非要用jni。。。说熟悉jni,便于控制。。。
0
姑妄听之
姑妄听之

从来都看不懂JVM崩溃的这种报告。。。不过看到这句“siginfo: ExceptionCode=0xc0000005, reading address 0x00000000”我纯粹的瞎猜啊。。。你是不是访问了一个还没有new过的变量啊?

我遇到这样的问题(JVM崩溃),一般都是做一个C++的程序去使用那个DLL,然后就能各种的DEBUG了。

不是小白
不是小白
嗯,明天问问提供dll算法的人。
0
小白小霸王
小白小霸王
这种问题很可能是代码问题,jvm bug 的可能性很小
不是小白
不是小白
是DLL算法的问题。
0
猫咪不睡
猫咪不睡

%>_<%我也碰到这个问题了

还不清楚该怎么解决

返回顶部
顶部