Fully featured low overhead profiler for Java EE and Java SE platforms.
Performance monitoring and profiling of Jenkins, TeamCity, Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

EAP build #530: JDK 1.5.0_1 crashes when taking a snapshost

Moderators: Vladimir Kondratyev, Anton Katilin

EAP build #530: JDK 1.5.0_1 crashes when taking a snapshost

Postby attila » Mon Feb 14, 2005 10:47 am

When I'm taking a snapshot, the JVM crashes

Here's the output of the crashed JVM:

Code: Select all
# An unexpected error has been detected by HotSpot Virtual Machine:
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6da7e816, pid=2432, tid=3148
# Java VM: Java HotSpot(TM) Server VM (1.5.0_01-b08 mixed mode)
# Problematic frame:
# V  [jvm.dll+0x23e816]

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

Current thread (0x00ec09f8):  JavaThread "YJP RequestServer" daemon [_thread_in_vm, id=3148]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000008

EAX=0x00000000, EBX=0x03b6f8f0, ECX=0x00000000, EDX=0x07c88f9c
ESP=0x07ebf040, EBP=0x07ebf070, ESI=0x00000000, EDI=0x00ec09f8
EIP=0x6da7e816, EFLAGS=0x00010246

Top of Stack: (sp=0x07ebf040)
0x07ebf040:   00ec09f8 00ec09f8 6da7e916 00ec09f8
0x07ebf050:   6d9252cd 00ec09f8 03c79dfa 03b6f8f0
0x07ebf060:   00ec0ed8 07c88ba8 07c88bb0 07c88f9c
0x07ebf070:   07ebf0a4 00ed73c4 00ec09f8 6db2c91c
0x07ebf080:   03b6f8f0 00ed739a 07ebf088 03c79dfa
0x07ebf090:   07ebf0b0 03c7aa10 04401b24 03c79e08
0x07ebf0a0:   07ebf0ac 07ebf0d0 00ed2aeb 00000000
0x07ebf0b0:   00000000 07ebf0b4 03c820ac 07ebf0f0

Instructions: (pc=0x6da7e816)
0x6da7e806:   90 90 90 90 90 90 90 90 90 90 56 8b f1 33 c0 57
0x6da7e816:   66 8b 46 08 8d 78 01 57 e8 7d 95 fe ff 83 c4 04

Stack: [0x07e80000,0x07ec0000),  sp=0x07ebf040,  free space=252k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0x23e816]
j  java.util.ArrayList.add(Ljava/lang/Object;)Z+26
j  com.yourkit.runtime.RefVisitor.visit(Ljava/lang/Object;)V+220
v  ~StubRoutines::call_stub
V  [jvm.dll+0xedc80]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  java.util.ArrayList.add(Ljava/lang/Object;)Z+26
j  com.yourkit.runtime.RefVisitor.visit(Ljava/lang/Object;)V+220
v  ~StubRoutines::call_stub
j  com.yourkit.runtime.RequestServer.captureMemorySnapshot(Ljava/lang/String;Z[Ljava/lang/String;)I+0
j  com.yourkit.runtime.CaptureSnapshotRequestHandler.handleRequest([Ljava/lang/String;Ljava/net/InetAddress;Ljava/io/OutputStream;)V+601
j  com.yourkit.runtime.RequestServer.doIt(Ljava/net/ServerSocket;)V+70
j  com.yourkit.runtime.RequestServer.access$000(Ljava/net/ServerSocket;)V+1
j  com.yourkit.runtime.RequestServer$1.run()V+4
v  ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
  0x07e77d00 JavaThread "ConsumerMessageQueue:(1)" daemon [_thread_blocked, id=3016]
  0x00738d30 JavaThread "DestroyJavaVM" [_thread_blocked, id=3376]
  0x07e05920 JavaThread "com.adeptra7.alertexecutor.AlertExecutorService-UdpCommandAcceptor" daemon [_thread_in_native, id=3192]
  0x08765dc0 JavaThread "com.adeptra7.jmsservice.JmsServiceContainer-KeepAlive" [_thread_blocked, id=3200]
  0x086ddb10 JavaThread "IdlePlatformVersionDestroyer" daemon [_thread_blocked, id=3264]
  0x07e05d78 JavaThread "/>2345" daemon [_thread_in_native, id=1952]
  0x07c99358 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3168]
  0x07c97f08 JavaThread "CompilerThread1" daemon [_thread_blocked, id=3216]
  0x07c97040 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3248]
  0x07c95f00 JavaThread "AdapterThread" daemon [_thread_blocked, id=3464]
  0x00ec0ba8 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3224]
  0x00ec6518 JavaThread "YJP CPU Sampler" daemon [_thread_blocked, id=3368]
