Menu

#1 JVM crashes at native code level

open
nobody
None
5
2009-04-20
2009-04-20
Anonymous
No

I have being using JMSMQ for exchanging messages with MSMQ 3.0 with JDK 1.6. It was working fine for much of the time.

I am seeing frequent crashes of JVM at native code level. Following output shows the summary of crash:

------------------------------------------------------------------
#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c82c842, pid=752, tid=6688
#
# Java VM: Java HotSpot(TM) Client VM (11.2-b01 mixed mode windows-x86)
# Problematic frame:
# C [ntdll.dll+0x2c842]
#
# 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 (0x1b360400): JavaThread "QUEUE2" [_thread_in_native, id=6688, stack(0x1c170000,0x1c270000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x000f0162

Registers:
EAX=0x00330200, EBX=0x00330000, ECX=0x000f0162, EDX=0x00330178
ESP=0x1c26f624, EBP=0x1c26f840, ESI=0x000f015a, EDI=0x00000002
EIP=0x7c82c842, EFLAGS=0x00010216

Top of Stack: (sp=0x1c26f624)
0x1c26f624: 00000000 00000000 7c829fd6 615328bd
0x1c26f634: 00000000 1c26f714 77c7ec68 00166914
0x1c26f644: 00166a68 77c80cfd 00166b4c 0016c450
0x1c26f654: 00000001 1c26f6ac 00000000 00000000
0x1c26f664: 1c26f674 77c80c59 0016c508 00166a68
0x1c26f674: 1c26f68c 77c80c2c 00166a68 1c26f714
0x1c26f684: 00166a68 0016c450 1c26f698 77c80be7
0x1c26f694: 1c26f714 1c26f6a4 77c805b3 1c26f6e8

Instructions: (pc=0x7c82c842)
0x7c82c832: c2 89 45 d4 8b 70 04 83 ee 08 89 75 cc 8d 4e 08
0x7c82c842: 8b 39 89 bd 28 ff ff ff 8b 46 0c 89 85 6c ff ff

Stack: [0x1c170000,0x1c270000], sp=0x1c26f624, free space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [ntdll.dll+0x2c842]
C [msvcrt.dll+0x1d08c]
C [jmsmq.dll+0x22d1]
J net.sf.jmsmq.MSMQQueue.jniMQReadQueue(IIJLnet/sf/jmsmq/MSMQMessage;)I
J net.sf.jmsmq.MSMQQueue.peekMessage(ZZJ)Lnet/sf/jmsmq/MSMQMessage;
J net.sf.jmsmq.MSMQMessageEnumerator.hasMoreElements()Z
j com.my.msgtransferprotocol.CommonWorker$ReceiverThread.run()V+12
v ~StubRoutines::call_stub

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J net.sf.jmsmq.MSMQQueue.jniMQReadQueue(IIJLnet/sf/jmsmq/MSMQMessage;)I
J net.sf.jmsmq.MSMQQueue.peekMessage(ZZJ)Lnet/sf/jmsmq/MSMQMessage;
J net.sf.jmsmq.MSMQMessageEnumerator.hasMoreElements()Z
j com.my.msgtransferprotocol.CommonWorker$ReceiverThread.run()V+12
v ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
0x1a763800 JavaThread "RMI TCP Connection(5)-170.243.32.233" daemon [_thread_in_native, id=7104, stack(0x1ca70000,0x1cb70000)]
0x1a78f400 JavaThread "JMX server connection timeout 35" daemon [_thread_blocked, id=5384, stack(0x1d070000,0x1d170000)]
0x1b257400 JavaThread "RMI TCP Connection(2)-170.243.32.233" daemon [_thread_blocked, id=6120, stack(0x1cf70000,0x1d070000)]
0x1b3ac400 JavaThread "RMI Scheduler(0)" daemon [_thread_blocked, id=7904, stack(0x1ce70000,0x1cf70000)]
0x1b37d400 JavaThread "SocketConnectorIoProcessor-0.0" daemon [_thread_in_native, id=6304, stack(0x1cc70000,0x1cd70000)]
0x1b379400 JavaThread "QFJ Message Processor" daemon [_thread_blocked, id=8012, stack(0x1c970000,0x1ca70000)]
0x1b374c00 JavaThread "QFJ Timer" daemon [_thread_blocked, id=524, stack(0x1c870000,0x1c970000)]
0x1b36bc00 JavaThread "Common MSMQ OrderPacket Receiver Thread: COMMON" [_thread_blocked, id=7160, stack(0x1c770000,0x1c870000)]
0x1b368c00 JavaThread "OrderThread-COMMON-Add-1" [_thread_blocked, id=7660, stack(0x1c670000,0x1c770000)]
0x1b364800 JavaThread "FMP-COMMON" [_thread_blocked, id=7992, stack(0x1c570000,0x1c670000)]
0x1b366800 JavaThread "FCG-COMMON" [_thread_blocked, id=4356, stack(0x1c470000,0x1c570000)]
0x1b367800 JavaThread "OrderThread6Status--COMMON" [_thread_blocked, id=4484, stack(0x1c370000,0x1c470000)]
0x1b35a400 JavaThread "QUEUE3" [_thread_in_native, id=5848, stack(0x1c270000,0x1c370000)]
=>0x1b360400 JavaThread "QUEUE2" [_thread_in_native, id=6688, stack(0x1c170000,0x1c270000)]
0x1b33a800 JavaThread "QUEUE1" [_thread_blocked, id=2284, stack(0x1c070000,0x1c170000)]
0x1b2b0400 JavaThread "QueueThread--COMMON" [_thread_blocked, id=6040, stack(0x1bf70000,0x1c070000)]
0x1b31e800 JavaThread "Initiator" [_thread_blocked, id=1576, stack(0x1be70000,0x1bf70000)]
0x1b298400 JavaThread "ReverseThread--COMMON" [_thread_blocked, id=5220, stack(0x1bd50000,0x1be50000)]
0x1b275c00 JavaThread "RMP-COMMON" [_thread_blocked, id=3464, stack(0x1bc50000,0x1bd50000)]
0x1b29a400 JavaThread "RCG-COMMON" [_thread_blocked, id=6348, stack(0x1bb50000,0x1bc50000)]
0x1b26a000 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, id=4152, stack(0x1b7b0000,0x1b8b0000)]
0x1b267800 JavaThread "RMI TCP Accept-1099" daemon [_thread_in_native, id=540, stack(0x1b6b0000,0x1b7b0000)]
0x1b25c400 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, id=5812, stack(0x1b5b0000,0x1b6b0000)]
0x1a744000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=7916, stack(0x1afd0000,0x1b0d0000)]
0x1a73e400 JavaThread "CompilerThread0" daemon [_thread_blocked, id=5872, stack(0x1aed0000,0x1afd0000)]
0x1a73cc00 JavaThread "Attach Listener" daemon [_thread_blocked, id=4932, stack(0x1add0000,0x1aed0000)]
0x1a73b800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6376, stack(0x1acd0000,0x1add0000)]
0x1a73a400 JavaThread "Surrogate Locker Thread (CMS)" daemon [_thread_blocked, id=7544, stack(0x1abd0000,0x1acd0000)]
0x1a727000 JavaThread "Finalizer" daemon [_thread_blocked, id=336, stack(0x1aad0000,0x1abd0000)]
0x1a725c00 JavaThread "Reference Handler" daemon [_thread_blocked, id=1684, stack(0x1a9d0000,0x1aad0000)]
0x003c8000 JavaThread "main" [_thread_in_native, id=4536, stack(0x00b00000,0x00c00000)]