=>0x00ec09f8 JavaThread "YJP RequestServer" daemon [_thread_in_vm, id=3148]
  0x00eb60b8 JavaThread "Finalizer" daemon [_thread_blocked, id=3044]
  0x00eb53d8 JavaThread "Reference Handler" daemon [_thread_blocked, id=3388]

Other Threads:
  0x00eb32e0 VMThread [id=3548]
  0x07c9a8f0 WatcherThread [id=3360]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

 def new generation   total 1216K, used 1018K [0x02f50000, 0x030a0000, 0x030a0000)
  eden space 1088K,  93% used [0x02f50000, 0x0304ead8, 0x03060000)
  from space 128K,   0% used [0x03080000, 0x03080000, 0x030a0000)
  to   space 128K,   0% used [0x03060000, 0x03060000, 0x03080000)
 tenured generation   total 10944K, used 10943K [0x030a0000, 0x03b50000, 0x03b50000)
   the space 10944K,  99% used [0x030a0000, 0x03b4ffd8, 0x03b50000, 0x03b50000)
 compacting perm gen  total 20480K, used 20265K [0x03b50000, 0x04f50000, 0x07b50000)
   the space 20480K,  98% used [0x03b50000, 0x04f1a5d8, 0x04f1a600, 0x04f50000)
No shared spaces configured.

Dynamic libraries:
0x00400000 - 0x0040c000    C:\Program Files\Java\jdk1.5.0_01\bin\javaw.exe
0x77f80000 - 0x77ffd000    C:\WINNT\system32\ntdll.dll
0x7c2d0000 - 0x7c332000    C:\WINNT\system32\ADVAPI32.dll
0x7c570000 - 0x7c623000    C:\WINNT\system32\KERNEL32.DLL
0x77d30000 - 0x77da1000    C:\WINNT\system32\RPCRT4.DLL
0x77e10000 - 0x77e6f000    C:\WINNT\system32\USER32.dll
0x77f40000 - 0x77f7b000    C:\WINNT\system32\GDI32.dll
0x78000000 - 0x78045000    C:\WINNT\system32\MSVCRT.dll
0x6d840000 - 0x6dba5000    C:\Program Files\Java\jdk1.5.0_01\jre\bin\server\jvm.dll
0x77570000 - 0x775a0000    C:\WINNT\system32\WINMM.dll
0x681a0000 - 0x681a7000    C:\WINNT\system32\serwvdrv.dll
0x66740000 - 0x66747000    C:\WINNT\system32\umdmxfrm.dll
0x6d2f0000 - 0x6d2f8000    C:\Program Files\Java\jdk1.5.0_01\jre\bin\hpi.dll
0x690a0000 - 0x690ab000    C:\WINNT\system32\PSAPI.DLL
0x00830000 - 0x0088f000    C:\Program Files\YourKit Java Profiler 4.0 RC1\bin\win32\yjpagent.dll
0x75050000 - 0x75058000    C:\WINNT\system32\WSOCK32.DLL
0x75030000 - 0x75044000    C:\WINNT\system32\WS2_32.DLL
0x75020000 - 0x75028000    C:\WINNT\system32\WS2HELP.DLL
0x6d680000 - 0x6d68c000    C:\Program Files\Java\jdk1.5.0_01\jre\bin\verify.dll
0x6d370000 - 0x6d38d000    C:\Program Files\Java\jdk1.5.0_01\jre\bin\java.dll
0x6d6a0000 - 0x6d6af000    C:\Program Files\Java\jdk1.5.0_01\jre\bin\zip.dll
0x6d530000 - 0x6d543000    C:\Program Files\Java\jdk1.5.0_01\jre\bin\net.dll
0x74fd0000 - 0x74fee000    C:\WINNT\system32\msafd.dll
0x75010000 - 0x75017000    C:\WINNT\System32\wshtcpip.dll
0x782c0000 - 0x782cc000    C:\WINNT\System32\rnr20.dll
0x77980000 - 0x779a4000    C:\WINNT\system32\DNSAPI.DLL
0x77340000 - 0x77353000    C:\WINNT\system32\iphlpapi.dll
0x77520000 - 0x77525000    C:\WINNT\system32\ICMP.DLL
0x77320000 - 0x77337000    C:\WINNT\system32\MPRAPI.DLL
0x75150000 - 0x7515f000    C:\WINNT\system32\SAMLIB.DLL
0x75170000 - 0x751bf000    C:\WINNT\system32\NETAPI32.DLL
0x7c340000 - 0x7c34f000    C:\WINNT\system32\Secur32.dll
0x77bf0000 - 0x77c01000    C:\WINNT\system32\NTDSAPI.dll
0x77950000 - 0x7797a000    C:\WINNT\system32\WLDAP32.DLL
0x751c0000 - 0x751c6000    C:\WINNT\system32\NETRAP.dll
0x77a50000 - 0x77b3f000    C:\WINNT\system32\OLE32.DLL
0x779b0000 - 0x77a4b000    C:\WINNT\system32\OLEAUT32.DLL
0x773b0000 - 0x773df000    C:\WINNT\system32\ACTIVEDS.DLL
0x77380000 - 0x773a3000    C:\WINNT\system32\ADSLDPC.DLL
0x77830000 - 0x7783e000    C:\WINNT\system32\RTUTILS.DLL
0x77880000 - 0x7790e000    C:\WINNT\system32\SETUPAPI.DLL
0x7c0f0000 - 0x7c151000    C:\WINNT\system32\USERENV.DLL
0x774e0000 - 0x77513000    C:\WINNT\system32\RASAPI32.DLL
0x774c0000 - 0x774d1000    C:\WINNT\system32\RASMAN.DLL
0x77530000 - 0x77552000    C:\WINNT\system32\TAPI32.DLL
0x71710000 - 0x71794000    C:\WINNT\system32\COMCTL32.DLL
0x70a70000 - 0x70ad6000    C:\WINNT\system32\SHLWAPI.DLL
0x77360000 - 0x77379000    C:\WINNT\system32\DHCPCSVC.DLL
0x777e0000 - 0x777e8000    C:\WINNT\System32\winrnr.dll
0x777f0000 - 0x777f5000    C:\WINNT\system32\rasadhlp.dll

VM Arguments:
jvm_args: -agentlib:yjpagent=sessionname=YJPQUOTED416c657274204578656375746f7220286c61756e636865642066726f6d2045636c6970736529 -Xrunyjpagent:sessionname=YJPQUOTED416c657274204578656375746f7220286c61756e636865642066726f6d2045636c6970736529 -ea -verbose:gc -Xmx12M -Djms.server=localhost
java_command: com.adeptra7.launcher.UrlLauncher http://localhost:8080/services/alertExecutorService/alertExecutorService.jar

Environment Variables:
PATH=c:\cygwin\bin;c:\java\jikes-1.18\bin;c:\java\jdk1.4\bin;c:\java\apache-ant-1.5.4\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\PROGRA~1\GNU\WINCVS~1.3\CVSNT;C:\Program Files\YourKit Java Profiler 4.0 RC1\bin\win32
PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel

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

OS: Windows 2000 Build 2195 Service Pack 4

CPU:total 1 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht

Memory: 4k page, physical 1048048k(75004k free), swap 1957792k(959988k free)

vm_info: Java HotSpot(TM) Server VM (1.5.0_01-b08) for windows-x86, built on Dec  6 2004 19:33:54 by "java_re" with MS VC++ 6.0

Running the same version of the profiler under JDK 1.4.2_06 doesn't crash.
Posts: 15
Joined: Fri Feb 11, 2005 6:04 pm
Location: Szeged, Hungary

Postby Vladimir Kondratyev » Mon Feb 14, 2005 1:12 pm

It this crash reproducible? Couldn't you please provide us a small example which reproduces the problem.

Thank you in advance,
Vladimir Kondratyev
Posts: 1519
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany

Postby attila » Wed Feb 23, 2005 12:23 pm

Well, it is reproducible, as it happens all the time in my sytem. However, I cannot create a small reproducible testcase, as it only manifests itself when I exercise my full system for some time, and it does fancy stuff like reloading classes using separate class loaders and such...
Posts: 15
Joined: Fri Feb 11, 2005 6:04 pm
Location: Szeged, Hungary

Return to Java Profiler

Who is online

Users browsing this forum: No registered users and 1 guest

YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.