Other Threads:
0x1a720c00 VMThread [stack: 0x1a8d0000,0x1a9d0000] [id=6524]
0x1b26bc00 WatcherThread [stack: 0x1b8b0000,0x1b9b0000] [id=7664]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
par new generation total 14784K, used 13687K [0x03180000, 0x04180000, 0x04530000)
eden space 13184K, 92% used [0x03180000, 0x03d78c68, 0x03e60000)
from space 1600K, 89% used [0x03ff0000, 0x04155020, 0x04180000)
to space 1600K, 0% used [0x03e60000, 0x03e60000, 0x03ff0000)
concurrent mark-sweep generation total 114688K, used 1290K [0x04530000, 0x0b530000, 0x13180000)
concurrent-mark-sweep perm gen total 48400K, used 31410K [0x13180000, 0x160c4000, 0x19580000)

Dynamic libraries:
0x00400000 - 0x0041e000 C:\Program Files\MYSample\Sample.exe
0x7c800000 - 0x7c8c0000 C:\WINDOWS\system32\ntdll.dll
0x77e40000 - 0x77f42000 C:\WINDOWS\system32\kernel32.dll
0x745e0000 - 0x7489d000 C:\WINDOWS\system32\msi.dll
0x77ba0000 - 0x77bfa000 C:\WINDOWS\system32\msvcrt.dll
0x77f50000 - 0x77feb000 C:\WINDOWS\system32\ADVAPI32.dll
0x77c50000 - 0x77cef000 C:\WINDOWS\system32\RPCRT4.dll
0x76f50000 - 0x76f63000 C:\WINDOWS\system32\Secur32.dll
0x77380000 - 0x77411000 C:\WINDOWS\system32\USER32.dll
0x77c00000 - 0x77c49000 C:\WINDOWS\system32\GDI32.dll
0x7c8d0000 - 0x7d0cf000 C:\WINDOWS\system32\SHELL32.dll
0x77da0000 - 0x77df2000 C:\WINDOWS\system32\SHLWAPI.dll
0x77670000 - 0x777a9000 C:\WINDOWS\system32\ole32.dll
0x77d00000 - 0x77d8b000 C:\WINDOWS\system32\OLEAUT32.dll
0x77420000 - 0x77523000 C:\WINDOWS\WinSxS\X86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.3790.3959_x-ww_D8713E55\COMCTL32.dll
0x76290000 - 0x762ad000 C:\WINDOWS\system32\IMM32.DLL
0x7f000000 - 0x7f009000 C:\WINDOWS\system32\LPK.DLL
0x75490000 - 0x754f5000 C:\WINDOWS\system32\USP10.dll
0x68000000 - 0x68035000 C:\WINDOWS\system32\rsaenh.dll
0x76b70000 - 0x76b7b000 C:\WINDOWS\system32\PSAPI.DLL
0x76920000 - 0x769e2000 C:\WINDOWS\system32\USERENV.dll
0x71c40000 - 0x71c97000 C:\WINDOWS\system32\netapi32.dll
0x6d800000 - 0x6da56000 C:\Program Files\Java\jre6\bin\client\jvm.dll
0x76aa0000 - 0x76acd000 C:\WINDOWS\system32\WINMM.dll
0x7c340000 - 0x7c396000 C:\WINDOWS\system32\MSVCR71.dll
0x6d290000 - 0x6d298000 C:\Program Files\Java\jre6\bin\hpi.dll
0x6d7b0000 - 0x6d7bc000 C:\Program Files\Java\jre6\bin\verify.dll
0x6d330000 - 0x6d34f000 C:\Program Files\Java\jre6\bin\java.dll
0x6d7f0000 - 0x6d7ff000 C:\Program Files\Java\jre6\bin\zip.dll
0x6d560000 - 0x6d569000 C:\Program Files\Java\jre6\bin\management.dll
0x6d610000 - 0x6d623000 C:\Program Files\Java\jre6\bin\net.dll
0x71c00000 - 0x71c17000 C:\WINDOWS\system32\WS2_32.dll
0x71bf0000 - 0x71bf8000 C:\WINDOWS\system32\WS2HELP.dll
0x71b20000 - 0x71b61000 C:\WINDOWS\System32\mswsock.dll
0x76ed0000 - 0x76efa000 C:\WINDOWS\system32\DNSAPI.dll
0x76f70000 - 0x76f77000 C:\WINDOWS\System32\winrnr.dll
0x76f10000 - 0x76f3e000 C:\WINDOWS\system32\WLDAP32.dll
0x76f80000 - 0x76f85000 C:\WINDOWS\system32\rasadhlp.dll
0x5f270000 - 0x5f2ca000 C:\WINDOWS\system32\hnetcfg.dll
0x71ae0000 - 0x71ae8000 C:\WINDOWS\System32\wshtcpip.dll
0x1b9b0000 - 0x1b9ba000 C:\WINDOWS\system32\jmsmq.dll
0x61530000 - 0x61560000 C:\WINDOWS\system32\mqrt.dll
0x1b9c0000 - 0x1ba25000 C:\WINDOWS\system32\msvcp60.dll
0x761b0000 - 0x76243000 C:\WINDOWS\system32\CRYPT32.dll
0x76190000 - 0x761a2000 C:\WINDOWS\system32\MSASN1.dll
0x614d0000 - 0x614f7000 C:\WINDOWS\system32\mqsec.dll
0x71f60000 - 0x71f64000 C:\WINDOWS\system32\Security.dll
0x6d630000 - 0x6d639000 C:\Program Files\Java\jre6\bin\nio.dll
0x7e020000 - 0x7e02f000 C:\WINDOWS\system32\SAMLIB.dll
0x6d700000 - 0x6d706000 C:\Program Files\Java\jre6\bin\rmi.dll
0x6d790000 - 0x6d798000 C:\Program Files\Java\jre6\bin\sunmscapi.dll

VM Arguments:
jvm_args: -Xms128M -Xmx256M -Xincgc -XX:+UseConcMarkSweepGC -XX:MaxPermSize=100m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
java_command: <unknown>
Launcher Type: generic

Environment Variables:
PATH=C:\Program Files\Legato\nsr\bin;C:\Program Files\HP\NCU;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\MLTOOLS\;c:\services\tools;C:\MLTOOLS\srvtools;C:\MLTOOLS\srvtools;C:\MLTOOLS\srvtools;C:\Services\NetIQ\AppManager\bin;C:\Services\NetIQ\Common\bin;C:\Program Files\Java\jre6\bin
USERNAME=ajmerpre
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 65 Stepping 3, AuthenticAMD

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

OS: Windows Server 2003 family Build 3790 Service Pack 2

CPU:total 4 (2 cores per cpu, 1 threads per core) family 15 model 65 stepping 3, cmov, cx8, fxsr, mmx, sse, sse2, sse3, mmxext, 3dnow, 3dnowext

Memory: 4k page, physical 4191872k(2942736k free), swap 4194303k(4194303k free)

vm_info: Java HotSpot(TM) Client VM (11.2-b01) for windows-x86 JRE (1.6.0_12-b04), built on Jan 17 2009 09:57:14 by "java_re" with MS VC++ 7.1

time: Wed Apr 15 17:44:34 2009
elapsed time: 1485 seconds

------------------------------------------------------------------

It would be helpful if any body can look into this matter. Brief about the application is as follows:

1) Multi threaded application using JDK1.6 .
2) Message exchange rate of about 25 messages/sec and its a continous through put.

As there any way that the JMSMQ code compiled with JDK1.4 creating the problem?

Regards,

CuriousCoder

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.